Help - Search - Members - Calendar
Full Version: Can't compile..help
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
n0obie4life
I was just trying to recompile the foo_msnalt plugin..ended up trying to make my own version off that one just to play around with the formatting biggrin.gif.

But now I need some help regarding these errors..been reading the forums and placing in some fixes and stuff like this, but I can't seem to get anywhere further than this.

CODE
4>------ Build started: Project: FoobarMSN, Configuration: Debug Win32 ------
4>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
4>FooMSN.obj : 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)
4>FooMSN.obj : error LNK2019: unresolved external symbol __imp__SendMessageW@16 referenced in function "void __cdecl clearMSNTitle(void)" (?clearMSNTitle@@YAXXZ)
4>FooMSN.obj : error LNK2019: unresolved external symbol __imp__FindWindowExW@16 referenced in function "void __cdecl clearMSNTitle(void)" (?clearMSNTitle@@YAXXZ)
4>foobar2000_sdk.lib(service.obj) : error LNK2019: unresolved external symbol "bool __cdecl core_api::are_services_available(void)" (?are_services_available@core_api@@YA_NXZ) referenced in function "public: static void const * __cdecl service_factory_base::enum_find_class(struct _GUID const &)" (?enum_find_class@service_factory_base@@SAPBXABU_GUID@@@Z)


Thanks guys biggrin.gif.
foosion
The first warning (about LIBCMTD) is because the setting for the C/C++ runtime library for the component project conflicts with those from the SDK libraries. Open the properties for your project and go to Code Generation in the C/C++ branch. Change the runtime library setting to use the non-DLL version. You have to do this separately for Debug and Release configurations.

The other errors are caused by missing project dependencies. You need to add a dependency on foobar2000_SDK and foobar2000_component_client to your project.
n0obie4life
Under runtime library, mine is already using Multithreaded..I still have the options for Multithreaded DLL d'oh.

Thanks for the dependencies part d'oh smile.gif, would you be about to help me with that Multithreaded thingy? It's still erroring no matter what available options I choose (multithread/multithread-dll).

All I managed to do was minimize it to the following:
CODE
4>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
4>FooMSN.obj : error LNK2019: unresolved external symbol __imp__SendMessageW@16 referenced in function "void __cdecl clearMSNTitle(void)" (?clearMSNTitle@@YAXXZ)
4>FooMSN.obj : error LNK2019: unresolved external symbol __imp__FindWindowExW@16 referenced in function "void __cdecl clearMSNTitle(void)" (?clearMSNTitle@@YAXXZ)


edit: okay managed to get rid of the LIBCMTD error by adding the /NODEFAULTLIB:LIBCMTD into the linker. Now the sendmessage stuff..help? sad.gif

edit2: Yay, fixed all of it..i just needed to play around with the libraries biggrin.gif
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.