>> ... perhaps you can post a small "hello world" ...
> I like your idea. Hopefully if I can get Hello World compiled
> and executed I'll be able to run my own applications. But it
> doesn't look promising ...
Got 'Hello World' working, which means I was able to compile, link, and execute
the code in a folder OTHER than where the demo is. That's a step towards being
able to compile and run my own FLTK-OpenGL apps.
Someone asked why I was trying to include 'config.h' in my apps. It's because
my apps are based on the CubeView demo (FLTK-OpenGL). This was how I got
started with FLTK 1.0.xx years ago. The demo includes 'config.h'. Didn't think
about it the necessity of it at the time. I was just happy to be able to
compile, link, and run my own FLTK-OpenGL apps - anyway I could.
After my success with 'Hello World' I tried copying the source files for the
CubeView demo into a new folder to see if I could compile, link, and run the
demo outside of the fltk demo environment. This is what I have to do to run my
apps (which run fine under 1.0.11). I looked at the Visual C++ project files
for guidance which helped a little. I'm at the point now where the demo
compiles but does not link. I get 8 error messages which look like -
1>CubeView.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall Fl_Gl_Window::resize(int,int,int,int)"
(?res...@fl_gl_window@@uaexh...@z)
1>CubeView.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall Fl_Gl_Window::flush(void)" (?fl...@fl_gl_window@@UAEXXZ)
1>CubeView.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall Fl_Gl_Window::show(void)" (?s...@fl_gl_window@@UAEXXZ)
1>CubeView.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall Fl_Gl_Window::hide(void)" (?h...@fl_gl_window@@UAEXXZ)
Been going around in circles on this for a few hours. Anyone have any
suggestions? I have taken out the include "config.h" lines and all the
dependencies on HAVE_GL. This demo is made up of 5 files. Would be a little
awkward to show all the 'includes'. But here are the includes from the file
CubeView.h -
#ifndef CUBEVIEW_H
#define CUBEVIEW_H 1
// #include <config.h>
#include <FL/Fl.H>
#include <FL/Fl_Gl_Window.H>
#include <FL/gl.h>
#include <stdlib.h>
class CubeView : public Fl_Gl_Window { ......
Could this have something to do with Ignore Libraries or running on a 64 bit
machine? Thanks.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk