Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] Problem with linking lib in dll.

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "EXTERNAL Rabe Thomas (Praktikant ; PA-ATMO1/EES21)" <external.Thomas.Rabe@xxxxxxxxxxxx>
Date: Tue, 25 Oct 2005 15:18:09 +0200
Hello everybody,
I have programmed two dissectors (called odtp_dda and odtp_pcs)and now try to >>pluginize<< them. While the odtp_dda.dll was created without problems, I get unresolved external messages for three functions when trying to build odtp_pcs.dll. These functions are defined in packet-odtp_dda.c and are included in packet-odtp_pcs via a header file. So I suppose I have to link odtp_dda.lib into odtp_pcs.dll somehow. I tried to do that in the Makefile.am in the directory \plugins\odtp_pcs  (LIBS=...), but without success. Now I'm really stuck. Can anybody give me a hint?

I'm building on Win32 with MSVC++.

Thanks in advance

Error Message:  

        cl /DHAVE_WIN32_LIBETHEREAL_LIB /D_NEED_VAR_IMPORT_ /DHAVE_CONFIG_H /I..
/.. /I../../wiretap /IC:\ethereal-win32-libs\glib\include\glib-2.0  /IC:\etherea
l-win32-libs\glib\lib\glib-2.0\include  /IC:\ethereal-win32-libs\WPdpack\include
 -D_U_="" /Zi /W3 /c packet-odtp_pcs.c
Optimierender Microsoft (R) 32-Bit C/C++-Compiler, Version 12.00.8804, fuer x86
Copyright (C) Microsoft Corp 1984-1998. Alle Rechte vorbehalten.

packet-odtp_pcs.c
packet-odtp_pcs.c(111) : warning C4101: 'i' : Unreferenzierte lokale Variable
        link -dll /out:odtp_pcs.dll /NOLOGO /INCREMENTAL:no /MACHINE:I386 /DEBUG
 packet-odtp_pcs.obj ..\..\epan\libethereal.lib  C:\ethereal-win32-libs\glib\lib
\glib-2.0.lib  C:\ethereal-win32-libs\glib\lib\gmodule-2.0.lib  C:\ethereal-win3
2-libs\glib\lib\gobject-2.0.lib
   Bibliothek odtp_pcs.lib und Objekt odtp_pcs.exp wird erstellt
packet-odtp_pcs.obj : error LNK2001: Nichtaufgeloestes externes Symbol _display_
user_actions
packet-odtp_pcs.obj : error LNK2001: Nichtaufgeloestes externes Symbol _get_bit
packet-odtp_pcs.obj : error LNK2001: Nichtaufgeloestes externes Symbol _Calculat
eCRC16
odtp_pcs.dll : fatal error LNK1120: 3 unaufgeloeste externe Verweise
NMAKE : fatal error U1077: 'link' : Rueckgabe-Code '0x460'
Stop.  

    

Mit freundlichen Grüßen / best regards

                        Thomas Rabe   

_______________________________________________

Robert Bosch GmbH		
PA-ATMO1/EES21		 	
Postfach 30 02 20			    
D-70442 Stuttgart

Tel.: +49711/811-52448