generic way to access C++ libs?

Diez B. Roggisch deets.nospaaam at web.de
Tue Nov 9 14:23:47 CET 2004


> I don't think so. Given that the _definition_ of the function is in
> the header, and the header is needed to compile any code which might
> want to link with the library, the compiler has all it needs, without
> a need for a corresponding function to exist in the library.

It has been a while, but I think what happened when including such a header
on several locations that produced .o-files was that a duplicate symbol
problem arised on linking time. Why would there be a symbol at all, when
the code got "pasted" into the callee's code? 

-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list