This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: collect2: ld returned 1 exit status
- From: John Love-Jensen <eljay at adobe dot com>
- To: Yuen Sin Cheong <yuensin78 at hotmail dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Wed, 27 Sep 2006 09:11:09 -0500
- Subject: Re: collect2: ld returned 1 exit status
Hi Yuen,
The problem is that you did not specify a main() function in your
program.cpp.
But, from your naming, it appears that you are attempting to make a shared
object library. You should check the syntax for how to make a shared object
library on your platform. You might need another switch, such as -shared
(the exact syntax can vary by platform).
HTH,
--Eljay