Hi guys I installed then built and compiled the FLTK library for gui use so I can follow along with Bjarnes book,
I followed this tutorial
https://www.youtube.com/watch?v=0eSOPWQ1n6U
anyway I put the include files in the GL and FL in the 2017/VC/tools/14.12.25827/include folder and the lib files need in 2017/VC/tools/14.12.25827/lib/x86/
and 2017/VC/tools/14.12.25827/lib/x64 allthough I will be only using it when developing 32 bit projects
so I then added a new cpp file to an empty windows project,
I added fltk.lib into the additional dependencies for the linker in the project build settings
here is the dependencies kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(fltk.lib)
I then set the code generation under the c++ tab and runtime library to Multi-threaded DLL (/MD)as instructed
but I am getting a strange errors
Severity Code Description Project File Line Suppression State Error C2146 syntax error: missing ';' before identifier 'hi' Project5 c:\users\user\source\repos\project5\project5\hey.cpp 9
Severity Code Description Project File Line Suppression State Error (active) E0065 expected a ';' Project5 c:\Users\User\source\repos\Project5\Project5\hey.cpp 9
Severity Code Description Project File Line Suppression State Error C3861 'hi': identifier not found Project5 c:\users\user\source\repos\project5\project5\hey.cpp 9
thanks
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 wd(23,23,"hey");
return 0;
}
|
thanks