Nmap Development mailing list archives

RE: Unable to compile nmap on win8 64


From: Vikram Salunkhe <vikram.salunkhe () continuum net>
Date: Tue, 11 Mar 2014 15:03:21 +0000

Including others also

From: Vikram Salunkhe
Sent: Tuesday, March 11, 2014 8:31 PM
To: 'fyodor () nmap org'
Subject: Unable to compile nmap on win8 64

I referred  a valuable info at https://www.robnicholls.co.uk/comments.php?id=2483
But while trying above steps , I am getting below error while building the nping project.

One more update above functions are not exported and not contained in .lib as per the dumpbin.

winfix.cc
5>  Generating Code...
5>EchoServer.obj : error LNK2019: unresolved external symbol nse_readpcap referenced in function "public: int __cdecl 
EchoServer::nep_capture_handler(void *,void *,void *)" (?nep_capture_handler@EchoServer@@QEAAHPEAX00@Z)
5>ProbeMode.obj : error LNK2001: unresolved external symbol nse_readpcap
5>EchoServer.obj : error LNK2019: unresolved external symbol nsock_pcap_read_packet referenced in function "public: int 
__cdecl EchoServer::nep_capture_handler(void *,void *,void *)" (?nep_capture_handler@EchoServer@@QEAAHPEAX00@Z)
5>ProbeMode.obj : error LNK2001: unresolved external symbol nsock_pcap_read_packet
5>EchoServer.obj : error LNK2019: unresolved external symbol nsock_pcap_open referenced in function "public: int 
__cdecl EchoServer::start(void)" (?start@EchoServer@@QEAAHXZ)
5>ProbeMode.obj : error LNK2001: unresolved external symbol nsock_pcap_open
5>ProbeMode.obj : error LNK2019: unresolved external symbol nsi_pcap_linktype referenced in function "public: static 
void __cdecl ProbeMode::probe_nping_event_handler(void *,void *,void *)" 
(?probe_nping_event_handler@ProbeMode@@SAXPEAX00@Z)
5>.\Debug\nping.exe : fatal error LNK1120: 4 unresolved externals
========== Rebuild All: 3 succeeded, 1 failed, 1 skipped ==========
One more update above functions are not exported and not contained in .lib as per the dumpbin.(attaching dumpbin)

Below are ping project  settings:
Platform toolset = Windows7.1SDK.
Include libraray  = E:\NMAP_1\nmap-6\nmap-6.40\nsock\DebugNoPcap\(nsock.lib is statically linking and creating in given 
path)
Additional linking = nsock.lib
Linker input additional dependencies = nsock.lib
C++ code generation  = Multi-threaded Debug DLL (/MDd).

I tried by providing static paths also but no luck.

Any help will be great.

Regards,
vikram

_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: