Where Do I begin, GUI programming?

Started by
14 comments, last by Simian Man 18 years, 1 month ago
I've decided to use FLTK, I'm having a bit of trouble getting it to work though..

------ Build started: Project: OpenGL Window, Configuration: Debug Win32 ------Compiling...Example.cppLinking...Example.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall Fl_Window::~Fl_Window(void)" (??1Fl_Window@@UAE@XZ) referenced in function __unwindfunclet$??0Fl_Gl_Window@@QAE@HHHHPBD@Z$0Example.obj : error LNK2019: unresolved external symbol "private: void __thiscall Fl_Gl_Window::init(void)" (?init@Fl_Gl_Window@@AAEXXZ) referenced in function "public: __thiscall Fl_Gl_Window::Fl_Gl_Window(int,int,int,int,char const *)" (??0Fl_Gl_Window@@QAE@HHHHPBD@Z)Example.obj : error LNK2019: unresolved external symbol "public: __thiscall Fl_Window::Fl_Window(int,int,int,int,char const *)" (??0Fl_Window@@QAE@HHHHPBD@Z) referenced in function "public: __thiscall Fl_Gl_Window::Fl_Gl_Window(int,int,int,int,char const *)" (??0Fl_Gl_Window@@QAE@HHHHPBD@Z)Example.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Fl_Window::draw(void)" (?draw@Fl_Window@@MAEXXZ)Example.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Fl_Window::handle(int)" (?handle@Fl_Window@@UAEHH@Z)Example.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::resize(int,int,int,int)" (?resize@Fl_Gl_Window@@UAEXHHHH@Z)Example.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::flush(void)" (?flush@Fl_Gl_Window@@UAEXXZ)Example.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::show(void)" (?show@Fl_Gl_Window@@UAEXXZ)Example.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Gl_Window::hide(void)" (?hide@Fl_Gl_Window@@UAEXXZ)Example.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall Fl_Gl_Window::draw_overlay(void)" (?draw_overlay@Fl_Gl_Window@@EAEXXZ)Example.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall Fl_Gl_Window::~Fl_Gl_Window(void)" (??1Fl_Gl_Window@@UAE@XZ) referenced in function "public: virtual void * __thiscall Fl_Gl_Window::`scalar deleting destructor'(unsigned int)" (??_GFl_Gl_Window@@UAEPAXI@Z)Example.obj : error LNK2019: unresolved external symbol "public: void __thiscall Fl_Widget::redraw(void)" (?redraw@Fl_Widget@@QAEXXZ) referenced in function "private: virtual void __thiscall MyGlWindow::resize(int,int,int,int)" (?resize@MyGlWindow@@EAEXHHHH@Z)Example.obj : error LNK2019: unresolved external symbol "public: static int __cdecl Fl::run(void)" (?run@Fl@@SAHXZ) referenced in function _mainExample.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall Fl_Window::show(void)" (?show@Fl_Window@@UAEXXZ) referenced in function _mainExample.obj : error LNK2019: unresolved external symbol "public: __thiscall Fl_Window::Fl_Window(int,int,char const *)" (??0Fl_Window@@QAE@HHPBD@Z) referenced in function _mainC:\Documents and Settings\Jonathan\My Documents\Visual Studio 2005\Projects\OpenGL Window\Debug\OpenGL Window.dll : fatal error LNK1120: 15 unresolved externalsBuild log was saved at "file://c:\Documents and Settings\Jonathan\My Documents\Visual Studio 2005\Projects\OpenGL Window\OpenGL Window\Debug\BuildLog.htm"OpenGL Window - 16 error(s), 0 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Linker errors, can anyone point me to a tutorial on how to set this up, not the FLTK website though, it sucks.
----------------------------------------------------------Rating me down will only make me stronger.----------------------------------------------------------
Advertisement
unresolved external symbol usually means you included the header file but didn't link with the library.
Seriously do not bother with FLTK. I've used it for over a year in two of my projects which ended up being over 5,0000 lines of code. Half way through the project I started realizing the serious limitations of FLTK. FLTK is largely error prone. Support and documentations is very limited at best. Not to mention if you don't want your application looking like 100% crap, stay away from FLTK. FLTK should never be considered for a real project that is going to be more than a couple hundred lines of code.


I am sure other people on here will vouch for wxWdigets.

http://www.wxwidgets.org/

It is simply the best GUI library I have ever used and I've used pretty much all the popular ones (FOX, QT, FLTK). wxWidgets is a very mature codebase, great support, great documentation and very easy to use.


Alright, wxwidgets it is then, does it support openGL windows?
----------------------------------------------------------Rating me down will only make me stronger.----------------------------------------------------------
Alright this is getting to be a fucking pain, the documentation on ANY of these libraries is absulutely disgusting. I've tried to use fltk, that blew, I've tried cegui, that blew worse...

WXWidgets is the only thing I havn't tried, but I don't think I have anything to look forward to.
----------------------------------------------------------Rating me down will only make me stronger.----------------------------------------------------------
Yes wxWidgets does supprot OpenGL rendering. The documentation is excellent, but as I already said, it is quite tricky to install. It was pretty frustrating for me to get working and your temper seems worse than mine [smile]. Once you get it installed, however, it is really easy and even fun to work with.

Good Luck

This topic is closed to new replies.

Advertisement