Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / for upcase :-) Problems compiling minimal example

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

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. for upcase :-) Problems compiling minimal example
#2675
Posted by: olli666 2003-09-25 19:25:40
Hi all :-)

Everything worked fine (compiling wxWindows with make -f makefile.g95 FINAL=1) ... now I tried to setup Dev-C++ to be my wxWindows - IDE :-)

I used this manual:
http://www.bg.bib.de/~bbsh1akr/devpack.html

Included c:wxlib and c:wxinclude (Dev-C++ "Tools"->"Compiler Options")

I also tried these options:
http://g.yi.org/_scripts/file.php?f=424&r=46
I used the options from the tutorial above (written by upcase) but I get the same error (see below)

I did not forget to set WXWIN (= C:wx) in my environment PATH variables. (I have Win2000)

I try to compile the minimal example from the "HelloWorldApp.cpp" (wxTutorial, Chapter 2), I?ll get following error: (compile log)
Compiler: Default compiler
Building Makefile: "D:my_wxMakefile.win"
Führt  make clean aus
rm -f hello.o  Projekt1.exe

g++.exe -D__DEBUG__ -c hello.cpp -o hello.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"  -I"C:/wx/include" -D_X86_=1  -DWIN32  -D_WIN32  -D__WIN95__  -D__GNUWIN32__  -D__WIN32__  -DSTRICT   -D__WXMSW__  -D__WINDOWS__   -fno-rtti -fmessage-length=0  -fno-exceptions  -Os   -pg -g3

hello.cpp:2:10: #include expects "FILENAME" or <FILENAME>
hello.cpp:4:10: #include expects "FILENAME" or <FILENAME>
hello.cpp:6:10: #include expects "FILENAME" or <FILENAME>
hello.cpp:7: `HelloWorldApp' was not declared in this scope

hello.cpp:8: ISO C++ forbids declaration of `IMPLEMENT_APP' with no type

hello.cpp:8: syntax error before `bool'

hello.cpp:10: stray '223' in program

hello.cpp:10: stray '224' in program

hello.cpp:11: syntax error before `->' token

hello.cpp:12: syntax error before `->' token

hello.cpp:12: stray '223' in program

hello.cpp:12: stray '224' in program

hello.cpp:13: syntax error before `->' token

hello.cpp:14: `frame' was not declared in this scope

hello.cpp:14: ISO C++ forbids declaration of `SetTopWindow' with no type

hello.cpp:15: parse error before `return'

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

Ausführung beendet

-----------------------------------

Here some additional informations: (my settings for Dev-C++)
http://people.freenet.de/olli666/devcpp.html

Hope someone could help me, please.
Thanx for your efforts.

Regards Olli
Message2. Re: for upcase :-) Problems compiling minimal example
#2676
Posted by: guidance 2003-09-25 20:18:28
Try just #include "wx/wx.h"
Message3. Re: for upcase :-) Problems compiling minimal example
#2677
Posted by: olli666 2003-09-25 21:18:06
code changed:

#include “wx/wx.h”

IMPLEMENT_APP(HelloWorldApp)
bool HelloWorldApp::OnInit()
{
wxFrame *frame = new wxFrame((wxFrame*) NULL, -1, “Hello World”);
frame->CreateStatusBar();
frame->SetStatusText(“Hello World”);
frame->Show(TRUE);
SetTopWindow(frame);
return true;
}

but I get the same mistakes :-(

Looks like another compiler tries to compile my app instead of mingw ... but there is only mingw accessable for Dev-C++ :-)  ... perhaps a false or forgotten option in compiler/linker settings?

Olli
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2023-1-27  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0