User forums > General (but related to Code::Blocks)

GCC 4.4.1-tdm-2 for MinGW (with installer)

<< < (7/8) > >>

nenin:

--- Quote from: MaxGaspa on November 11, 2009, 09:55:26 pm ---Nenin wrote,,
>Could you please read more carefully what I wrote?

Yes I did. Unfortunately (please don't get me wrong)  <***>

--- End quote ---
I got you right. Could you please read more carefully  my previous posts?
There are issues with complier flags, not with code. This code works fine on previous MinGW versions, bite to bite without any correlation with optimization flags (at least safe-optimization, I do not use dangerous). Errors does not occur on 4.4.* while real optimization flags used (see gcc 4.4.1 man). It occurs  when amalgamation optimization flags "-O1" ..."-O3" applied  It is problem with compiler or ...  little homework.  :wink:

nenin:

--- Quote from: jaxon on November 11, 2009, 08:57:18 pm ---
--- Quote from: nenin on November 10, 2009, 07:38:22 pm ---
--- Quote from: TDragon on October 30, 2009, 08:56:28 pm ---Have you observed similar problems in the official MinGW release(s)?

--- End quote ---
So, bad news. I reproduced problem on official MinGW 4.4.0, on 4.4.0-tdm-1-dw2 and on 4.4.1-tdm-2-dw2.

--- End quote ---
It's very interesting what about Linux version of gcc...

--- End quote ---
I do not separate source of errors yet. And I can not port whole project to Lin for reasonable time (and I have not Lin32 boxes, though).

stefanos_:
TDragon, still I'm facing the same issue I have once reported to you.

The issue I'm facing is while running "mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1" command and waiting for it to finish, it leaves the linking process in the middle while displaying these lines and immediately stops:

c:/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: <unknown-file>:0: syntax error
Warning: .drectve `-export:T.848 ' unrecognized
c:/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: <unknown-file>:0: syntax error
Warning: .drectve `-export:T.566 ' unrecognized

The weird part through this process is that "mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1" compiles just fine!

Based on this link http://www.ogre3d.org/forums/viewtopic.php?f=2&t=55801&start=0, this guy's issue looks similar to mine. I have tried to ignore my 2 errors as this guy was suggested by others and currently I cannot run Code::Blocks. I was able to compile my svn code with the half-linked wxmsw28u_gcc_custom.dll but now I get "The procedure entry point _ZTV17wxMemoryFSHandler could not be located in the dynamic link memory wxmsw28u_gcc_custom.dll."

My Operating System is Windows XP Pro SP3 and I have installed TDM's GCC / MinGW: 4.4.1-tdm-2, bundled version. The wxWidgets version I'm using is wxMSW-2.8.10.

Please advice.

eranif:

--- Quote ---c:/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: <unknown-file>:0: syntax error
Warning: .drectve `-export:T.848 ' unrecognized
c:/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: <unknown-file>:0: syntax error
Warning: .drectve `-export:T.566 ' unrecognized
--- End quote ---
Its not a TDM-GCC only error. I compiled wxWidgets with GCC4.4.0 (the one that is officially released by the MinGW project) and the same error exists.
Note that the produced import library+DLL  are very much usable and I did not notice any errors while using them (for 6 months at least)

Eran

eranif:
@stefanos_:
I missed your other part of the post :)

--- Quote --- I was able to compile my svn code with the half-linked wxmsw28u_gcc_custom.dll
--- End quote ---
Its fully linked, those errors can be ignored

--- Quote ---"The procedure entry point _ZTV17"The procedure entry point _ZTV17wxMemoryFSHandler could not be located in the dynamic link memory wxmsw28u_gcc_custom.dll." could not be located in the dynamic link memory wxmsw28u_gcc_custom.dll."
--- End quote ---
Change your code to use wxMemoryFSHandlerBase and it will work (the class wxMemoryFSHandler inherits directly from wxMemoryFSHandlerBase and adds *nothing* to it)

You might also encounter the same issue with wxStringClientData

Eran

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version