HydrogenAudio

Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: Bizzy D. on 2003-06-30 03:44:42

Title: help needed
Post by: Bizzy D. on 2003-06-30 03:44:42
hey, i cant for the life of me get my lil test to compile any help?

main.h
Code: [Select]
#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
Code: [Select]
#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
Quote
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
Title: help needed
Post by: kode54 on 2003-06-30 03:56:13
Did you add component_client.cpp to your main project?
Title: help needed
Post by: Bizzy D. on 2003-06-30 04:34:26
gives even more errors :S
Code: [Select]
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)
Title: help needed
Post by: Case on 2003-07-01 02:31:26
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).
Title: help needed
Post by: Bizzy D. on 2003-07-01 02:41:33
Code: [Select]
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)
Title: help needed
Post by: Bizzy D. on 2003-07-01 02:53:16
nm. removed post build stuff.. its ok now  thanks
Title: help needed
Post by: Bizzy D. on 2003-07-01 03:12:35
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?