This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]