0

我刚刚安装了 FLTK 库和 Stroustrup 主页上的一堆头文件....

1>Graph.obj : error LNK2019: unresolved external symbol "public: __thiscall Fl_GIF_Image::Fl_GIF_Image(char const *)" (??0Fl_GIF_Image@@QAE@PBD@Z) referenced in function "public: __thiscall Graph_lib::Image::Image(struct Point,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,enum Graph_lib::Suffix::Encoding)" (??0Image@Graph_lib@@QAE@UPoint@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4Encoding@Suffix@1@@Z)
1>Graph.obj : error LNK2019: unresolved external symbol "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE@PBD@Z) referenced in function "public: __thiscall Graph_lib::Image::Image(struct Point,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,enum Graph_lib::Suffix::Encoding)" (??0Image@Graph_lib@@QAE@UPoint@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4Encoding@Suffix@1@@Z)
4

3 回答 3

2

它找不到函数调用的定义。您可能没有链接 .lib 文件。

于 2013-12-30T19:58:45.137 回答
2

这意味着 lonker 没有找到这些成员函数的定义。

于 2013-12-30T19:59:31.657 回答
0

您没有链接 fltkimages.lib 和 fltkjpeg.lib,或者如果您正在运行调试版本 fltkimagesd.lib 和 fltkjpegd.lib。

于 2013-12-30T20:20:31.107 回答