I am trying to create a workspace which included two projects: "exe" and "dll", my OS is Linux(Ubuntu10.04).
my steps:
1, create a empty workspace "testcldll" under "/home/roy/desktop" folder.
2, create a dynamic library (with g+++) project "dll".
3, create a console simple executable(g++) project "exe"
4, add "-fPIC" to "dll" project compile option, build "dll" project successfully, "testcl/dll/Debug/dll.so" was create.
6, add "/home/roy/desktop/testcldll/dll/Debug/" to "exe" project "Linker->Library Path", add "dll" to "Linker->Libraries"
7, build "exe" prject, failed on error:
Code: Select all
g++ -c "/home/roy/desktop/testcldll/exe/main.cpp" -g -o ./Debug/main.o "-I." "-I."
g++ -o ./Debug/exe ./Debug/main.o "-L." "-L/home/roy/desktop/testcldll/dll/Debug/" -ldll
/usr/bin/ld: cannot find -ldll
Thanks
BTW, I have read this page,
Code: Select all
http://codelite.org/forum/viewtopic.php?f=11&t=962