Hi.
I am trying to compile ofxBerkelium example in VS2010 but receive an link error “unresolved external symbol”:
1>------ Build started: Project: openframeworksLib, Configuration: Debug Win32 ------
1>Build started 09.05.2011 0:11:53.
1>InitializeBuildStatus:
1> Creating “obj\Debug\openframeworksLib.unsuccessfulbuild” because “AlwaysCreate” was specified.
1>ClCompile:
1> All outputs are up-to-date.
1>Lib:
1> All outputs are up-to-date.
1> openframeworksLib.vcxproj -> D:\programing\of_preRelease_v0062_vs2010_FAT\libs\openFrameworksCompiled\project\vs2010…\lib\vs2010\openframeworksLibDebug.lib
1>FinalizeBuildStatus:
1> Deleting file “obj\Debug\openframeworksLib.unsuccessfulbuild”.
1> Touching “obj\Debug\openframeworksLib.lastbuildstate”.
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.14
2>------ Build started: Project: emptyExample, Configuration: Debug Win32 ------
2>Build started 09.05.2011 0:11:53.
2>InitializeBuildStatus:
2> Touching “obj\Debug\emptyExample.unsuccessfulbuild”.
2>ClCompile:
2> All outputs are up-to-date.
2>ManifestResourceCompile:
2> All outputs are up-to-date.
2>main.obj : warning LNK4075: ignoring ‘/EDITANDCONTINUE’ due to ‘/INCREMENTAL:NO’ specification
2>ofxBerkelium.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: virtual __thiscall Berkelium::WindowDelegate::~WindowDelegate(void)” (__imp_??1WindowDelegate@Berkelium@@UAE@XZ) referenced in function __unwindfunclet$??0ofxBerkelium@@QAE@II_N@Z$0
2>ofxBerkelium.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: void __thiscall Berkelium::Window::setDelegate(class Berkelium::WindowDelegate *)” (__imp_?setDelegate@Window@Berkelium@@QAEXPAVWindowDelegate@2@@Z) referenced in function “public: __thiscall ofxBerkelium::ofxBerkelium(unsigned int,unsigned int,bool)” (??0ofxBerkelium@@QAE@II_N@Z)
2>ofxBerkelium.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: static class Berkelium::Window * __cdecl Berkelium::Window::create(class Berkelium::Context const *)” (__imp_?create@Window@Berkelium@@SAPAV12@PBVContext@2@@Z) referenced in function “public: __thiscall ofxBerkelium::ofxBerkelium(unsigned int,unsigned int,bool)” (??0ofxBerkelium@@QAE@II_N@Z)
2>ofxBerkelium.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: static class Berkelium::Context * __cdecl Berkelium::Context::create(void)” (__imp_?create@Context@Berkelium@@SAPAV12@XZ) referenced in function “public: __thiscall ofxBerkelium::ofxBerkelium(unsigned int,unsigned int,bool)” (??0ofxBerkelium@@QAE@II_N@Z)
2>ofxBerkelium.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: __thiscall Berkelium::WindowDelegate::WindowDelegate(void)” (__imp_??0WindowDelegate@Berkelium@@QAE@XZ) referenced in function “public: __thiscall ofxBerkelium::ofxBerkelium(unsigned int,unsigned int,bool)” (??0ofxBerkelium@@QAE@II_N@Z)
2>ofxBerkelium.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall Berkelium::WindowDelegate::freeLastScriptAlert(struct Berkelium::WeakString<wchar_t>)” (?freeLastScriptAlert@WindowDelegate@Berkelium@@UAEXU?$WeakString@_W@2@@Z)
2>ofxBerkelium.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall Berkelium::WindowDelegate::onWidgetDestroyed(class Berkelium::Window *,class Berkelium::Widget *)” (?onWidgetDestroyed@WindowDelegate@Berkelium@@UAEXPAVWindow@2@PAVWidget@2@@Z)
2>ofxBerkelium.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall Berkelium::WindowDelegate::onWidgetPaint(class Berkelium::Window *,class Berkelium::Widget *,unsigned char const *,struct Berkelium::Rect const &,unsigned int,struct Berkelium::Rect const *,int,int,struct Berkelium::Rect const &)” (?onWidgetPaint@WindowDelegate@Berkelium@@UAEXPAVWindow@2@PAVWidget@2@PBEABURect@2@IPBU52@HH3@Z)
2>ofxBerkelium.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall Berkelium::WindowDelegate::onCursorUpdated(class Berkelium::Window *,class Berkelium::Cursor const &)” (?onCursorUpdated@WindowDelegate@Berkelium@@UAEXPAVWindow@2@ABVCursor@2@@Z)
2>testApp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) void __cdecl Berkelium::init(struct Berkelium::WeakString<wchar_t>)” (__imp_?init@Berkelium@@YAXU?$WeakString@_W@1@@Z) referenced in function “public: virtual void __thiscall testApp::setup(void)” (?setup@testApp@@UAEXXZ)
2>testApp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: bool __thiscall Berkelium::Window::navigateTo(char const *,unsigned int)” (__imp_?navigateTo@Window@Berkelium@@QAE_NPBDI@Z) referenced in function “public: virtual void __thiscall testApp::update(void)” (?update@testApp@@UAEXXZ)
2>testApp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) void __cdecl Berkelium::update(void)” (__imp_?update@Berkelium@@YAXXZ) referenced in function “public: virtual void __thiscall testApp::update(void)” (?update@testApp@@UAEXXZ)
2>testApp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: __thiscall Berkelium::Script::Variant::~Variant(void)” (__imp_??1Variant@Script@Berkelium@@QAE@XZ) referenced in function “public: virtual void __thiscall testApp::onJavascriptCallback(void *,class std::basic_string<char,struct std::char_traits,class std::allocator >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >,class Berkelium::Script::Variant *,unsigned int)” (?onJavascriptCallback@testApp@@UAEXPAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@3@PAVVariant@Script@Berkelium@@I@Z)
2>testApp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: __thiscall Berkelium::Script::Variant::Variant(void)” (__imp_??0Variant@Script@Berkelium@@QAE@XZ) referenced in function “public: virtual void __thiscall testApp::onJavascriptCallback(void *,class std::basic_string<char,struct std::char_traits,class std::allocator >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >,class Berkelium::Script::Variant *,unsigned int)” (?onJavascriptCallback@testApp@@UAEXPAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@3@PAVVariant@Script@Berkelium@@I@Z)
2>testApp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: __thiscall Berkelium::Script::Variant::Variant(class Berkelium::Script::Variant const &)” (__imp_??0Variant@Script@Berkelium@@QAE@ABV012@@Z) referenced in function “public: virtual void __thiscall testApp::onJavascriptCallback(void *,class std::basic_string<char,struct std::char_traits,class std::allocator >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >,class Berkelium::Script::Variant *,unsigned int)” (?onJavascriptCallback@testApp@@UAEXPAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@3@PAVVariant@Script@Berkelium@@I@Z)
2>testApp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) void __cdecl Berkelium::Script::toJSON_free(struct Berkelium::WeakString<wchar_t>)” (__imp_?toJSON_free@Script@Berkelium@@YAXU?$WeakString@_W@2@@Z) referenced in function “public: virtual void __thiscall testApp::onJavascriptCallback(void *,class std::basic_string<char,struct std::char_traits,class std::allocator >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >,class Berkelium::Script::Variant *,unsigned int)” (?onJavascriptCallback@testApp@@UAEXPAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@3@PAVVariant@Script@Berkelium@@I@Z)
2>testApp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct Berkelium::WeakString<wchar_t> __thiscall Berkelium::Script::Variant::toString(void)const " (__imp_?toString@Variant@Script@Berkelium@@QBE?AU?$WeakString@_W@3@XZ) referenced in function “public: virtual void __thiscall testApp::onJavascriptCallback(void *,class std::basic_string<char,struct std::char_traits,class std::allocator >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >,class Berkelium::Script::Variant *,unsigned int)” (?onJavascriptCallback@testApp@@UAEXPAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@3@PAVVariant@Script@Berkelium@@I@Z)
2>testApp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: enum Berkelium::Script::Variant::Type __thiscall Berkelium::Script::Variant::type(void)const " (__imp_?type@Variant@Script@Berkelium@@QBE?AW4Type@123@XZ) referenced in function “public: virtual void __thiscall testApp::onJavascriptCallback(void *,class std::basic_string<char,struct std::char_traits,class std::allocator >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >,class Berkelium::Script::Variant *,unsigned int)” (?onJavascriptCallback@testApp@@UAEXPAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@3@PAVVariant@Script@Berkelium@@I@Z)
2>testApp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) struct Berkelium::WeakString<wchar_t> __cdecl Berkelium::Script::toJSON(class Berkelium::Script::Variant const &)” (__imp_?toJSON@Script@Berkelium@@YA?AU?$WeakString@_W@2@ABVVariant@12@@Z) referenced in function “public: virtual void __thiscall testApp::onJavascriptCallback(void *,class std::basic_string<char,struct std::char_traits,class std::allocator >,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >,class Berkelium::Script::Variant *,unsigned int)” (?onJavascriptCallback@testApp@@UAEXPAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@3@PAVVariant@Script@Berkelium@@I@Z)
2>bin\emptyExample_debug.exe : fatal error LNK1120: 19 unresolved externals
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:01.54
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
P.S. on MacOS example compiles, but i need it on Win.