User forums > Using Code::Blocks

add-stdcall-alias

<< < (3/3)

iorec:
thanks for your comments.

i finally got it working with a .def file like this:
EXPORTS
    plugMain = plugMain@12 @2
    plugMain@12 @1

and the additional linker option:
--input-def my.def

dGrishin:

--- Quote from: iorec on November 04, 2006, 05:58:19 am ---thanks for your comments.

i finally got it working with a .def file like this:
EXPORTS
    plugMain = plugMain@12 @2
    plugMain@12 @1

and the additional linker option:
--input-def my.def

--- End quote ---

I got it working without a .def file.

Main menu: Project -> Build options -> GNU GCC Compiler -> Linker settings -> Other linker options: -Wl,--kill-at

TDragon:

--- Quote from: iorec on November 02, 2006, 04:59:21 pm ---i also tried with
-Wl, -add-stdcall-alias
but still i only get my function exportet once.

--- End quote ---
I wonder if this would all have been resolved much more easily if someone else had noticed the extraneous space and missing dash here. It should be "-Wl,--add-stdcall-alias".

dGrishin:

--- Quote from: TDragon on March 07, 2007, 04:36:49 pm ---It should be "-Wl,--add-stdcall-alias".
--- End quote ---

i tried both cases, with
-Wl, --add-stdcall-alias
and
-Wl,--kill-at

result in the picture below...

[attachment deleted by admin]

Navigation

[0] Message Index

[*] Previous page

Go to full version