user interface - Using FLTK with Dev-C++ -


i have been working on several programming languages java , python , came c++. want build gui program , suggested use fltk, claimed lightweight , user-friendly. however, told install series of third-party tools, while still can't figure out how create simple gui application.

i first told install enormous ide dev-c++ , download fltk source code (obtained here). "tutorials" on internet suggested me install fltk package (obtained here), while couldn't find tutorials or documentations how "import" library (i mean, specifying classpath , import classes in java). tried copy fltk source code dev-c++ folder dev-cpp\mingw64\x86_64-w64-mingw32\include, created fltk project , started compiling following code (auto-generated):

/* ** copyright © yyyy name ** ** program free software; can redistribute and/or modify ** under terms of gnu general public license published ** free software foundation; either version 2 of license, or ** (at option) later version. ** ** program distributed in hope useful, ** without warranty; without implied warranty of ** merchantability or fitness particular purpose. see ** gnu library general public license more details. ** ** should have received copy of gnu general public license ** along program; if not, write free software ** foundation, inc., 59 temple place - suite 330, boston, ma 02111-1307, usa. */  /**    @file main.cpp    @author name    @date yyyy-mm-dd    @version 0.01 */  #include <fl/fl.h> #include <fl/fl_window.h> #include <fl/fl_box.h>  int main(int argc, char ** argv) {     fl_window *window;     fl_box *box;      window = new fl_window(300, 180);     box = new fl_box(20, 40, 260, 100, "hello world!");      box->box(fl_up_box);     box->labelsize(36);     box->labelfont(fl_bold+fl_italic);     box->labeltype(fl_shadow_label);     window->end();     window->show(argc, argv);      return(fl::run()); } 

instead of successful compilation, appears error message: (copied compile log)

compiling single file... -------- - filename: c:\c++\guitest\main.cxx - compiler name: tdm-gcc 4.9.2 32-bit release  processing c++ source file... -------- - c++ compiler: c:\program files\dev-cpp\mingw64\bin\g++.exe - command: g++.exe "c:\c++\guitest\main.cxx" -o "c:\c++\guitest\main.exe" -m32 -std=c++11 -i"c:\program files\dev-cpp\mingw64\include" -i"c:\program files\dev-cpp\mingw64\x86_64-w64-mingw32\include" -i"c:\program files\dev-cpp\mingw64\lib\gcc\x86_64-w64-mingw32\4.9.2\include" -i"c:\program files\dev-cpp\mingw64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++" -l"c:\program files\dev-cpp\mingw64\x86_64-w64-mingw32\lib32" -static-libgcc -m32 in file included c:/program files/dev-cpp/mingw64/x86_64-w64-mingw32/include/vadefs.h:9:0,                  c:/program files/dev-cpp/mingw64/x86_64-w64-mingw32/include/_mingw.h:282,                  c:/program files/dev-cpp/mingw64/x86_64-w64-mingw32/include/crtdefs.h:10,                  c:/program files/dev-cpp/mingw64/x86_64-w64-mingw32/include/stdio.h:9,                  c:/program files/dev-cpp/mingw64/x86_64-w64-mingw32/include/fl/fl_utf8.h:33,                  c:/program files/dev-cpp/mingw64/x86_64-w64-mingw32/include/fl/fl.h:30,                  c:\c++\guitest\main.cxx:26: c:/program files/dev-cpp/mingw64/x86_64-w64-mingw32/include/_mingw.h:686:33: fatal error: sdks/_mingw_directx.h: no such file or directory  #include "sdks/_mingw_directx.h"                                  ^ compilation terminated. 

i don't know how should proceed. seems me c++ support-lacking , undeveloped programming language sucks. please me, or @ least, give me hints, create simple gui, , correct misconceptions if there any. in advance.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -