This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
undefined reference
- To: egcs at cygnus dot com
- Subject: undefined reference
- From: Ulrich Czekalla <linux at western dot wave dot ca>
- Date: Thu, 05 Nov 1998 14:22:20 +0000
Hi Everyone,
I wrote a class wrapper around the linux socket calls and compiled them
as a shared library;
egcs -shared -fpic -o libsl.so socket.cc
When I link it with an application which uses it I get
undefined reference to 'CSocket::Listen(int (*)(void *))'
CSocket::Listen is one of the member functions I wrote. If I don't use
this function, everything works fine. I know this function is defined.
Are there flags to the compiler or export tags which I'm missing?
Any help would be appreciated. Thanks
-Ulrich
--
/*****************************************************
* Ulrich Czekalla *
* University of Toronto *
* Software Engineering Bachelor of Commerce *
* g5ulczek@cdf.utoronto.ca *
*****************************************************/