Hello!
Thanks for your reply!
No, I have only a .dll file.
By the way, some more info:
I'm using CodeBlocks 20.03, configured with MinGW64
-> By the way, when I set the compiler, there was no xxx64, but only xxx32 options, for example
c compiler: x86_64-w64-mingw32-gcc.exe // Why is it mingw32 and not 64???
goto Project options -> Linker settings and put my_dll.a on the left listbox or my_dll.dll on the right.
Ok, let's be accurate, I'm an absolute beginner with CodeBlocks...
In this cersion, I don't have a Project options menu. I have a Project top menu, and under this project
menu, I have "Build options" and "properties".
I have opened Project -> Build options which sounds more correlated to what you suggested. Is this right?
In the config window -> Lineker settings tab, I have indeed 2 columns. I can put something on the left by
browsing to that file, but on the right column, I have to key in what I want to add (my_dll.dll). Does it
correspond to what's needed?
After keying in, I retried to compile everything (Rebuild workspace), and apparently things progressed
since all the undefined reference to __imp_my_function disappeared.
But now it says: error: ld returned 5 exit status.
Nothing more. I don't know what the 5 exit status mean. Is there a path problem? I tried the full path,
it doesn't help.
Any hint?
Thanks!
R