20
« on: September 28, 2010, 06:33:13 pm »
Greetings,
Both x32 and x64 versions compile just fine but I'm having unresolved external symbol with the x64 version when linking it to my project:
Error 8 error LNK2019: unresolved external symbol jpeg_CreateCompress referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z) sfml2-graphics-s.lib(ImageLoader.obj)
Error 1 error LNK2019: unresolved external symbol jpeg_destroy_compress referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z) sfml2-graphics-s.lib(ImageLoader.obj)
Error 2 error LNK2019: unresolved external symbol jpeg_finish_compress referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z) sfml2-graphics-s.lib(ImageLoader.obj)
Error 6 error LNK2019: unresolved external symbol jpeg_set_defaults referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z) sfml2-graphics-s.lib(ImageLoader.obj)
Error 5 error LNK2019: unresolved external symbol jpeg_set_quality referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z) sfml2-graphics-s.lib(ImageLoader.obj)
Error 4 error LNK2019: unresolved external symbol jpeg_start_compress referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z) sfml2-graphics-s.lib(ImageLoader.obj)
Error 9 error LNK2019: unresolved external symbol jpeg_std_error referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z) sfml2-graphics-s.lib(ImageLoader.obj)
Error 7 error LNK2019: unresolved external symbol jpeg_stdio_dest referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z) sfml2-graphics-s.lib(ImageLoader.obj)
Error 3 error LNK2019: unresolved external symbol jpeg_write_scanlines referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z) sfml2-graphics-s.lib(ImageLoader.obj)
would be nice to simply turn on and off external libs.