On 4/19/2012 09:10, MARTIN Pierre wrote:
> i just tried replacing all __stdcall on my example by __fastcall, and rebuilt 
> the test library, re-made the .def / .delayed.a etc. Then the main executable 
> can link against the library (Although, the .def looks exactly the same to 
> me...), but it crashes when trying to call the dll object (My debugger steps 
> to the point the TotoLib object constructor *should* be called, and just 
> segfault).
> 
> i really don't understand much at this point. If you guys feel you have been 
> giving me a solution, please do it again, because i feel like i have done 
> what you told me to try, so maybe i didn't understand what the solution was.
> 
> Pierre.
> 

Fastcall and stdcall are different call conventions, so don't mix them up.

Seeing your earlier gendef output, _ZN7TotoLibC1Ev@4@4 looks very wrong,
how are you building the DLL? Maybe you can pass me the source/headers
off-list.

You may need to use --kill-at with dlltool.

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