On 04/07/2010 10:52 PM, Mike Werner wrote: > Fltk 1.1.10 is successfully installed on my new workstation. It's running > Windows XP Pro X64 (dictated by my employer). Used Visual C++ 2008 Express to > compile and link. The FLTK demos compiled and ran fine. Used the dsw file in > the FLTK/visualc folder to compile them. Was also able to port a small > OpenGL/Glut app from my old system to the new one. It compiled and ran fine. > But I can't get a larger OpenGL/FLTK app to compile. The compiler couldn't > find config.h. There isn't one in the FL folder. But there are lots of them > in other folders. I tried copying the one in the visualc folder to the FL > folder. Didn't help. Get 219 compile errors with or without the config.h > file. Lots of the errors emanate from windef.h. Some examples are: > > windef.h(157) : error C2143: syntax error : missing ';' before '*' > windef.h(157) : error C4430: missing type specifier - int assumed. .... > windef.h(157) : error C2365: 'FLOAT' : redefinition; previous definition was > 'enumerator' > > These seem like very fundamental problems. Why would FLTK 1.1.10 compile, my > small app (without FLTK) compile, but not my app which uses FLTK? Why do > these fundamental problems only show up when I try to compile a FLTK app? > Thanks.
I'm not overly familiar with VC++ but I can offer some advice. config.h is used to compile FLTK, but is not required by user apps. Make sure that your compiler search path includes the folder holding FL, but not FL itself. Your source files should have includes in the form #include <FL/Fl.H> this keeps the monsters away, acting as a namespace of sorts. If this isn't your problem perhaps you can post a small "hello world" type app and the error logs. Mike _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

