This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
referenced symbol not found.
- From: pieter dot kirkham at teradyne dot com
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 22 Oct 2002 16:08:32 -0500
- Subject: referenced symbol not found.
Howdy,
Another question sort of related to, but not the same as the previous
one. Using g++ to compile and link a .so file I am getting the following
error when I go to load up my program:
symbol main: referenced symbol not found
I never had the same problem using CC. When I tryed switching to g++
however this messaged started popping up. I have a main, it just isn't
linked into the library directly. It should be able to resolve this link
without problems when the program loads. But it's not.
Anybody know what could be causing this, and how to fix it?
I am using g++ version 2.95.3 20010315 (release), on a sun4u sparc
SUNW, Ultra 60 running solaris 2.6 (sunos 5.6)
Thanks,
Pieter Kirkham