Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issues compiling
#1
I grabbed the latest source from git and tried to compile. It looks like it succeeded but the error log in Visual Studio shows the following:

Code:
AboutBox.cpp(37): error C2308: concatenating mismatched strings
6>          Concatenating wide "Build %lld" with narrow "-- Compiled on "
6>AboutBox.cpp(43): error C2308: concatenating mismatched strings
6>          Concatenating wide "Release v%d.%d" with narrow "-- Compiled on "

Looking at the logs it seems to fail to compile the SPU2-X plugin.
Any ideas?

I'm running Windows 7 x64.
Reply

Sponsored links

#2
I had the same issue, you need to specify these 2 strings as wide strings in the code by simply putting a 'L' in front of the "-- Compiled on" strings, like this:
Code:
if( IsDevBuild )
    swprintf_s( outstr, L"Build %lld"
#ifndef openSUSE
        L"-- Compiled on " _T(__DATE__)
#endif
        , SVN_REV );
else
    swprintf_s( outstr, L"Release v%d.%d"
#ifndef openSUSE
        L"-- Compiled on " _T(__DATE__)
#endif
        , VersionInfo::Release, VersionInfo::Revision );

Not sure why it's not done like that in git though...

edit: It seems like this issue got introduced with this commit but I guess it should be fixed in the repository pretty soon (why should the build date not be used in OpenSuse anyway?).
Reply
#3
(09-23-2014, 06:04 PM)Triver Wrote: I had the same issue, you need to specify these 2 strings as wide strings in the code by simply putting a 'L' in front of the "-- Compiled on" strings, like this:
Code:
if( IsDevBuild )
    swprintf_s( outstr, L"Build %lld"
#ifndef openSUSE
        L"-- Compiled on " _T(__DATE__)
#endif
        , SVN_REV );
else
    swprintf_s( outstr, L"Release v%d.%d"
#ifndef openSUSE
        L"-- Compiled on " _T(__DATE__)
#endif
        , VersionInfo::Release, VersionInfo::Revision );

Not sure why it's not done like that in git though...

edit: It seems like this issue got introduced with this commit but I guess it should be fixed in the repository pretty soon (why should the build date not be used in OpenSuse anyway?).

That worked like a charm. Thanks!
Reply




Users browsing this thread: 1 Guest(s)