Menu

Can't compile wxWidgets code!

optimist07
2007-12-06
2012-09-26
  • optimist07

    optimist07 - 2007-12-06

    wxWidgets with Dev-cpp:
    The wxWidgets devpak is installed, it shows up in the install manager but I'm not able to compile code that uses wxwidgets. I get several errors on include directives like this:

    9 F:\Dev-Cpp\Projects\main.cpp wx/wxprec.h: No such file or directory.

    I installed Dev-cpp, and then installed imagelib Devpak and then wxwidgets devpak. The Dev-cpp's Package Manager shows wxwidgets devpak is installed and verifies that there are no errors.

    The Dev-cpp is in F:\Dev-Cpp, widgets are in:
    F:\Dev-Cpp\wxWidgets-2.8.6-msw-static

    Please help! I'm going crazy after spending several hours trying to compile a piece of wxwidgets code with ANY compiler!

    I tried BCC5 earlier, it gave similar error message on the very first #include directive but after I gave the include path in BCC5's configuration file, now it gives two new errors:
    Error E2209 f:\wx287\include\wx/platform.h 196: Unable to open include file 'wx/setup.h'
    Fatal F1003 f:\wx287\include\wx/chkconf.h 95: Error directive: "wxUSE_CRASHREPORT must be defined."

     
    • optimist07

      optimist07 - 2007-12-10

      Thanks a lot for another quick reply, it's much appreciated! I will post the question in that forum.

       
    • S. Thomas Bradley

      Hi Everyone:

      Make you life easy. Download wxDev-C++, a version of Dev-C++ already setup to do wxWidgets.

      http://wxdsgn.sourceforge.net/

      See Ya
      Butch

       
    • optimist07

      optimist07 - 2007-12-07

      Thanks, downloaded it and it works like a charm! (well, almost)

      I've been getting some WYSINAWYG (What You See Is Not Always What You Get) problems with it though, like I choose the background and foreground colors of a static box but they don't show up in the actual executable as they do in the DevC++ IDE :(

      Anyone else faced such issues? I'll try to upload the project, it's a basic dialog box (I'm trying to create an installer), I'm trying to add a static box with white color so that the background of the main form is default grey and there is a white static box on the right half, or a top bar with black text that says "Welcome to xyz install".

       
    • S. Thomas Bradley

      Glad to hear that everything is working.

      You would probably get a better answer if you ask this question on the wxDev-C++ forum. If that doesn't work you can try the wxWidget forum.

      To get to the wxDev-C++ forum go to the site I gave above and on the left click on 'Getting Help/Links' then on 'wxDev-C++ forum'.

      Good Luck and have fun.

      Butch

       

Log in to post a comment.