A little note, if somebody stumbles upon the same problem. I am building on Windows 10 with Visual Studio 2015 (msvc14).
There was a small problem compiling scummvm-1.9.0 from source. At the very end there are a few linker errors:
Code: Select all
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>boxstorage.obj : error LNK2019: unresolved external symbol __imp__curl_slist_append referenced in function "public: virtual class Networking::Request * __thiscall Cloud::Box::BoxStorage::streamFileById(class Common::String,class Common::BaseCallback<struct Networking::Response<class Networking::NetworkReadStream *> > *,class Common::BaseCallback<struct Networking::ErrorResponse> *)" (?streamFileById@BoxStorage@Box@Cloud@@UAEPAVRequest@Networking@@VString@Common@@PAV?$BaseCallback@U?$Response@PAVNetworkReadStream@Networking@@@Networking@@@7@PAV?$BaseCallback@UErrorResponse@Networking@@@7@@Z)
1>googledrivestorage.obj : error LNK2001: unresolved external symbol __imp__curl_slist_append
.
. A few more of the same kind
.
1>curlrequest.obj : error LNK2001: unresolved external symbol __imp__curl_slist_append
1>SDL_net.lib(SDLnet.obj) : error LNK2019: unresolved external symbol _GetAdaptersInfo@8 referenced in function _SDLNet_GetLocalAddresses
1>Debug32\scummvm.exe : fatal error LNK1120: 19 unresolved externals
Code: Select all
/D "CURL_STATICLIB"
Code: Select all
Iphlpapi.lib /NODEFAULTLIB:MSVCRT
- libcurl.lib is a static lib, but CURL_STATICLIB was not defined, so the symbols where defined in dll fashion. Defining CURL_STATICLIB fixes this.
For GetAdaptersInfo to be found I needed to add Iphlpapi.lib
/NODEFAULTLIB:MSVCRT ist just to remove a linker warning.
Regards.