zachary-cs / NDetect

Network Detective - Graphical Network Connections
0 stars 0 forks source link

error pcap_next_ex unresolved and more alike #2

Closed fmolinar closed 6 years ago

fmolinar commented 6 years ago

steps were taken so far

Location for WinPcap C++ General Additional Include Directories: D:\WinPcap\WpdPack\Include

Linker General Additional Library Directories D:\WinPcap\WpdPack\Lib

Linker Input Additional Dependencies wpcap.lib Packet.lib

C++ Preprocessor HAVE_REMOTE WIN32 WPCAP

I don't know if I'm missing another configuration

ghost commented 6 years ago

Check that those folders actually contain the files, double check that you have the following includes and code in your pch.h file

`

include

ifndef WIN32

include <sys/socket.h>

include <netinet/in.h>

else

include

endif

`

Otherwise, I can help you when we have school.

ghost commented 6 years ago

Try the suggestion from this StackOverflow question.

From the answer, make sure that you set Show Progress to "For Libraries Searched". This should show where Visual studio is looking for the WinPCap libraries to use.

fmolinar commented 6 years ago

Thanks, I solved the problem by changing the architecture from 64 bits to 32 bits under

Project -> Properties -> Platform -> Win32