User forums > Help
Setting up code blocks so that I can compile wxwidgets programs.
thomas:
Your "header" file contains the same as your source file.
Not only will that fail because your classes are not declared, but you also create an infinite #include loop (the compiler will abort after 100 or so inclusions). Regardless of everything else, this will not compile.
The error messages that you posted are not related to that, however. They are purely due to improper compiler path setup.
You should have taken 30 seconds to read my above posts regarding this path setup. But I am very well willing to repeat myself again:
Either set up the paths as in the screenshot and set the wx variable to where your wxWidgets installation lives, or better, use the template (the template will do it correctly).
squizzz:
@djsbriscoe - check this. :P
And since you are starting with wxWidgets, you might find these 2 places very helpful:
Official wxWidgets forum
mailing list: comp.soft-sys.wxwindows
Michael:
Hello,
This book could also be very useful :).
Best wishes,
Michael
djsbriscoe:
Hi,
Thank you for your help so far :)
I have one last problem, this error
C:\wxWidgets-2.6.2\include\wx\msw\wx.rc:104: warning: no newline at end of file
I've tried adding a newline at the end of the line but the compiler still complains. Can I change the output parsing order in advanced compiler options, if so how exactly?
Lets hope I can get this last problem sorted.
Michael I've downloaded the book you mentioned and thats the book I'm going to learn from,Thanks. Thomas thanks for being patient. Squizz I followed the advice to copy setup.h to another directory and this solved the setup.h problem.
Thanks also to everyone else I havent mentioned.
David.
Michael:
--- Quote from: djsbriscoe on April 15, 2006, 11:58:47 pm ---I have one last problem, this error
C:\wxWidgets-2.6.2\include\wx\msw\wx.rc:104: warning: no newline at end of file
I've tried adding a newline at the end of the line but the compiler still complains.
Lets hope I can get this last problem sorted.
--- End quote ---
Hello,
it is not an error, but a warning. Normally there shoulld be a newline at the end of a file (.h & -cpp). Add a new line (an empty line) should stop the compiler to complain about. Anyway, the file in question concerns the wxWidgets library.
Best wishes,
Michael
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version