Help - Search - Members - Calendar
Full Version: Cannot compile
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
Morfeus
I created blank project with includes to foobar2000.h and helpers.h. I don't understand it.
I added dependencies to:
foobar2000_components_client
foobar2000_SDK
foobar2000_sdk_helpers
Then I added to Linker Input shared.lib.

CODE
Error    7    error LNK2001: unresolved external symbol "public: static struct _GUID const componentversion::class_guid" (?class_guid@componentversion@@2U_GUID@@B)    test2.obj    
Error    8    error LNK2019: unresolved external symbol "char const * __cdecl core_api::get_my_file_name(void)" (?get_my_file_name@core_api@@YAPBDXZ) referenced in function "public: virtual void __thiscall componentversion_impl_simple::get_file_name(class pfc::string_base &)" (?get_file_name@componentversion_impl_simple@@UAEXAAVstring_base@pfc@@@Z)    test2.obj    
Error    9    error LNK2019: unresolved external symbol "void __cdecl pfc::myassert(wchar_t const *,wchar_t const *,unsigned int)" (?myassert@pfc@@YAXPB_W0I@Z) referenced in function "protected: __thiscall service_factory_base::~service_factory_base(void)" (??1service_factory_base@@IAE@XZ)    test2.obj    
Error    10    error LNK2019: unresolved external symbol "bool __cdecl core_api::are_services_available(void)" (?are_services_available@core_api@@YA_NXZ) referenced in function "protected: __thiscall service_factory_base::~service_factory_base(void)" (??1service_factory_base@@IAE@XZ)    test2.obj    
Error    11    error LNK2001: unresolved external symbol "public: static class service_factory_base * service_factory_base::__internal__list" (?__internal__list@service_factory_base@@2PAV1@A)    test2.obj    

foosion
Is the SDK compiled properly? The foobar2000_SDK project should have a dependency on pfc.
Morfeus
I've solved linker errors. I have another problem. I think that my window isn't getting any messages. I think I should add a message loop.
And I cannot show any message boxes. I've found that shared.h declares function uMessageBox which is different than standard MessageBox. But when I call it, for example, before creating any window it doesn't show anything. As base I'm using tutorial from foosion.foobar2000.org
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.