I did not tell C::B to use libOgreMain-1.4.1.so in the first place and neither to use /usr/lib. Any place where I can check for this things? I want the application to use the libs in my ./lib folder so when I give to someone they can just run it.
Any input on this manner will be welcomed. Thanks for your time.
-r
I know you have solved your problem, but you will probably find it useful to know that in linux gcc has standard include and lib directories such as /usr/include and /usr/lib (this is also true in windows, the paths are obviously different, though)
while you can solve your problems by directly specifying linker options as you have done it is even easier to use cb build options:
if you want to add additional paths for your cb project (or a specific build within a project), just goto project -> build options -> search directories and add compiler and linker paths. these will take precedence over the standard gcc paths.