Mike, I read that you solved the linking problem, but... On 09.04.2010, at 02:26, Mike Werner wrote:
> 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. As others noted before, you shouldn't include config.h. The reason why the CubeView demo includes config.h is that the author tried to make a working demo program, even if the user doesn't have OpenGL support on his system (or doesn't want it in his FLTK build). What you should do in your app is different: if you need OpenGL, then you should require that it exists, and if you have used the macro HAVE_GL in your code, then you should either define it: #define HAVE_GL 1 somewhere in a header, or remove all the conditional statements that depend on it. Then you can remove config.h. This ought to be (have been) the only reference to config.h in your program anyway. BTW.: this statement in CubeView.h: #include <config.h> is questionable and should IMHO read: #include "../config.h" . This would make it clear that this is not an "installed" file but a local file that (only) exists in the build tree. Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

