User forums > Help

wxWidgets 2.6 (MSW, GCC) installation instructions

<< < (13/29) > >>

jmccay:

--- Quote from: jmccay on July 31, 2005, 03:40:33 am ---I uninstalled the final beta and installed RC1.  I chose not to clear the settings.  I set my path to include:

C:\Program Files\CodeBlocks\bin

My wxWidgets 2.6.1 (from CVS with the patch installed manually because it was available later) is in the this directory:

C:\development\projects\WX_2_6_1\wxWidgets

   I am still getting these warnings--endless warnings.  I can't figure out why.  It finishes compiling without errors, but I was wondering what was causing all the warning.  I get the dlls and archives.


--- Code: ---../../include/wx/datetime.h:34: warning: type attributes are honored only at typ
e definition
../../include/wx/datetime.h:35: warning: type attributes are honored only at typ
e definition
../../include/wx/datetime.h:36: warning: type attributes are honored only at typ
e definition
../../include/wx/datetime.h:111: warning: type attributes are honored only at ty
pe definition
../../include/wx/datetime.h:1440: warning: type attributes are honored only at t
ype definition
--- End code ---

jmccay

--- End quote ---

  I finally have an answer to this question.  Here is the answer from the wxWidgets forum:

the warnings are because the makefile turned all warnings on... you can easily edit it at ur wishes
-lowjoel (Moderator wxWidgets forum) http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=3324&start=0&postdays=0&postorder=asc&highlight=&sid=12dc997430a4cb2bc99f0175699f58de

Anybody know how to turn off that particular warning with turning them all off?  I edited the installation wiki to make note of that comment incase someone new wants to know why it's happening.

jmccay

takeshimiya:
I've read somewhere that this was a bug in a specific version of GCC, but I have a newer version, and I still get those warnings. :?

thomas:
The problem is that they use __declspec(dllexport) instead of  __attribute__ ((dllexport)) in the MinGW parts of the includes, which is not MinGW syntax.

For compatibility's sake, MinGW treats __declspec(dllexport) as an alias for __attribute__ ((dllexport)), but in a few builds, it does not work correctly and produces that warning.

pir:
Very valuable thread! It actually provides much more useful information than the wxWidgets site - the instructions that come with wxWidgets v2.6.2 don't seem to work (for me!) since there is no mention of the flags that seem to be essential.

Unfortunately, it's a bit confusing trying to extract a definitive set of instructions for the latest wxWidgets version from this thread. Is it possible for some kindly soul to post an up-to-date set of instructions for building both a static and dynamic link libraries? And to explain what all the flags do? MinGW is the compiler I use although I'm sure others would be valued too. (Is the wiki an appropriate repository for such an invaluable piece of information?)

Cheers,
Peter

David Perfors:
Yes the wiki should used for this.
Also I am (still) working on my computer to get linux working. Because I have noticed that is the easiest platform to create multiple kinds of documentation (probably not through, but that is what I found out) So as soon as that is done, I am able to start some write some documentation.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version