Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / error: redeclaration of C++ built-in type 'bool'

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

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. error: redeclaration of C++ built-in type 'bool'
#2505
Posted by: yabid 2003-08-21 19:08:30

 Hello, I have a small problem: I tried to built the default projet ( just a frame) with Dev C++ but i had this error :

 error: redeclaration of C++ built-in type 'bool' coming from an included file : wxdefs.h, it refers to these ligns:

 # if !defined(HAVE_BOOL)&&!defined(BOOl)&&!defined(VMS)
 typedef unsigned int bool;
 # endif

 I don't exactly know where the problem is, it works at home or on other pc. I tried to include other libraries but it was worse.

 Did someone have a similar problem before?

 Thank you very much for your help.
Message2. Re: error: redeclaration of C++ built-in type 'bool'
#2507
Posted by: guidance 2003-08-21 20:06:11
I'm using mingw gcc3.3.1, seems no problem with these compiler parameters: http://g.yi.org/_scripts/file.php?f=424&r=46

You may also try add "-DHAVE_BOOL".
Message3. Re: error: redeclaration of C++ built-in type 'bool'
#2508
Posted by: yabid 2003-08-21 21:27:04

 Thank you very much, it works !
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0