From mint-bounce@lists.fishpool.fi Mon Aug 3 07:53:17 2009 Message-ID: <4A76CEE6.6@freesbee.fr> Date: Mon, 03 Aug 2009 13:49:58 +0200 From: =?ISO-8859-15?Q?Vincent_Rivi=E8re?= User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: mint@lists.fishpool.fi Subject: Re: [MiNT] Native gcc 4.4.1 and binutils 2.19.1 References: <200908022307.15277.jflemaire@skynet.be> In-Reply-To: <200908022307.15277.jflemaire@skynet.be> Content-Type: text/plain; charset=ISO-8859-15; format=flowed X-Antivirus: avast! (VPS 090802-0, 02/08/2009), Outbound message X-Antivirus-Status: Clean X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id n73BrGDn029703 J. F. Lemaire wrote: > I tried a test "hello world" program and here is what I get: > > root@easymint:/f>/usr/local/bin/gcc hello.c -o hello ...: undefined reference to `___main' ...: undefined reference to `___umodsi3' These symbols are defined in libgcc.a. I guess this problem can appear when GCC is installed in a directory (/usr/local in your case) different than the "prefix" provided at compile time. Try the following commands to get some clues: $ gcc -print-file-name=libgcc.a $ gcc -print-search-dirs $ gcc hello.c -o hello -Wl,-t Good luck. -- Vincent Rivière