FLTK 및 VC++ 2010을 사용하여 새 프로젝트를 만들려고합니다. 나는 이것을 잠시 동안하지 않았다. 내가 할 수있는 최선의 방법으로 메모리로 속성을 설정했습니다. 그래도 링커 오류가 나타납니다. 아무도이 문제를 해결하는 방법을 말해 줄래?VC++ 및 FLTK와 함께 이해할 수없는 링커 오류가 발생합니다.
1>------ Build started: Project: BJST chap 14 ex 1a, Configuration: Debug Win32 ------
1> BJST chap 14 ex 1.cpp
1>c:\users\bryan\documents\visual studio 2010\projects\bjst chap 14 ex 1a\bjst chap 14 ex 1a\bjst chap 14 ex 1.cpp(10): error C2065: 'FL_Window' : undeclared identifier
1>c:\users\bryan\documents\visual studio 2010\projects\bjst chap 14 ex 1a\bjst chap 14 ex 1a\bjst chap 14 ex 1.cpp(10): error C2146: syntax error : missing ';' before identifier 'window'
1>c:\users\bryan\documents\visual studio 2010\projects\bjst chap 14 ex 1a\bjst chap 14 ex 1a\bjst chap 14 ex 1.cpp(10): error C3861: 'window': identifier not found
1>c:\users\bryan\documents\visual studio 2010\projects\bjst chap 14 ex 1a\bjst chap 14 ex 1a\bjst chap 14 ex 1.cpp(12): error C2065: 'FL_Box' : undeclared identifier
1>c:\users\bryan\documents\visual studio 2010\projects\bjst chap 14 ex 1a\bjst chap 14 ex 1a\bjst chap 14 ex 1.cpp(12): error C2146: syntax error : missing ';' before identifier 'box'
1>c:\users\bryan\documents\visual studio 2010\projects\bjst chap 14 ex 1a\bjst chap 14 ex 1a\bjst chap 14 ex 1.cpp(12): error C3861: 'box': identifier not found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#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();
return 0;
}
'누락'; ' '식별자'앞에 ** 링커 ** 오류가 아닙니다! –
'#include'을 잊어 버리셨습니까? 또는 FLTK 형식이 일부 네임 스페이스에 속해있을 수 있으므로 해당 형식을 정규화해야합니다. 어쨌든, 그것들 중 어느 것도 링커 오류가 아닙니다. –
Praetorian
상자와 창을 사용하고 있습니다. 둘 다 포함되어있는 것을 볼 수 있습니다. – user3638297