I have it working in the Winamp version of my plugin, but my foobar version is throwing all kinds of weird link errors at me when building. Here are a few:
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _calloc already defined in LIBCMTD.lib(dbgcalloc.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _realloc already defined in LIBCMTD.lib(dbgrealloc.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgfree.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _malloc already defined in LIBCMTD.lib(dbgmalloc.obj)
I'm using the static version of the cURL library which I myself built from the sources. In case I'm missing something, here are my Compile and Linker command-lines respectively:
/Od /I "C:\Documents and Settings\Jonathon\Desktop\beenplaying\libcurl\include" /I "C:\Documents and Settings\Jonathon\Desktop\SDK-2008-11-29\foobar2000" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "BEENPLAYING_EXPORTS" /D "CURL_STATICLIB" /D "_WINDLL" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MTd /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /nologo /c /ZI /TP /errorReport:prompt
/OUT:"C:\Documents and Settings\Jonathon\Desktop\SDK-2008-11-29\Debug\foo_BeenPlaying.dll" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Documents and Settings\Jonathon\Desktop\beenplaying\libcurl\lib\Debug" /LIBPATH:"C:\Documents and Settings\Jonathon\Desktop\SDK-2008-11-29\foobar2000\shared" /DLL /MANIFEST /MANIFESTFILE:"Debug\foo_BeenPlaying.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Documents and Settings\Jonathon\Desktop\SDK-2008-11-29\Debug\foo_BeenPlaying.pdb" /SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT shared.lib shlwapi.lib libcurl.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "..\..\foobar2000\foobar2000_component_client\debug\foobar2000_component_client.lib" "..\..\debug\pfc.lib" "..\..\debug\foobar2000_sdk_helpers.lib" "..\..\foobar2000\sdk\debug\foobar2000_sdk.lib"
Any help whatsoever would be greatly appreciated. I've been scouring the web for the last few hours trying to find a solution. If you think it'll help, let me know and I'll post the command-lines for my Winamp plugin project.