2009/12/23 Chris Sutcliffe <[email protected]>:
> With the latest gcc/g++ I'm having issues with dllimport / dllexport.
> I have an old version of the mingw-w64 compiler hanging around:
>
> x86_64-w64-mingw32-g++.exe (GCC) 4.5.0 20091011 (experimental)
>
> which works fine, however the same code compiled with this version:
>
> x86_64-w64-mingw32-g++.exe (GCC) 4.5.0 20091221 (experimental)
>
> spits out errors regarding undefined references to functions that are
> dllexported from one of my shared libraries. I'm using
> __declspec(dllexport) / __declspec(dllimport) to export / import the
> functions, should I be using a different mechanism now?
>
> Cheers!
>
> Chris
Hello Chris,
I didn't noticed this change in behavior. Could you provide to me some
small testcase by which I can reproduce this?
The only thing you should be aware is, that by using shared C++ you
get linker warnings about autoimports, when you didn't specified
--enable-autoimports for linker. Did it helps if you specify option
-static?
Cheers,
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public