954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

wxWidgets with C++ in XCode

Hello, I think I have the right location for this thread.
I'm working on a C++ project where I need to create a GUI. I'm using wxWidgets, which is cross platform compatible. Now I know that Cocoa/Objective-C/not C++ is the option of choice for GUI programming on the Mac, but I need to do this with C++ and wxWidgets.
Now I have everything setup to get the form working, but my problem is compiling. I need to have a target that can compile C++ code that does more than just a console line. How do I compile and run C++ code that allows for GUI's? I'm running XCode 4

BobTheLob
Light Poster
34 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

There is nothing magic about compiling something with a GUI. You simply have to link to the GUI library (in your case Wx) that you want to use. You can see the setup with CMake here:
http://programmingexamples.net/index.php?title=CPP/WxWidgets/Basic

daviddoria
Posting Virtuoso
1,996 posts since Feb 2008
Reputation Points: 437
Solved Threads: 204
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: