TOOL CHAIN:
Code::Blocks 8.02 Build: Feb 27 2008, 21:58:34 - wx2.8.7 (Linux, unicode)
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
[Did I miss anything?]
PROBLEM:
I have a similar setup, but a slightly different problem. I have a workspace with 2 projects. Project A: creates a shared (dynamic?) library (MyLib.so). Project B: creates a console application.
I build Project A, with no problem. I see MyLib.so in the output directory.
I try to have Project B link MyLib.so, but I always get the following output in the "Build log":
-------------- Build: Debug in VideoSvrLinux ---------------
Linking console executable: bin/Debug/MyConsoleApp
/usr/bin/ld: cannot find -lMyLib.so
collect2: ld returned 1 exit status
So my console application (Project B) does not even link.
QUESTION: does someone have a very simple example of a Workspace, Project File, Source file that I can use a starting point?
QUESTION: is Code::Blocks "Dynamic library" the same thing as a "Shared Library"?
Project A creates a shared library.
Project B links in that shared library.
Thank in advance.
NOTES:
* tried copying MyLib.so to /usr/local/lib and edited the /etc/ld.so.conf to include that path; no success
* previously Project A was just generating a Static library (libMyLib.a) and I could link against that no problem.