Troubles with linking to a dll

Joost Kraaijeveld J.Kraaijeveld@Askesis.nl
Sun May 7 03:19:00 GMT 2000


I am having troubles with linking to a DLL.

I get the following message:

g++ -mthreads -o./ALibCommVIOTestServer.exe ./main.o
./ADLMHRemoteProcedure.o ./AGenericTestExceptionRemoteProcedure.o
./AGenericTestRemoteProcedure.o ./ARemoteModelObjectTestProxy.o
../../../../../Targets/Dll/libALibBase.a
../../../../../Targets/Dll/libALibStre.a
../../../../../Targets/Dll/libALibComm.a
../../../../../Targets/Dll/libALibDB.a
../../../../../Targets/Dll/libALibMod.a

./main.o: In function `main':
/usr/src/Common/ALib/Sources/ALibSamples/ALibComm/ALibCommVIOTest/ALibCo
mmVIOTestServer/main.cpp:26:
 undefined reference to `AServer::startListeningSemaphore'
collect2: ld returned 1 exit status
make: *** [ALibCommVIOTestServer.exe] Error 1


If I look at the (dlltool generated) .def file for ALibComm.dll (which
is the basis for libALibComm.a I presume) I find:

	_7AServer$startListeningSemaphore @ 72 DATA ;
AServer::startListeningSemaphore

To me that means it gets exported OK. What am I missing?

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
email: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list