On 4/19/2012 02:42, MARTIN Pierre wrote:
> i just put the Toto test project on my mac, and compiled it. It works when 
> using -lazy-lTotoLib as well as when using -lTotoLib.
> And if i compile TotoApp using -lazy-lTotoLib and add a debug message in the 
> main right before the library will get loaded, the binary executes without 
> dependencies problem, displays the first message. Then just adding 
> libTotoLib.so in the directory and re-running the TotoApp binary displays the 
> same message.
> 
> So this really a problem with the gendef tool, which apparently messes up 
> with the functions, right? i really don't see what to add to the TotoLib 
> object in term of calling conventions, any clue?
> 

No, your code is requesting versions wothout @nn, but gendef is actually
finding that the functions are adjusting the stack before returning
(fastcall or stdcall). gendef can't tell the difference between @0 and
cdecl though since they look the same.

You should tell the compiler which call convention you are using via
__stdcall or __fastcall annotation, or the stack will get messed up and
crash the program.

Without actually looking at your program code, I can't actually tell
what's going on though.

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to