delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/29/09:02:01

From: "Stavel Jan" <Stavel AT dcse DOT fee DOT vutbr DOT cz>
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>

        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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019