ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-users: [Wireshark-users] Link warning while compiling the code.

From: "Roshan Nair" <roshanr.nair@xxxxxxxxx>
Date: Thu, 8 May 2008 22:01:45 +0530
Hi,

I am facing issues while compiling my code for wireshark version 0.99.6. If I make some changes to epan/dissectors/packet-rtp.c and than compile again, the file does not get compiled at all and my changes do not get reflected when I run the exe. I am compiling the code on windows machine as per the procedure mentioned in the Developers guide.

There are no errors when I compile, but when I see the logs I see a link error as below :

......
.....
......
    cd ..\gtk2.tmp
    "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /                   /f Makefile.nmake GTK_CFLAGS="/IC:\wireshark-win32-libs\glib\include\glib-2.0  /IC:\wireshark-win32-libs\glib\lib\glib-2.0\include /IC:\wireshark-win32-libs\gtk2\include\gtk-2.0  /IC:\wireshark-win32-libs\gtk2\lib\gtk-2.0\include  /IC:\wireshark-win32-libs\gtk2\include\atk-1.0  /IC:\wireshark-win32-libs\gtk2\include\cairo  /IC:\wireshark-win32-libs\gtk2\include\pango-1.0" GTK_LIBS="C:\wireshark-win32-libs\gtk2\lib\gtk-win32-2.0.lib  C:\wireshark-win32-libs\gtk2\lib\gdk-win32-2.0.lib  C:\wireshark-win32-libs\gtk2\lib\gdk_pixbuf-2.0.lib  C:\wireshark-win32-libs\gtk2\lib\pango-1.0.lib  C:\wireshark-win32-libs\glib\lib\glib-2.0.lib  C:\wireshark-win32-libs\glib\lib\gmodule-2.0.lib  C:\wireshark-win32-libs\glib\lib\gobject-2.0.lib" libui.lib
'libui.lib' is up-to-date
    cd ..
Linking wireshark-gtk2.exe
    link @C:\DOCUME~1\NAIRR~1.BLR\LOCALS~1\Temp\nm309.tmp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
    mt.exe -nologo -manifest "wireshark-gtk2.exe.manifest" -outputresource:wireshark-gtk2.exe;1

    cd doc
    "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /                   -f Makefile.nmake
    cd ..
    set INSTALL_DIR=wireshark-gtk1
    "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /                   -f Makefile.nmake install-common-deps
    set copycmd=/y
    if not exist wireshark-gtk1 mkdir wireshark-gtk1
    xcopy C:\wireshark-win32-libs\glib\bin\libglib-2.0-0.dll wireshark-gtk1 /d
0 File(s) copied
    xcopy C:\wireshark-win32-libs\glib\bin\libgmodule-2.0-0.dll wireshark-gtk1 /d

.....
.....
.....

Is there a way I can get around this link error ?

--
---------------------------------------------------------------------------------
Roshan Nair
Ph: 9886796247

--If you dont succeed at first, sky diving is not for you.
---------------------------------------------------------------------------------