Lots of warnings while compiling with MinGW32

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 437
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Lots of warnings while compiling with MinGW32

Post by xaviou »

Hi.
I tryed to recompile wx27 libs directly with MinGW32 3.4.2.
I didn't modify any option in "setup.h"
When compiling for Static libs, everything is OK.
When compiling for shared libs, I have a lot of warnigs like:

In file included from ../../include/wx/memory.h:16,
from ../../include/wx/object.h:21,
from ../../include/wx/list.h:33,
from ../../src/common/appbase.cpp:28:
../../include/wx/string.h:58: warning: type attributes are honored only at type definition
../../include/wx/string.h:249: warning: type attributes are honored only at type definition
../../include/wx/string.h:656: warning: type attributes are honored only at type definition

I've redirected stdout to a file named "StdOut.txt", and stderr to "StdErr.txt".
For the "Release Ansi Shared" configuration, the "StdErr.txt" file size is more than 126Mo, full of warnings only.

The command line I used is:

mingw32-make -f makefile.gcc BUILD=release SHARED=1 UNICODE=0

I would link to know if someone has had this problem before (this is not really a problem, because I can compile instead, but I think it would be better to have an empty error log)

Thanks for your replies...
Sof_T
Can't get richer than this
Can't get richer than this
Posts: 864
Joined: Thu Jul 28, 2005 9:48 pm
Location: New Forest, United Kingdom
Contact:

Post by Sof_T »

Hi Xaviou

I can't help you any with this problem, except to say that my experience has been identical. I was expecting the compile to end in an error after the string of warnings when compiling dynamic libraries. However at the end of it the libraries worked OK.

Googling the best I could find is
the header file needlessly uses type attributes in the forward declaration, which prompts gcc 4.1 to warn with
warning: type attributes are honored only at type definition
Sof.T
The home of Sof.T http://www.sof-t.site88.net/
Author of Programming with wxDevC++
http://sourceforge.net/projects/wxdevcpp-book/
User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 437
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Post by xaviou »

Hi

I re-tryed compiling libs, using MSYS (with the same version of gcc) and... no warnings !

Isn't it strange ?
Post Reply