hey, i cant for the life of me get my lil test to compile any help?
main.h
#include "../SDK/initquit.h"
#include "../SDK/titleformat.h"
#include "../SDK/modeless_dialog.h"
#include "../SDK/play_control.h"
#include "../SDK/titleformat.h"
#include "../SDK/componentversion.h"
#include "../helpers/unicode_helper.h"
class initquit_albumlist : public initquit
{
public:
virtual void on_init();
virtual void on_quit();
};
static service_factory_single_t<initquit,initquit_albumlist> foo;
DECLARE_COMPONENT_VERSION("TEST","0.0",0)
main.cpp
#include "main.h"
void initquit_albumlist::on_init() {
}
void initquit_albumlist::on_quit() {
}
and i got the 2 the foobar_sdk.dsp and pfc.dsp set as dependancys....
well thats everything techncal about it i think... anyone know why i get
ain.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall service_base::service_release(void)" (?service_release@service_base@@UAEXXZ)
main.obj : error LNK2001: unresolved external symbol "private: static class service_factory_base * service_factory_base::list" (?list@service_factory_base@@0PAV1@A)
main.obj : error LNK2001: unresolved external symbol "public: static struct _GUID __cdecl initquit::get_class_guid(void)" (?get_class_guid@initquit@@SA?AU_GUID@@XZ)
main.obj : error LNK2001: unresolved external symbol "char const * __cdecl core_api::get_my_file_name(void)" (?get_my_file_name@core_api@@YAPBDXZ)
any help?
thanks in advance
Bizzy
Did you add component_client.cpp to your main project?
gives even more errors :S
main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall service_base::service_release(void)" (?service_release@service_base@@UAEXXZ)
main.obj : error LNK2001: unresolved external symbol "private: static class service_factory_base * service_factory_base::list" (?list@service_factory_base@@0PAV1@A)
main.obj : error LNK2001: unresolved external symbol "public: static struct _GUID __cdecl initquit::get_class_guid(void)" (?get_class_guid@initquit@@SA?AU_GUID@@XZ)
component_client.obj : error LNK2001: unresolved external symbol "class foobar2000_client g_client" (?g_client@@3Vfoobar2000_client@@A)
component_client.obj : error LNK2001: unresolved external symbol "bool __cdecl is_path_separator(int)" (?is_path_separator@@YA_NH@Z)
component_client.obj : error LNK2001: unresolved external symbol "public: __thiscall string_utf8_from_wide::string_utf8_from_wide(unsigned short const *)" (??0string_utf8_from_wide@@QAE@PBG@Z)
component_client.obj : error LNK2001: unresolved external symbol "public: __thiscall string_wide_from_ansi::string_wide_from_ansi(char const *)" (??0string_wide_from_ansi@@QAE@PBD@Z)
component_client.obj : error LNK2001: unresolved external symbol "class foobar2000_api * g_api" (?g_api@@3PAVfoobar2000_api@@A)
component_client.obj : error LNK2001: unresolved external symbol "public: static void __cdecl cfg_var::config_on_app_init(void)" (?config_on_app_init@cfg_var@@SAXXZ)
component_client.obj : error LNK2001: unresolved external symbol "public: void * __thiscall mem_block::copy(void const *,int,int)" (?copy@mem_block@@QAEPAXPBXHH@Z)
component_client.obj : error LNK2001: unresolved external symbol "public: void * __thiscall mem_block::set_size(int)" (?set_size@mem_block@@QAEPAXH@Z)
I don't know what compiler you used but I created MSVC project file for you that compiles with said compiler without hickups, download (http://www.saunalahti.fi/cse/foobar2000/test.zip).
UPX
'upx' is not recognized as an internal or external command,
operable program or batch file.
Error executing c:\windows\system32\cmd.exe.
any idea ???
(MSVC++ using ur test)
nm. removed post build stuff.. its ok now thanks
btw, is there a notification like the initquit, for when foobar is fully loaded?
cos my code includes Sleep(150) inside in infanate loop, and foobar doesnt load cos of it :s
any help?