From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: "Douglas A. Gwyn" Message-ID: <3EC2D3A2.5020306@null.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit References: Subject: Re: [9fans] pcc question -- main() in .a libs Date: Thu, 15 May 2003 09:21:33 +0000 Topicbox-Message-UUID: abbfb240-eacb-11e9-9e20-41e7f4b1d025 andrey mirtchovski wrote: > cc -o ocamlrun prims.o libcamlrun.a > _main: undefined: main in _main I think the problem is that there is no reference to main to pull the module from the library; probably the APE C library (searched *after* libcamrun.a) contains the piece of run-time startup code (_main) that calls main.