I'm studying Stroustrup Programming principles and practice and have a problem with using FLTK library with netbeans What I've done:
- downloaded library
- In netbeans: New project with existing sources (used path where I saved this lib), compiled it without errors.
- In my test project: Properties->C compiler->Include directories added path to library, the same for C++ compiler
- Properties->Linker->Additional Library Directories added path to .a files
- Libraries->Add Library added all 7 libraries from fltk/lib/*.a
Now when I try to compile my project I get a pile of errors like that:
../../../workspace/Study/fltk-1.3.4-2/lib/libfltk.a(screen_xywh.o): In function `screen_cb':
c:...\fltk-1.3.4-2\src/screen_xywh.cxx:72: undefined reference to `CreateDCA@16'
c:...\fltk-1.3.4-2\src/screen_xywh.cxx:74: undefined reference to `GetDeviceCaps@8'
c:...\fltk-1.3.4-2\src/screen_xywh.cxx:75: undefined reference to `GetDeviceCaps@8'
collect2.exe: error: ld returned 1 exit status make.exe[2]: *** [dist/Debug/MinGW-Windows/studystr.exe] Error 1
I have no idea how to fix that(((