I have the following function from some legacy code that I am maintaining. long getMaxSt开发者_运维知识库art(long start, long count, const myStruct *s1, ...)
I have one shared object (a.so) which has statically linked (s.so). b.so a开发者_运维问答lso has a static link of s.so.
I am a teaching assistant of a introductory programming course, and some students made this type of error:
I needed to include a few c headers ( non standard header files ) in my C++ code to be compiled by gcc. The C header (foo.h) has support for :
I have just changed a compiler option from 4.0 to 4.2. Now I get an error: jump to case label crosses initialization of \'const char* selectorName\'
I\'m reading the gcc manual at the moment, especially the part about warning/error flags. After reading the part about the -Wextra flag, I wonder if it is useful at all. It 开发者_如何学Cseems that it
I have an include file with 100+ global variables. It\'s being used in a library, but some programs that I\'m linking the lib to also need to access the globals.
I don\'t know how fea开发者_运维知识库sible it isand how sensible is this question here. Is there any changes that we can make in makefileto recommend GCC inline all the function although the functio
I have linked a library with my program. It works fine. The only problem is that there visibility errors/warnings (thousands of them).
When I tried to include <math.h> I found that I need to link math library by using command gcc -lm