Link library issue
Posted: Thu Jun 22, 2017 2:05 pm
I am trying to link a static library in the project.
In setting->compiler, set include paths as "test/include" (it works)
In setting->linker, set libraries search path as "test/lib"; and set libraries as "libtest.a" (the error: "ld.exe: cannot find -ltest")
finially, I use "absolute path+library name" in "libraries", then it works.
So, I am not sure what is the right way to use libraries search path and libraries?
Thanks,
In setting->compiler, set include paths as "test/include" (it works)
In setting->linker, set libraries search path as "test/lib"; and set libraries as "libtest.a" (the error: "ld.exe: cannot find -ltest")
finially, I use "absolute path+library name" in "libraries", then it works.
So, I am not sure what is the right way to use libraries search path and libraries?
Thanks,