Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <1F8B49DD9100D31195FC00A0C94989FE0E0D@obelix> From: Joost Kraaijeveld To: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: Troubles with linking to a dll Date: Sun, 7 May 2000 12:18:40 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain 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 DOT Kraaijeveld AT Askesis DOT nl web: www.askesis.nl -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com