News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Error I could not avoid in wxWidget 2.8 and 2.9.3

Started by TomazVDSN, September 17, 2012, 10:36:33 PM

Previous topic - Next topic

TomazVDSN

Hi. I not a machine, I don't know almost anything on Code Blocks or C++

1) Installed wxPack_v22.8.12.01
    I follow the wxSmith tutorial : "Hello World"
    I have got the following error see text file attached:
    http://www.mediafire.com/view/?bs15c0zz1qr9khn

2)  So I did install the wxMSW-Setup-2.9.3 (wxWidgets2.9.3)
     I try to run the tutorial "Hello World" example again and I still got a minimum error.
     http://www.mediafire.com/view/?chprwd1y1q7l5al

Thank you for any help if possible !
     

Jenna

Your error-messages do not hel much, because the right part of it is cut.
A text based site (like pastebin) would be better to upload thes messages.

Nevertheless:
for the first question read http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef, especially the faq-section at the bottom of the article.
For the second question:
are you aware, that wxwidgets 2.9.3 is not provided as binary download, but only as source ?
The setup-file just installs the sources.
The link above should help you to build it.

stahta01

#2
IIRC, you are mixing version of MinGW GCC for the first error message.
Likely mixing SJLJ and Dwarf 2 version of MinGW GCC object files.

Second message implies you did NOT build wxWidgets as was mentioned by prior poster (jens).

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

TomazVDSN

Thank Friends,

I did read the link provided, download the wx...2.8.10, installed ..  there is only one error is:

QuoteC:\wxWidgets-2.8.10\include\wx\platform.h|196|fatal error: wx/setup.h: No such file or directory|




Quotefrom <command-line>:0:
C:\wxWidgets-2.8.10\include/wx/platform.h:196:22: fatal error: wx/setup.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings

CB "claim"there is no platform.h but I looked at the folder and it is there...
Regards

MortenMacFly

Quote from: TomazVDSN on September 18, 2012, 09:13:26 AM
Quotefrom <command-line>:0:
fatal error: wx/setup.h: No such file or directory
CB "claim"there is no platform.h but I looked at the folder and it is there...
Oh dear... that's wrong - as you see above.

This file is missing because you forgot to compile wxWidgets yourself. Please read the instructions how to build C::B yourself more carefully - especially the pre-requisite, or simply use a nightly, if you don't know how to compile wxWidgets/Code::Blocks.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

TomazVDSN

Jens,
MortenMacFly,

Thank you...!
I will read again the instruction and start from beginning. ;)
This is so difficult, it is not easy for me come from MS-Excel and try to set up CODE::BLOCKS with wxWidgets. :'(

Note: Anyway CB installation is very fast, much more than MSVC++ and more than Netbeans. ;), I just like it !

Regards,