Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

FYI: GCC 4.5.0 on Mingw.org

<< < (10/17) > >>

reckless:
cooking up a patch since the problem only seems to affect c++ so check for c++ and if found use old way if not use nathans.

seems like the way to do it correctly ?

a14331990:

--- Quote from: reckless on May 16, 2010, 07:28:45 pm ---cooking up a patch since the problem only seems to affect c++ so check for c++ and if found use old way if not use nathans.

seems like the way to do it correctly ?

--- End quote ---
Hello, reckless. Please have a look at this post
[Mingw-users] gcc 4.5 change to generate code for dllexport'd inline functions in the DLL
http://lists-archives.org/mingw-users/16635-gcc-4-5-change-to-generate-code-for-dllexport-d-inline-functions-in-the-dll.html
it says

--- Quote ---For C DLLs the solution seems simple enough: just don't dllexport inline
functions and no code for them will be generated. But this doesn't work for
C++ DLLs

--- End quote ---
I think nathan's code is for C++ dlls especially libstdc++6.dll, before nathan's code there is no OLD way for libstdc++6.dll.   
it says more

--- Quote ---Cesar Strauss did suggest another approach in private email: don't use
dllexport at all but rely on MinGW auto-import mechanism.

--- End quote ---
This idea works very good! Thanks Cesar's idea and Dave Korn's patch for Cygwin.
The auto-import approach do have some drawbacks:

--- Quote ---but it's hardly ideal: all classes and
functions defined in the DLL are then exported, even those that are not
supposed to be used outside of it. This unnecessarily bloats (already
big) export tables and just seems like a step backwards. Indeed, if a
consequence of an improvement to dllexport mechanism is that now it can't
be used at all, what was the point of this improvement in the first case?

--- End quote ---

a14331990:
Leo's build of gcc, binutils, wxmsw, and cb6233 here.  8)
At Mr.Loaden's googlecode project,(I don't have enough time to manage patch/build/troubleshoot issues, thanks Mr.Loaden.)
http://code.google.com/p/qp-gcc/
located at Wiki and Downloads columns:
http://code.google.com/p/qp-gcc/wiki/GCC45BuildbyLeo
http://code.google.com/p/qp-gcc/wiki/InstallNotesForGCC45BuildByLeo
http://code.google.com/p/qp-gcc/downloads/list
Please help test them.

ollydbg:

--- Quote from: a14331990 on May 17, 2010, 02:14:54 am ---Leo's build of gcc, binutils, wxmsw, and cb6233 here.  8)
At Mr.Loaden's googlecode project,(I don't have enough time to manage patch/build/troubleshoot issues, thanks Mr.Loaden.)
http://code.google.com/p/qp-gcc/
located at Wiki and Downloads columns:
http://code.google.com/p/qp-gcc/wiki/GCC45BuildbyLeo
http://code.google.com/p/qp-gcc/wiki/InstallNotesForGCC45BuildByLeo
http://code.google.com/p/qp-gcc/downloads/list
Please help test them.

--- End quote ---
Nice, I will test it!! You're so smart!!!

reckless:
okidoki :)

can test the changes soon rebuild should be done in about an hour.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version