-l IEICAN02.lib
bin\IEICAN02.lib
..\IEICAN02.dll
According to your image (Please: Never-ever use MS Word format again but true images such as JPG or PNG) you did several things wrong:
1.) Your library has an import library (if I got that picture right). So it makes no sense to link against both, the library and the DLL. Choose the library only and put the DLL to the application at runtime. I believe that's what you want to achieve.
2.) The linker option for GCC is:
-l[library name]. That's a lower-case "
L"
WITHOUT space between the linker option and the library. Otherwise the linker takes this as two options: "-l" without am library -> so it get ignored and IEICAN02.lib as an
object (not library!) file to link into the application. This won't work.
3.) You tell the linker to "somehow" include 3 files all of (more ort less) the same type. Decide for one way to go.
I strongly suggest you first read yourself into the command line version of the compiler / linker of your choice.
I'll give you a final hint:
1.) add *only* the import library under "link libraries" -> without path, without extension, without prefix.
2.) add the path to the import library under "search directories" -> linker
3.) put the DLL into your application directory.
BTW: This has been told a lot on this forum although it's not really related to C::B. I can only suggest to everybody: Learn how a compiler / linker works before you start using (
any) IDE. Use the command line to get the basic skills, then use the IDE to automise the boring stuff. Otherwise you will sooner or later be lost again.