Cannot find -llibnetd
-
sorry, "anybody knows me why?" should be "anybody knows why?"
-
Hi and welcome to devnet,
It's probably just a mistake, try with
@LIBS += -lnetd@
If it still fails, add the path to were this library can be found
Hope it helps
-
[quote author="SGaist" date="1397129875"]Hi and welcome to devnet,
It's probably just a mistake, try with
@LIBS += -lnetd@
If it still fails, add the path to were this library can be found
Hope it helps[/quote]
Thank you so much. The errors still occur, could you tell me how to add the library? Note:I work in windows with Qt 5. -
[quote author="SGaist" date="1397129875"]Hi and welcome to devnet,
It's probably just a mistake, try with
@LIBS += -lnetd@
If it still fails, add the path to were this library can be found
Hope it helps[/quote]
Does the libnet already exist? I try to download the libnet file from the internet, but I find nothing. Do I have to compile the source code of libnet myself? I would appreciate... -
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]
-
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? -
@LIBS += -L. -L$$PWD. -llibnetd@
-
$PWD means current directory path? I work in Windows,not linux et al.
[quote author="MarianMMX" date="1397209527"]@LIBS += -L. -L$$PWD. -llibnetd@[/quote] -
What about:
@LIBS += -lnetd@
?
$$PWD will also work on Windows, it's not the command line environment variable in this case
-
T_T
@LIBS += -lnetd@ Doesn't work yet. Thank you for your attention.
[quote author="SGaist" date="1397214247"]What about:@LIBS += -lnetd@
?
$$PWD will also work on Windows, it's not the command line environment variable in this case[/quote]
-
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]