This is the mail archive of the gcc@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]

undefined reference


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                          *
 *****************************************************/


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