Thank you for your reply!
I want to create a dll with undecorated stdcall functions for compatibility with other programming languages.
CodeLite and MinGW are new for me.
First,
there is a linker options where you can add your options instead of using -Wl option.
Yes, this is my first problem. If this is the compiler command:
Code: Select all
g++ -o xxxx.dll xxx.o -shared -s -Wl,--subsystem,windows,--output-def,xxxx.def
what must I use as CodeLite linker option?
I tried several possibilities and always got an error message, that the option is unrecognized or "no such file or directory".
Secondly, it seems strange to link in two passes. (def file won't be coherent with dll).
maybe use something like --add-stdcall-alias ?
I tried --add-stdcall-alias, and got error message "unrecognized option". How to use it with CodeLite linker options?
This processing really is strange, but I do not know another way to create a dll and an import lib with undecorated stdcall functions with MinGW using CodeLite.
If you know, please tell me.
The second step (create an undecorated function dll) I found, was:
Code: Select all
g++ -o xxxx.dll xxx.o -shared -s -Wl,--subsystem,windows,--kill-at
Third, you can use PostBuildEvent if necessary.
Actually there is a third step to create the import library, so I'll have to do this anyway.
I found on the web:
Code: Select all
dlltool --kill-at -d xxxx.def -D xxxx.dll -l libxxxx.a
But for the moment I would be happy, if I could set the correct linker options.
Regards,
Fred