From: "Stavel Jan" To: djgpp AT delorie DOT com Date: Tue, 29 Apr 1997 14:42:03 +0100 MET Subject: Suffixes for gcc Message-ID: <16319F330FF@dzin.dame.fee.vutbr.cz> Precedence: bulk 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 ?