Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Errors in toplevel.h

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Errors in toplevel.h
#2773
Posted by: 2003-10-26 07:04:03
Hi

thanks for the advice with sizer ...

But in my project something strange happened ... I don't know why but I get compiler errors in the mswtoplevel.h ...

Here the compiler log:

In file included from c:/Dev-Cpp/include/wx/toplevel.h:159,
                 from c:/Dev-Cpp/include/wx/frame.h:23,
                 from c:/Dev-Cpp/include/wx/wx.h:32,
                 from MyBitmaps.cpp:2:
c:/Dev-Cpp/include/wx/msw/toplevel.h:94: type specifier omitted for parameter
c:/Dev-Cpp/include/wx/msw/toplevel.h:94: parse error before numeric constant

I don't know what I made wrong ...
Other projects compile fine and since I haven't altered the toplevel.h this has to be something with my code ...

cu
Message2. Re: Errors in toplevel.h
#2774
Posted by: guidance 2003-10-26 12:44:20
Try these compiler options:
http://g.yi.org/f.php?f=4630#4628
Message3. Re: Errors in toplevel.h
#2775
Posted by: 2003-10-26 16:29:19
Sorry but I get the same error ...

the default compiler options are already:

c++
-D_X86_=1 -DWIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -mthreads -DSTRICT  -D__WXMSW__ -D__WINDOWS__ -Wall -fno-pcc-struct-return -O2 -fno-rtti -fno-exceptions

linker
-lwxmswu -lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid 

which looks very similar to me (but I must admit I don`t know about most of the stuff)

cu
ernii
Message4. Re: Errors in toplevel.h
#2776
Posted by: 2003-10-26 16:56:55
I found a solution ... but I still don`t understand the problem ..

As the error occured only when I included <wx/wx.h>  in MyBitmaps.cpp I included it instead in MyBitmaps.h .... it worked fine ...

And it also works when I include first wx.h and then MyBitmaps.h ... is it necessary to include wx.h first?

cu
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥908.00 ·
 
 
¥1,380.00 ·
 
 
¥1,580.00 ·
 
 
¥890.00 ·
 
 
¥1,800.00 ·
 
 
¥294.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0