User forums > Using Code::Blocks

Using DEF Files with DLL Creation

<< < (2/2)

BigAngryDog:
>You would might be give a try to a nightly build

I just have. Thanks!


>Try adding the following in your target's other linker options:

>--def test.def
>EDIT: if the above doesn't work, try -Wl,--def=test.def

Will do. Thanks!

BigAngryDog:
>--def test.def
>EDIT: if the above doesn't work, try -Wl,--def=test.def

Didn't work, but helped me know what sort of thing to look for. Thanks.

So for anyone else looking to build a dll using the __stdcall (WINAPI) calling convention, without the name decoration MinGW (GCC) adds, then put this in CodeBlocks' "Other Linker Options":


--- Code: ----Wl,--kill-at

--- End code ---

grandzebu:
What a very goog information : -Wl,--kill-at is THE solution
Thank's a lot
GZ

Navigation

[0] Message Index

[*] Previous page

Go to full version