Hi,
I've been trying to port some FLTK code that I've developed on ubuntu to
Windows XP and have run into a compile error that I have not been able to
figure out. I'm using FLTK 1.1.9, on Visual C++ 2008 Express Edition, and have
compiled all of the project code in the visualc/ directory without any
problems. I've made release and debug versions of the libs (fltk.lib,
fltkd.lib) just so I could test compile both versions of my own code (with the
same problematic results). As far as I can tell, the Additional Include
Directories (C:\FLTK), Preprocessor Definitions, Runtime Library (/MD for the
Release version) settings in C/C++ options, and the library link option in the
Linker are correctly set.
One source file with the usual standard includes (math.h, stdio.h, etc.)
compiles fine with only a handful of warnings. All of my other source files
also have <FL/*.H> includes and have similar error messages during the build
(or individual compile). I've searched through the forum postings and there
doesn't appear to be a previous problem similar to mine. However I have a
nagging suspicion that I'm neglecting something very simple. The compile error
output for one of my files are:
Compiling...
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will
be removed in a future release
utils.C
c:\fltk\fl\Enumerations.H(187) : error C2061: syntax error : identifier
'fl_define_FL_ROUND_UP_BOX'
c:\fltk\fl\Enumerations.H(187) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(187) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(190) : error C2061: syntax error : identifier
'fl_define_FL_SHADOW_BOX'
c:\fltk\fl\Enumerations.H(190) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(190) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(193) : error C2061: syntax error : identifier
'fl_define_FL_ROUNDED_BOX'
c:\fltk\fl\Enumerations.H(193) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(193) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(196) : error C2061: syntax error : identifier
'fl_define_FL_RFLAT_BOX'
c:\fltk\fl\Enumerations.H(196) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(196) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(198) : error C2061: syntax error : identifier
'fl_define_FL_RSHADOW_BOX'
c:\fltk\fl\Enumerations.H(198) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(198) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(200) : error C2061: syntax error : identifier
'fl_define_FL_DIAMOND_BOX'
c:\fltk\fl\Enumerations.H(200) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(200) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(203) : error C2061: syntax error : identifier
'fl_define_FL_OVAL_BOX'
c:\fltk\fl\Enumerations.H(203) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(203) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(209) : error C2061: syntax error : identifier
'fl_define_FL_PLASTIC_UP_BOX'
c:\fltk\fl\Enumerations.H(209) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(209) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(219) : error C2061: syntax error : identifier
'fl_define_FL_GTK_UP_BOX'
c:\fltk\fl\Enumerations.H(219) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(219) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(232) : error C2061: syntax error : identifier
'Fl_Boxtype'
c:\fltk\fl\Enumerations.H(232) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(232) : error C2146: syntax error : missing ')'
before identifier 'b'
c:\fltk\fl\Enumerations.H(232) : error C2061: syntax error : identifier 'b'
c:\fltk\fl\Enumerations.H(232) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(232) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(232) : error C2449: found '{' at file scope
(missing function header?)
c:\fltk\fl\Enumerations.H(234) : error C2059: syntax error : '}'
c:\fltk\fl\Enumerations.H(237) : error C2061: syntax error : identifier
'Fl_Boxtype'
c:\fltk\fl\Enumerations.H(237) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(237) : error C2146: syntax error : missing ')'
before identifier 'b'
c:\fltk\fl\Enumerations.H(237) : error C2061: syntax error : identifier 'b'
c:\fltk\fl\Enumerations.H(237) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(237) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(237) : error C2449: found '{' at file scope
(missing function header?)
c:\fltk\fl\Enumerations.H(239) : error C2059: syntax error : '}'
c:\fltk\fl\Enumerations.H(259) : error C2061: syntax error : identifier
'fl_define_FL_SHADOW_LABEL'
c:\fltk\fl\Enumerations.H(259) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(259) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(261) : error C2061: syntax error : identifier
'fl_define_FL_ENGRAVED_LABEL'
c:\fltk\fl\Enumerations.H(261) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(261) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(263) : error C2061: syntax error : identifier
'fl_define_FL_EMBOSSED_LABEL'
c:\fltk\fl\Enumerations.H(263) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(263) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(360) : error C2061: syntax error : identifier
'fl_inactive'
c:\fltk\fl\Enumerations.H(360) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(360) : error C2146: syntax error : missing ')'
before identifier 'c'
c:\fltk\fl\Enumerations.H(360) : error C2061: syntax error : identifier 'c'
c:\fltk\fl\Enumerations.H(360) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(361) : error C2061: syntax error : identifier
'fl_contrast'
c:\fltk\fl\Enumerations.H(361) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(361) : error C2146: syntax error : missing ')'
before identifier 'fg'
c:\fltk\fl\Enumerations.H(361) : error C2061: syntax error : identifier 'fg'
c:\fltk\fl\Enumerations.H(361) : error C2059: syntax error : ','
c:\fltk\fl\Enumerations.H(361) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(362) : error C2061: syntax error : identifier
'fl_color_average'
c:\fltk\fl\Enumerations.H(362) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(362) : error C2146: syntax error : missing ')'
before identifier 'c1'
c:\fltk\fl\Enumerations.H(362) : error C2061: syntax error : identifier 'c1'
c:\fltk\fl\Enumerations.H(362) : error C2059: syntax error : ','
c:\fltk\fl\Enumerations.H(362) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(363) : error C2061: syntax error : identifier
'Fl_Color'
c:\fltk\fl\Enumerations.H(363) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(363) : error C2146: syntax error : missing ')'
before identifier 'c'
c:\fltk\fl\Enumerations.H(363) : error C2061: syntax error : identifier 'c'
c:\fltk\fl\Enumerations.H(363) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(363) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(363) : error C2449: found '{' at file scope
(missing function header?)
c:\fltk\fl\Enumerations.H(363) : error C2059: syntax error : '}'
c:\fltk\fl\Enumerations.H(364) : error C2061: syntax error : identifier
'Fl_Color'
c:\fltk\fl\Enumerations.H(364) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(366) : error C2065: 'Fl_Color' : undeclared
identifier
c:\fltk\fl\Enumerations.H(366) : error C2064: term does not evaluate to a
function taking 302 arguments
c:\fltk\fl\Enumerations.H(366) : warning C4033: 'fl_rgb_color' must return a
value
c:\fltk\fl\Enumerations.H(368) : error C2061: syntax error : identifier
'Fl_Color'
c:\fltk\fl\Enumerations.H(368) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(368) : error C2084: function 'int
fl_rgb_color(uchar,uchar,uchar)' already has a body
c:\fltk\fl\Enumerations.H(364) : see previous definition of
'fl_rgb_color'
c:\fltk\fl\Enumerations.H(370) : error C2065: 'Fl_Color' : undeclared
identifier
c:\fltk\fl\Enumerations.H(370) : error C2064: term does not evaluate to a
function taking 302 arguments
c:\fltk\fl\Enumerations.H(370) : warning C4033: 'fl_rgb_color' must return a
value
c:\fltk\fl\Enumerations.H(372) : error C2061: syntax error : identifier
'Fl_Color'
c:\fltk\fl\Enumerations.H(372) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(372) : error C2065: 'Fl_Color' : undeclared
identifier
c:\fltk\fl\Enumerations.H(372) : error C2064: term does not evaluate to a
function taking 302 arguments
c:\fltk\fl\Enumerations.H(372) : error C2065: 'Fl_Color' : undeclared
identifier
c:\fltk\fl\Enumerations.H(372) : error C2143: syntax error : missing ')'
before 'constant'
c:\fltk\fl\Enumerations.H(372) : error C2059: syntax error : ')'
c:\fltk\fl\Enumerations.H(373) : error C2061: syntax error : identifier
'Fl_Color'
c:\fltk\fl\Enumerations.H(373) : error C2059: syntax error : ';'
c:\fltk\fl\Enumerations.H(374) : error C2065: 'Fl_Color' : undeclared
identifier
c:\fltk\fl\Enumerations.H(374) : error C2064: term does not evaluate to a
function taking 302 arguments
c:\fltk\fl\Enumerations.H(374) : error C2065: 'Fl_Color' : undeclared
identifier
c:\fltk\fl\Enumerations.H(374) : error C2143: syntax error : missing ')'
before 'constant'
c:\fltk\fl\Enumerations.H(374) : error C2059: syntax error : ')'
C:\FLTK\FL/Fl.H(40) : error C2061: syntax error : identifier 'Fl_Widget'
C:\FLTK\FL/Fl.H(40) : fatal error C1003: error count exceeds 100; stopping
compilation
My command line in this case is:
Creating temporary file "c:\Documents and
Settings\kcyu\kcyu\PROGRAMMING\SPECKIFY\Release\RSP00004D16164680.rsp" with
contents
[
/I "C:/FLTK" /D "WIN32" /D "_WINDOWS" /D "WIN32_LEAN_AND_MEAN" /D
"VC_EXTRA_LEAN" /D "WIN32_EXTRA_LEAN" /FD /EHsc /MD /Fo"Release\\"
/Fd"Release\vc90.pdb" /W3 /c /Wp64 /Zi /TC ".\utils.C"
]
Creating command line "cl.exe @"c:\Documents and
Settings\kcyu\kcyu\PROGRAMMING\SPECKIFY\Release\RSP00004D16164680.rsp" /nologo
/errorReport:prompt"
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk