[Solved] mainwindow.obj:-1: error: LNK2001: unresolved external symbol
I got into a trouble & i don
t know the right solution. I searched & tried more suggestion but they dont work! :(
i cleaned,build,rebuild, delete build directory, run qmake,etc more & more.
These are the error:
please help me.
Thanks a lot.
It seams like the linker couldn't find the pcap library.
Have you set the LIB in your qmake correct?
INCLUDEPATH += c:/pcap/include
LIBS += -L c:/pcap/Lib -lwpcap ....
Thanks for your response dear hpollak.
I installed both mcvs-opengl 32bit & 64bit.
i can solve these errors for 32bit (By declartion non-static variable !!! )
how can i solve these similar errors for x64.
Also, I've added INCLUDEPATH & LIBS but the errors are shown.
finally i could solve one of my problem!
if you use winpcap in your program, you must add -lwsock32 in LIBS to your .pro file. like this:
LIBS += -LC:/WpdPack/Lib -lwpcap -lpacket -lwsock32