Hi,

I am trying to migrate a source code which was built with gcc 2.95.3 to
3.3.2 in Solaris 5.9
I am getting the linker  error "undefined reference to
_do_global_ctors_aux".

This function is declared as extern in the source and called from the main
() function after some validation of command line
There is no implementation given in the source code. As far as I understand
from the documentation of gcc, this function takes care of invoking the
global constructors and should be called before main.

I have the following questions. Appreciate your help
How to fix this linker  error? how did this code compile in gcc 2.95.3? Why
is the effect of calling this function from main?
-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to