Cannot find -llibnetd
-
There's something not clear: you are trying to build a program that depends on a library that you don't know anything about ?
Then first thing, what's that program ? What version of Qt on what OS ?
Might be that library "here":http://libnet.sourceforge.net
-
Thanks a lot. Problem solved.^_^
[quote author="SGaist" date="1397161142"]There's something not clear: you are trying to build a program that depends on a library that you don't know anything about ?Then first thing, what's that program ? What version of Qt on what OS ?
Might be that library "here":http://libnet.sourceforge.net[/quote]
-
-
What about:
@LIBS += -lnetd@
?
$$PWD will also work on Windows, it's not the command line environment variable in this case
-
Where is that library precisely located ?
-
It was located in my project dirctory all the time, so I am confused that all the things look right, but the error still occurs.Thank you again, I will figure it out.
[quote author="SGaist" date="1397246184"]Where is that library precisely located ?[/quote] -
[quote author="qwerboo" date="1397207687"]The libnetd.dll and libnetd.lib exist in my project dirctory E:\HC_Station_translate, and
LIBS += L. -llibnetd is in my .pro file, but when I am buiding the project, an error occurs:
cannot find -llibnetd,ld returned 1 exit status. Any body knons why?[/quote]If you're using QtCreator:
Open project .pro file.
Add (replace)
LIBS += -LE:\HC_Station_translate\ -lnetd
Build -> run qmake
build -
It works. Thank you so much! ^_^
[quote author="MarianMMX" date="1397290377"][quote author="qwerboo" date="1397207687"]The libnetd.dll and libnetd.lib exist in my project dirctory E:\HC_Station_translate, and
LIBS += L. -llibnetd is in my .pro file, but when I am buiding the project, an error occurs:
cannot find -llibnetd,ld returned 1 exit status. Any body knons why?[/quote]If you're using QtCreator:
Open project .pro file.
Add (replace)
LIBS += -LE:\HC_Station_translate\ -lnetd
Build -> run qmake
build
[/quote]