From mint-bounce@lists.fishpool.fi Thu Feb 21 13:40:30 2008 Date: Thu, 21 Feb 2008 19:33:41 +0100 (CET) From: Frank Naumann X-X-Sender: fnaumann@localhost.localdomain To: mint Subject: Re: [MiNT] g++ problem with archives & linking In-Reply-To: <1203617485.31975.30.camel@localhost> Message-ID: References: <1203617485.31975.30.camel@localhost> User-Agent: Alpine 1.00 (LFD 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at relay.boerde.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de X-Spam-Status: No, hits=- tagged_above=-50.5 required=7.0 WHITELISTED X-Spam-Level: X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: fnaumann@boerde.de Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Hello! > Whereas if you do this... > > m68k-atari-mint-g++ -o main main.o > > it works fine. > > Any ideas Vincent ?? I'm not Vincent but your first g++ line is incorrect I think (I assume the same happens with gcc). You must at least specify an object file with main(). For static libraries the gcc linker optimize linkage by throwing away any unused symbols. Without any object file the library is completly skipped (the startup code don't count). Regards, Frank -- ATARI FALCON 060 // MILAN 060 ----------------------------- http://sparemint.org/ e-Mail: fnaumann@boerde.de