where do inlined functions go?

Anthony Shipman als@iinet.net.au
Sun Dec 4 13:09:00 GMT 2005


I've got a class with some methods defined in the class. The compiler does not 
generate object code for these methods. Then in a program that uses the class 
it fails to inline the methods and the linker fails with undefined functions. 
All files are compiled with the same command line options:

g++ 4.0.2 
c++ -Wall -Wextra -g3 -O  

Is there some magic I am missing?

-- 
Anthony Shipman                    Mamas don't let your babies 
als@iinet.net.au                   grow up to be outsourced.



More information about the Gcc-help mailing list