Yes Neo,
That is absolutely correct...…
Unfortunately I have this thing installed and I did as it says BUT I'm getting errors when I compile the test code they give. The test code is as follows (
from the book mind you!) ==>
1 2 3 4 5 6 7 8 9 10 11 12 13
|
#include <FL\Fl.H>
#include <FL\Fl_Box.H>
#include <FL\Fl_Window.H>
int main{
Fl_Window window(200,200,"Window Title");
Fl_Box box(0, 0, 200, 200, "Hey, I mean, Hello World!");
window.show();
return Fl::run();
} //end of main routine
|
This SHOULD compile but it don't! The following are the errors that I am getting==>
Severity Code Description Project File Line
Error (active) type name is not allowed
Error C2275 'Fl_Window': illegal use of this type as an expression
Error C2146 syntax error: missing ')' before identifier 'window'
Error (active) expected a ','
Error (active) expected a '}'
Error (active) this declaration has no storage class or type specifier
Error C3927 '->': trailing return type is not allowed after a non-function declarator
Error C3484 syntax error: expected '->' before the return type
Error C3613 missing return type after '->' ('int' assumed)
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int
Error C2146 syntax error: missing ';' before identifier 'show'
Error (active) expected a ';'
Error (active) expected a declaration
Error C2059 syntax error: 'return'
Error (active) expected a declaration
Error C2059 syntax error: '}'
Error C2143 syntax error: missing ';' before '}'
What is going on if all these syntax errors are being produced? Did I put the libraries in the right place and have them identified correctly?
Me thinks something "fugly" has transpired...… is there anyway to put this into proper order?
Xanadu