Mail Archives: djgpp/1997/04/29/09:02:01
Hi all programmers !
I've created my c - modul ( no c++ ). The modul has extension
*.c . Every compilling is done well. But after I link my program (
the modul is part of the program ) gcc will call:
Undefined references on function .....
The functions are defined in the module. This message is not so
bad, but when I rename the module to *.cc, link will goes well
without problems.
Why behaviour of gcc so depends on extension of modules ?
I know gcc uses another norm to compile *.c ( ANSI ) and c++.
But simple function are defined in the same way in module *.c
as in module *.cc .
Where is my lack of understanding ?
- Raw text -