This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

compile the wireshark sourcecode on win 7 64bit system meets link error

0

Here is the compile log ,can anybody help me?

        cl -DWIN32 -DNULL=0 -D_MT -D_DLL -WX -DHAVE_CONFIG_H /I. /I.. /If:\wireshark-win64-libs-1.2\gtk2\include\glib-2.0  /If:\wireshark-win64-libs-1.2\gtk2\lib\glib-2.0\include /If:\wireshark-win64-libs-1.2\WPdpack\include -D_U_="" /Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE/D_CRT_NONSTDC_NO_DEPRECATE /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=1500 -Fd.\ -c file_util.c unicode-utils.c mpeg-audio.c privileges.c str_util.c type_util.c
Microsoft (R) C/C++ Optimizing Compiler Version 15.00.30729.01 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

file_util.c unicode-utils.c mpeg-audio.c privileges.c str_util.c type_util.c Generating Code… link /INCREMENTAL:NO /NOLOGO -entry:[email protected] -dll kernel32.lib ws2_32.lib mswsock.lib advapi32.lib /DEBUG /MACHINE:x64 /MANIFEST:no /DEF:libwsutil.def /OUT:libwsutil.dll /IMPLIB:libwsutil.lib ..\image\libwsutil.res file_util.obj unicode-utils.obj mpeg-audio.obj privileges.obj str_util.obj type_util.obj f:\wireshark-win64-libs-1.2\gtk2\lib\glib-2.0.lib f:\wireshark-win64-libs-1.2\gtk2\lib\gmodule-2.0.lib f:\wireshark-win64-libs-1.2\gtk2\lib\gobject-2.0.lib Creating library libwsutil.lib and object libwsutil.exp LINK : error LNK2001: unresolved external symbol [email protected] libwsutil.dll : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: '"D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\x86_amd64\link.EXE"' : return code '0x460' Stop. NMAKE : fatal error U1077: '"D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2' Stop.

asked 22 Dec ‘11, 23:08

Raphael's gravatar image

Raphael
1111
accept rate: 0%

edited 23 Dec ‘11, 00:56

grahamb's gravatar image

grahamb ♦
19.8k330206

Can you tell me which batch file did u run?

(23 Dec ‘11, 23:16) vish


One Answer:

0

Make sure PROCESSOR_ARCHITECTURE environment variable is set.

If not, then your SDK Win32.mak include file will assume x86 / WIN32, hence these (compile and) link problems.

answered 23 Dec '11, 01:36

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

edited 24 Dec '11, 03:26