You are not logged in.

#1 2005-04-24 07:52:36

sweiss
Member
Registered: 2004-02-16
Posts: 635

wxWidgets applications won't compile

Ok, so I came across a bunch of simple articles regarding wxWidgets coding. Here it is: http://www.codestorm.free2host.net/plug … php?id=346

Now, what I've done was basically copying the two files Base.h and Base.cpp, and then I did `g++ Base.cpp -o Base`.

What I got was just a handful of errors, a log can be found here: http://members.lycos.co.uk/sweiss3/extra/log.txt

I've tried it with gcc 3.4.3 and with gcc 4, wxgtk 2.4.2-3 and wxgtk 2.4.2-4.

Can anyone help?

Thanks in advance.

Offline

#2 2005-04-24 11:00:32

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 552

Re: wxWidgets applications won't compile

sweiss wrote:

Now, what I've done was basically copying the two files Base.h and Base.cpp, and then I did `g++ Base.cpp -o Base`.

What I got was just a handful of errors, a log can be found here: http://members.lycos.co.uk/sweiss3/extra/log.txt

I've tried it with gcc 3.4.3 and with gcc 4, wxgtk 2.4.2-3 and wxgtk 2.4.2-4.

first check out the wx-config script as suggested in your error text:
/usr/include/wx/defs.h:32:2: #error "No Target! You should use wx-config program for compilation flags!"

secondly, I just upload wxgtk 2.6 to testing, have a look at it smile

-neri

Offline

#3 2005-04-24 11:52:16

sweiss
Member
Registered: 2004-02-16
Posts: 635

Re: wxWidgets applications won't compile

I guess I'll try using KDevelop for the time being. Somehow I missed it having support for wxWidgets.

Better learn how to use the toolkit first, I suppose.

Thanks for your help, I'll go check wxgtk 2.6 now smile

Offline

#4 2006-01-19 22:52:29

major
Member
From: Ockelbo, Sweden
Registered: 2005-12-30
Posts: 25

Re: wxWidgets applications won't compile

Yo!

maybe its a old++ topic, just wanted to know.. (now that you have tested kdevelop and all).. i wanted to know what "support" it has for wxgtk?

I am trying to learn it myself... Using some really bad written GUI-designer atm. sad

Offline

Board footer

Powered by FluxBB