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).

SDK Compliation Problems, Linker errors in pfc.lib
zzzzzz
post Oct 13 2012, 03:22
Post #1





Group: Members
Posts: 2
Joined: 13-October 12
Member No.: 103822



Hi, I am trying to set up a test plugin using the SDK in VS2010 in Windows 7.
I have linked to Foobar2000_SDK, Foobar2000_component_client and pfc .vcxproj projects in the References dialogue of my foo_testplugin project. This solved the first set of linker errors. Now I am getting 3 errors in foo_testplugin when linking against pfc:

CODE
1>Link:
1>     Creating library ~~~~~~~~~~~~~\FoobarSDK\foobar2000\Debug\foo_testplugin.lib and object ~~~~~~~~~~~~~\\FoobarSDK\foobar2000\Debug\foo_testplugin.exp
1>pfc.lib(string.obj) : error LNK2019: unresolved external symbol __imp__CharLowerW@4 referenced in function "unsigned int __cdecl pfc::charLower(unsigned int)" (?charLower@pfc@@YAII@Z)
1>pfc.lib(string.obj) : error LNK2019: unresolved external symbol __imp__CharUpperW@4 referenced in function "unsigned int __cdecl pfc::charUpper(unsigned int)" (?charUpper@pfc@@YAII@Z)
1>~~~~~~~~~~~~~\\FoobarSDK\foobar2000\Debug\foo_testplugin.dll : fatal error LNK1120: 2 unresolved externals


Any help with these would be greatly appreciated.

Thanks
Go to the top of the page
+Quote Post
 
Start new topic
Replies (1 - 2)
Zao
post Oct 13 2012, 12:10
Post #2





Group: Members (Donating)
Posts: 908
Joined: 25-September 03
From: Umeň, Sweden
Member No.: 9001



CharLower documentation on MSDN mentions which import library to link to (User32.lib) at the bottom.


--------------------
Zao shang yong zao nong zao rang zao ren zao.
To, early in the morning, use a chisel to build a bathtub makes impatient people hot-tempered.
Go to the top of the page
+Quote Post
zzzzzz
post Oct 14 2012, 00:45
Post #3





Group: Members
Posts: 2
Joined: 13-October 12
Member No.: 103822



Thanks, i added
CODE
#pragma comment(lib,"User32.lib")

to the top of string.h in the pfc project and it now compiles
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: 20th September 2014 - 13:05