| | |
FLTK compiling issues...
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2008
Posts: 1,407
Reputation:
Solved Threads: 114
Try reading the documentation on how to install it perhaps?
Check your linker settings, make sure you have entered everything correctly.
Check your linker settings, make sure you have entered everything correctly.
Last edited by William Hemsworth; Jun 19th, 2009 at 8:22 pm.
I need pageviews! most fun profile ever :)
•
•
Join Date: Oct 2007
Posts: 305
Reputation:
Solved Threads: 43
In your linker settings have you typed in the complete path to where fltk.lib is located ? By default it'll look for it in the current project directory. If fltk.lib is something you are supposed to compile also, then make sure that project is added as a dependency for your current project, so that it compiles before, and fltk.lib exists for you to use.
•
•
Join Date: Jun 2009
Posts: 6
Reputation:
Solved Threads: 0
thanks, stilllearning and William. I got FLTK compiled, but when I try to compile and run the following program, I get the error messages under that.
#include <FL/FL.h>
#include <FL/FL_Window.h>
int main() {
FL_Window win(400, 200);
win.show();
return FL::run();
}
Error messages:
error C2065: 'FL_Window' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'win'
error C3861: 'win': identifier not found
error C2065: 'win' : undeclared identifier
error C2228: left of '.show' must have class/struct/union
sorry if the answer is obvious, I am new to C++
#include <FL/FL.h>
#include <FL/FL_Window.h>
int main() {
FL_Window win(400, 200);
win.show();
return FL::run();
}
Error messages:
error C2065: 'FL_Window' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'win'
error C3861: 'win': identifier not found
error C2065: 'win' : undeclared identifier
error C2228: left of '.show' must have class/struct/union
sorry if the answer is obvious, I am new to C++
![]() |
Similar Threads
- Visual C++ 08 Express compiling issues... (C++)
- A quick question (Game Development)
- win32 gcc cross compiling for linux target (C)
- ASP.NET and Mozilla - Issues! (ASP.NET)
- having trouble with arrays (C++)
- Graphics Card issues Stop Command??? (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: Using ToggleKeys' Status LEDs of Keyboard
- Next Thread: C++,Macro Problem
| Thread Tools | Search this Thread |
api array based binary c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






