Dear members of the forum.
I have met a problem while I decided create a program that uses dynamically linked libraries.
I had created and compiled two test projects of my dlls without any problems and errors. In the process of compilation and linking 3 files were created for each project in the directory bin\debug:
<name>.dll, lib<name>.dll.a, lib<name>.dll.def .
Then I have created a project with a program that must use these dlls (future exe-module), copied lib<name>.dll.a file to the project directory and pointed it in the linker options of the project. I have added these files to the project tree as well. However after I started building (Ctrl-F9), some strange errors of the linker appeared.
Here is a quote:
mingw32-g++.exe: obj\Debug\libinout.dll.o: No such file or directory
mingw32-g++.exe: obj\Debug\libarithm.dll.o: No such file or directory
When I delete these files from the project tree leaving them in linker options another error springs out:
ld.exe: cannot find -larithm.dll
Please explain me what causes these mistakes and what I'm doing wrong. I tried to find this information in the users manual, however I didn't find any (perhaps I was not careful enough in my search). Could you give me a step by step instruction of creating such a project? I have made such projects based on the same source text in Visual Studio and dev-cpp (which contains an older version of MinGW) successfully, but I can't resolve the same problem in this IDE. Could you help me?