Compiling and Linking help

Dima Sorkin dima.sorkin@gmail.com
Tue Nov 8 08:45:00 GMT 2005


On 11/8/05, Djekic Dusan  wrote:
>
> a.h
> int a( ) { };
>

Hi.
 I have encountered this problem too.
Explicitly writing "inline int a() {}" instead
of your piece of code helped.

Or , if "a" will be a big function (not intended for inlining),
you will have to
move it's definition into a.cpp, and in a.h there will be
only declaration.

Regards,
 Dima.



More information about the Gcc-help mailing list