From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1d5d51400603152133w79c602bqedb23f853290ff93@mail.gmail.com> Date: Thu, 16 Mar 2006 13:33:06 +0800 From: "Fernan Bolando" To: 9fans@cse.psu.edu Subject: Re: [9fans] more porting questions from newbie In-Reply-To: <84fbfa983a05af9590554e9b75b87a3e@terzarima.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1d5d51400603150005j5bd1f786w628ce11d823a77d5@mail.gmail.com> <84fbfa983a05af9590554e9b75b87a3e@terzarima.net> Topicbox-Message-UUID: 145b9508-ead1-11e9-9d60-3106f5b1d025 On 3/15/06, Charles Forsyth wrote: > > 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 On 3/16/06, Charles Forsyth wrote: > it's intentional, in that the automatic dependency loading (the `autolib' > messages) > is done only for libraries referenced implicitly (by #pragma lib lines in > #include files), > and that is done after all explicitly named object files and libraries ar= e > dealt with in > command line order. sorry for taking this out of 9fans. I am not used to using gmail as my main interface Charles thanks ,Fernan -- Public PGP/GnuPG key (http://www.fernski.com) pub 1024D/3576CA71 2006-02-02 Fernan Bolando Key fingerprint =3D FDFE C9A8 FFED C1A5 2F5C EFEB D595 AF1C 3576 CA71