user interface - FLTK GUI not displaying (Dev-C++) -
i new c++ (since march) , learning gui's. have simple code runs without error, no window or gui displayed.
here 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 individual on here had same problem same code, using cygwin (fltk applications in cygwin: gui doesn't show?). answer given question following:
if fltk-config --cxxflags , fltk-config --ldflags not output -mno-cygwin, fltk compiled work cygwin's x window system - want avoid. add -mno-cygwin makefile , fltk application should work.
i liked mingw+msys more.
to honest, don't understand means, let alone applying ide , compiler. i'm guessing talking using command prompt check something... far got.
i running dev-c++ 5.6.3 mingw 'tdm-gcc 4.8.1 32-bit debug' option pull-down menu. in order build guis in dev-c++, downloaded fast light toolkit (fltk) 1.1.7 devpaks.org community devpaks. had go 'compiler options' and, under 'directories' tab, add directory paths fltk files under 'c++ includes' tab, 'c includes' tab, 'libraries' tab, , 'binaries' tab. apart this, running of on windows 8.1 (64-bit) operating system.
any appreciated!
ok, have downloaded orwell dev-c++ 5.6.3 bundled mingw's gcc 4.8.1. downloaded fltk 1.3.0 devpak http://devpaks.org , straightforward reproduce problem. first guess libraries inside devpak file (they originate https://code.google.com/p/fltkwinbin ) not more up-to-date environment dev-c++ 5.6.3 using.
it best build fltk inside dev-c++ 5.6.3, , use libraries in projects. if find time, this, , perhaps build more up-to-date devpak... stay tuned.
Comments
Post a Comment