I am new to C++ (since March) and am currently learning about GUI's. I have a very simple code that runs without error, but no window or GUI is displayed.
Here is my code:
#include <Fl.H>
#include <Fl_Window.H>
int main(int argc, char ** argv){
Fl_Window win(400, 400);
win.show();
return(Fl::run());
}
There was another individual on here that had the same problem with the same code, but he was using Cygwin (FLTK applications in Cygwin: GUI doesn't show?). The answer given to his question was the following:
If fltk-config --cxxflags and fltk-config --ldflags do not output -mno-cygwin, then your FLTK was compiled to work with Cygwin's X Window System - something you probably want to avoid. Add -mno-cygwin to your Makefile and your FLTK application should work.
I always liked MinGW+MSYS more.
To be honest, I don't understand what all that means, let alone applying it to my IDE and compiler. I'm guessing he was talking about using the command prompt to check something... but that is as far as I got.
I am running Dev-C++ 5.6.3 with MinGW with the 'TDM-GCC 4.8.1 32-bit Debug' option from the pull-down menu. In order to build GUIs in Dev-C++, I downloaded the Fast Light Toolkit (FLTK) 1.1.7 from devpaks.org community devpaks. I also had to go into the 'Compiler Options' and, under the 'Directories' tab, add the directory paths for those FLTK files under 'C++ Includes' tab, 'C Includes' tab, 'Libraries' tab, and 'Binaries' tab. Apart from all this, I am running all of this on a Windows 8.1 (64-bit) operating system.
Any help would be greatly appreciated!