Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / new to wxWindows - compiling problem

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

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. new to wxWindows - compiling problem
#2606
Posted by: 2003-09-07 07:09:32
I just installed the wxWindows package but cannot get the simpleset program to compile. Here are the errors I am getting:

Compiler: Default compiler
Building Makefile: "C:projectsHalf SaneMakefile.win"
Executing  make...
make.exe -f "C:projectsHalf SaneMakefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include" 

In file included from C:/Dev-Cpp/include/wx/wxprec.h:13,
                 from main.cpp:21:
C:/Dev-Cpp/include/wx/defs.h:174: redeclaration of C++ built-in type `bool'

In file included from C:/Dev-Cpp/include/wx/memory.h:20,
                 from C:/Dev-Cpp/include/wx/object.h:25,
                 from C:/Dev-Cpp/include/wx/wx.h:16,
                 from main.cpp:30:
C:/Dev-Cpp/include/wx/string.h:164:4: #error "Please define string case-insensitive compare for your OS/compiler"

make.exe: *** [main.o] Error 1

Execution terminated


I have already checked to see if the wxWindows template is correct and it is, it says: Cppcompiler...

and I have made sure that the parameters in the project file are correct.

I am at a loss

I am running Dev-C++ 4.9.8.1 on an old pentium166 with Windows XP.

Will sure appreciate any help

Les

Message2. Re: new to wxWindows - compiling problem
#2607
Posted by: guidance 2003-09-07 18:25:43
Try these compiler options:
http://g.yi.org/_scripts/file.php?f=424&r=46
Message3. Re: new to wxWindows - compiling problem
#2608
Posted by: 2003-09-07 22:29:43
I have already checked and made sure that I was using those compiler and linker options.

Anymore suggestions?

Les
Message4. Re: new to wxWindows - compiling problem
#2609
Posted by: 2003-09-08 01:04:29
Just a guess: Have you entered the options for the compiler under C-Compiler?
In that case simply copy them over to your c++ compiler options.

g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" - I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include"

There are no defines in that line, so check your options. There should be something like -d__WXMSW__ and so on.

upcase
Message5. Re: new to wxWindows - compiling problem
#2611
Posted by: Les 2003-09-08 21:16:39
I did finally get it to compile after I downloaded guidance's dev-pak and used the FOO.exe.manifest example file I found in the manual

Thank you
Message6. Re: new to wxWindows - compiling problem
#2613
Posted by: guidance 2003-09-09 10:10:50
Sorry, I don't offer dev-pak actually, maybe you mean the wxWindows.dev project file?
http://g.yi.org/_scripts/file.php?f=2618&r=46#7944
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥1,068.00 ·
 
 
¥930.00 ·
 
 
¥908.00 ·
 
 
¥1,390.00 ·
 
 
¥1,290.00 ·
 
 
¥748.00 ·
© Tue 2024-11-5  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0