IPB

Welcome Guest ( Log In | Register )

> foobar2000 Development Forum Rules

This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).

 
Reply to this topicStart new topic
Error with the compiling foo_sample
wahaha99
post Jun 19 2010, 18:54
Post #1





Group: Members
Posts: 12
Joined: 22-November 07
Member No.: 48947



I am trying to use VS 2008 to compile foo_sample and get many errors...

like this:

error LNK2001: unresolved external symbol "public: static struct _GUID const contextmenu_groups::root" (?root@contextmenu_groups@@2U_GUID@@B) contextmenu.obj foo_sample

(Anothers are LNK2019)

I dont know how to fix it...
Please tell me if you can. Thanks.

Visual Studio 2008 + WTL 8.0 + Windows XP SP3 + .NET framework 3.5 SP1
Go to the top of the page
+Quote Post
aganders3
post Jun 22 2010, 23:24
Post #2





Group: Developer
Posts: 20
Joined: 15-June 10
Member No.: 81538



Try out Zao's advice from this post:

http://www.hydrogenaudio.org/forums/index....st&p=644614

It could also be helpful if you posted the full output of the build log.
Go to the top of the page
+Quote Post
smoorman1024
post Mar 17 2013, 20:06
Post #3





Group: Members
Posts: 1
Joined: 17-March 13
Member No.: 107272



QUOTE (wahaha99 @ Jun 19 2010, 18:54) *
I am trying to use VS 2008 to compile foo_sample and get many errors...

like this:

error LNK2001: unresolved external symbol "public: static struct _GUID const contextmenu_groups::root" (?root@contextmenu_groups@@2U_GUID@@B) contextmenu.obj foo_sample

(Anothers are LNK2019)

I dont know how to fix it...
Please tell me if you can. Thanks.

Visual Studio 2008 + WTL 8.0 + Windows XP SP3 + .NET framework 3.5 SP1


Make sure that you have built each library it needs to link to individually before building foo_sample.

They are listed in the sdk-readme.

For each project that it links to add the Library folder as an included depency path in the foo_sample project and add the libary name to the list of dependencies to use.

That is,

Build these included projects:

foobar2000_SDK project
foobar2000_component_client
foobar2000_SDK_helpers
foobar2000_ATL_helpers

Add these libraries to Additional Dependencies under project->properties->linker->Input:

shared.lib;pfc.lib;foobar2000_SDK.lib;foobar2000_component_client.lib;foobar2000_sdk_helpers.lib;

Add your library folders where these are located (whatever the output of the VS build) to project->properties->linker->general->Additional Library Directories. For me it looks like this:

G:\Documents\Visual Studio 2012\foobar\foobar2000\shared\;G:\Documents\Visual Studio 2012\foobar\pfc\Debug\; G:\Documents\Visual Studio 2012\foobar\foobar2000\SDK\Debug\;G:\Documents\Visual Studio 2012\foobar\foobar2000\foobar2000_component_client\Debug\;G:\Documents\Visual Studio 2012\foobar\foobar2000\helpers\Debug\



Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th July 2014 - 05:18