Help - Search - Members - Calendar
Full Version: Newbie question
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
Nial
I've search around the forum but can't find teh answer I'm looking for sad.gif. I'm new to coding anything like this so here goes:

When I try and compile the foo_vis_test.dll after messing around with it in the SDK I get a huge amount of link errors dry.gif

Which is a pain as none of my changes seem to error!

Here's what I get:

CODE
Compiling...
vis_test.cpp
Linking...
vis_test.obj : error LNK2001: unresolved external symbol "public: static struct _GUID const & __cdecl visualization::get_class_guid(void)" (?get_class_guid@visualization@@SAABU_GUID@@XZ)
vis_test.obj : error LNK2001: unresolved external symbol "public: static struct _GUID const & __cdecl menu_item::get_class_guid(void)" (?get_class_guid@menu_item@@SAABU_GUID@@XZ)
vis_test.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall service_base::service_add_ref(void)" (?service_add_ref@service_base@@UAEHXZ)
vis_test.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall service_base::service_release(void)" (?service_release@service_base@@UAEHXZ)
vis_test.obj : error LNK2001: unresolved external symbol __imp__uCreateWindowEx
vis_test.obj : error LNK2001: unresolved external symbol "struct HWND__ * __cdecl core_api::get_main_window(void)" (?get_main_window@core_api@@YAPAUHWND__@@XZ)
vis_test.obj : error LNK2001: unresolved external symbol __imp__uRegisterClass
vis_test.obj : error LNK2001: unresolved external symbol __imp__uLoadCursor
vis_test.obj : error LNK2001: unresolved external symbol "struct HINSTANCE__ * __cdecl core_api::get_my_instance(void)" (?get_my_instance@core_api@@YAPAUHINSTANCE__@@XZ)
vis_test.obj : error LNK2001: unresolved external symbol __imp__uDefWindowProc
vis_test.obj : error LNK2001: unresolved external symbol "bool __cdecl core_api::assert_main_thread(void)" (?assert_main_thread@core_api@@YA_NXZ)
vis_test.obj : error LNK2001: unresolved external symbol "private: static class cfg_var * cfg_var::list" (?list@cfg_var@@0PAV1@A)
vis_test.obj : error LNK2001: unresolved external symbol "protected: void __thiscall cfg_var::on_change(void)" (?on_change@cfg_var@@IAEXXZ)
vis_test.obj : error LNK2001: unresolved external symbol "private: static class service_factory_base * service_factory_base::list" (?list@service_factory_base@@0PAV1@A)
vis_test.obj : error LNK2001: unresolved external symbol "bool __cdecl core_api::are_services_available(void)" (?are_services_available@core_api@@YA_NXZ)
vis_test.obj : error LNK2001: unresolved external symbol "public: static void __cdecl console::output(int,char const *)" (?output@console@@SAXHPBD@Z)
vis_test.obj : error LNK2001: unresolved external symbol "public: static int __cdecl service_factory_base::enum_get_count(struct _GUID const &)" (?enum_get_count@service_factory_base@@SAHABU_GUID@@@Z)
../Debug/foo_vis_test.dll : fatal error LNK1120: 17 unresolved externals
Error executing link.exe.

foo_vis_test.dll - 18 error(s), 0 warning(s)
enf
I dont have experience in messing around with the SDK, but telling from those errors, looks like you're not including a certain library in your linking.
kode54
Add the SDK project to dependencies.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.