User forums > Help

Linker can't find my lib file, what's wrong ?

<< < (2/2)

keyser:

--- Quote from: dje on July 17, 2008, 02:25:14 pm ---I'm between and it works !
libwxmsw28u.a in the Link libraries
C:\wxWidgets-2.8.8\lib\gcc_dll in the linker search directories

EDIT: I use gcc version 3.4.5 (mingw-vista special) on XP SP2.

Did you specify your options to the right project /build target ?

Dje

--- End quote ---

I meet that problem several times. I found that if i provide a full path of the ".a" file in the "Link Libraries" such as "F:\utility\bin\lib\container.a" it works well.

but if i change it to "container.a", and specific the path in "Search Directories" such as "F:\utility\bin\lib\", it doesn't work at all.

I think C::B should connect "Search Directories" and "Link Libraries", but it doesn't,  i don't know why.

keyser:
Finally i got it worked.


I change my lib file name from "container.a" to "libcontainer.a", and then add "container"(without prefix or extension) in my "Link Libraries", and it works well.

And i also find that in Compiler and debugger settings you can set the libraries "prefix" and "extension", which in default is "lib" and "a"

Navigation

[0] Message Index

[*] Previous page

Go to full version