Re: collect2: ld returned 1 exit status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux