From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <42f248c10082c80aef63afeaa9e995a3@terzarima.net> To: fernanbolando@mailc.net, 9fans@cse.psu.edu Subject: Re: [9fans] more porting questions from newbie From: Charles Forsyth Date: Wed, 15 Mar 2006 09:33:11 +0000 In-Reply-To: <1d5d51400603150005j5bd1f786w628ce11d823a77d5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Cc: Topicbox-Message-UUID: 142a676c-ead1-11e9-9d60-3106f5b1d025 > I found a thread in 9fans archive about undefined _main in .a libs > ****** from 9fans archive *************************** > andrey mirtchovski wrote: >> cc -o ocamlrun prims.o libcamlrun.a >> _main: undefined: main in _main it is complaining that `main' is undefined but called by a function `_main'. `_main' is in the C startup code, and is provided by the C library. i'm not sure why the linker doesn't pick up `main' if it is in the library. if you give ape's cc the -v option, it will give a little trace of loading of object files and libraries, which might help