..:: PCSX2 Forums ::..

Full Version: Windows - Compile Guide and Support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
(05-10-2010, 04:59 AM)rama Wrote: [ -> ]I strongly advise you to keep using VS2008.
Especially the people that distribute these builds.
The differences in compilers and our highly random bugs (IPU coroutines for example) could create bogus bug reports.

In time we will switch to VS2010, but not yet.

I agree with this statement 100%.
I still recall bugs in 2008 that caused mis-compiles. had to stick with 2003 for a little while.
If MS says something is "RTM" that just means its a passable beta... wait until at least SP1 to make the switch.
Plus the fact they aren't really paying attention to the sol so you have to add each new includes update manually hunting it down and putting it in the logical spot is not for the faint of heart.
Yeah it's just too much trouble to support 2 micrsoft IDEs that have completely different build systems. We will be switching to VS2010 eventually; just not quite yet. I still have other more pressing matters on PCSX2 before I spend the week (or more) it'll take me to make a proper VS2010 build system (it requires a complete rewrite of the build system to be done properly).
I don't doubt it bjusty by looking at how it builds now. Though I was mildly amused clicking through folders and finding things stored in different places throughout the two builds so I was like this is missing wait not it's over here. Laugh
My error on compiling
Code:
Warning    16    warning RC4011: identifier truncated to '_CRT_SECURE_CPP_OVERLOAD_STANDA'    C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h    54
Warning    68    warning RC4011: identifier truncated to '_CRT_SECURE_CPP_OVERLOAD_STANDA'    C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h    54
Warning    17    warning RC4011: identifier truncated to '_CRT_SECURE_CPP_OVERLOAD_SECURE'    C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h    76
Warning    69    warning RC4011: identifier truncated to '_CRT_SECURE_CPP_OVERLOAD_SECURE'    C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h    76
Warning    61    warning C4244: '=' : conversion from 'u64' to 'int', possible loss of data    C:\Developement\PCSX2\plugins\CDVDiso\src\libiso.cpp    275
Warning    62    warning C4244: '=' : conversion from 'u64' to 'int', possible loss of data    C:\Developement\PCSX2\plugins\CDVDiso\src\libiso.cpp    309
Warning    63    warning C4244: '=' : conversion from 'u64' to 'int', possible loss of data    C:\Developement\PCSX2\plugins\CDVDiso\src\libiso.cpp    360
Warning    64    warning C4244: '=' : conversion from 'u64' to 'int', possible loss of data    C:\Developement\PCSX2\plugins\CDVDiso\src\libiso.cpp    398
Warning    47    warning C4018: '>' : signed/unsigned mismatch    C:\Developement\PCSX2\plugins\cdvdGigaherz\src\TocStuff.cpp    30
Error    1    error MSB6006: "cmd.exe" exited with code 1.    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets    151
Error    2    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    3    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    4    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    5    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    6    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    7    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    8    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    19    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    20    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    21    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    22    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    23    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    24    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    25    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    26    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    27    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    28    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    29    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    30    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    31    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    32    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    33    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    34    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    35    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    36    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    37    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    38    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    39    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    40    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    41    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    42    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    43    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    44    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    45    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    46    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    50    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    51    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    52    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    53    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    54    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    55    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    56    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    80    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    81    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    82    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    83    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    84    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    85    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    86    error C3861: '_Destroy': identifier not found    C:\Developement\PCSX2\3rdparty\wxWidgets\include\wx\msw\HeapAllocator.h    29
Error    12    error C1083: Cannot open source file: '..\..\src\hostapi\asio\ASIOSDK\host\pc\asiolist.cpp': No such file or directory    C:\Developement\PCSX2\3rdparty\portaudio\build\msvc\c1xx
Error    13    error C1083: Cannot open source file: '..\..\src\hostapi\asio\ASIOSDK\host\asiodrivers.cpp': No such file or directory    C:\Developement\PCSX2\3rdparty\portaudio\build\msvc\c1xx
Error    14    error C1083: Cannot open source file: '..\..\src\hostapi\asio\ASIOSDK\host\ASIOConvertSamples.cpp': No such file or directory    C:\Developement\PCSX2\3rdparty\portaudio\build\msvc\c1xx
Error    9    error C1083: Cannot open source file: '..\..\src\hostapi\asio\ASIOSDK\common\register.cpp': No such file or directory    C:\Developement\PCSX2\3rdparty\portaudio\build\msvc\c1xx
Error    10    error C1083: Cannot open source file: '..\..\src\hostapi\asio\ASIOSDK\common\debugmessage.cpp': No such file or directory    C:\Developement\PCSX2\3rdparty\portaudio\build\msvc\c1xx
Error    11    error C1083: Cannot open source file: '..\..\src\hostapi\asio\ASIOSDK\common\combase.cpp': No such file or directory    C:\Developement\PCSX2\3rdparty\portaudio\build\msvc\c1xx
Error    15    error C1083: Cannot open source file: '..\..\src\hostapi\asio\ASIOSDK\common\asio.cpp': No such file or directory    C:\Developement\PCSX2\3rdparty\portaudio\build\msvc\c1xx
Error    48    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    49    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    57    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    58    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    59    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    60    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    65    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    66    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    67    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    70    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    71    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    72    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    73    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    74    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    75    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    76    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    77    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    78    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    79    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    87    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    88    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    89    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    90    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    91    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    92    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    93    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    94    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    95    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    96    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    97    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    98    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    99    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    100    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    101    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    102    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    103    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    104    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    105    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    106    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    107    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    108    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    109    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    110    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    111    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    112    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    113    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    114    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    115    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    116    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    117    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    118    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\StdAfx.h    60
Error    119    error C1083: Cannot open include file: 'Pcsx2Defs.h': No such file or directory    c:\developement\pcsx2\plugins\gsdx\stdafx.h    60
Error    18    error C1083: Cannot open include file: 'asiosys.h': No such file or directory    C:\Developement\PCSX2\3rdparty\portaudio\src\hostapi\asio\pa_asio.cpp    150

directx sdk directories ok
glew directories ok
nvidia sdk ok

show 110 erros and 9 Warnings
Basically a bunch of missing files that should be included in the solution that aren't is at least 75% of the errors I see there. However I'm not quite sure which file has destroy yet I need to look at the svn history to find it.
if you are using vs 2010, change line 6 of heapallocator.h to

std::_Destroy( _Ptr );

try again and tell me how it went...
(06-02-2010, 11:23 PM)mArgAAle Wrote: [ -> ]if you are using vs 2010, change line 6 of heapallocator.h to

std::_Destroy( _Ptr );

try again and tell me how it went...

worked for me, thanks.
Hi, I´m having trouble compling pcsx2 in visual studio 2010. If i include the file GameDatabasePanel.cpp i get this error message:
Code:
Error 1    error C2666: 'operator |' : 2 overloads have similar conversions C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\istream    1042 1 pcsx2"

Is there any pragma, define or something that i'm missing?

Thanks

Edit:
Code:
template< typename WinType >
pxWindowAndFlags<WinType> operator | ( WinType* _win, const wxSizerFlags& _flgs )
{
    pxWindowAndFlags<WinType> result = { _win, _flgs };
    return result;
}

template< typename WinType >
pxWindowAndFlags<WinType> operator | ( WinType& _win, const wxSizerFlags& _flgs )
{
    pxWindowAndFlags<WinType> result = { &_win, _flgs };
    return result;
}

That is the code that seems to be causing the problem. I guess that the compiler cannot distinguish between that operator and the default one.
(06-07-2010, 11:40 PM)mArgAAle Wrote: [ -> ]Hi, I´m having trouble compling pcsx2 in visual studio 2010. If i include the file GameDatabasePanel.cpp i get this error message:
Code:
Error 1    error C2666: 'operator |' : 2 overloads have similar conversions C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\istream    1042 1 pcsx2"

Is there any pragma, define or something that i'm missing?

Thanks

Edit:
Code:
template< typename WinType >
pxWindowAndFlags<WinType> operator | ( WinType* _win, const wxSizerFlags& _flgs )
{
    pxWindowAndFlags<WinType> result = { _win, _flgs };
    return result;
}

template< typename WinType >
pxWindowAndFlags<WinType> operator | ( WinType& _win, const wxSizerFlags& _flgs )
{
    pxWindowAndFlags<WinType> result = { &_win, _flgs };
    return result;
}

That is the code that seems to be causing the problem. I guess that the compiler cannot distinguish between that operator and the default one.

I got this code to compile with a bit of a kludge of a solution. Basically you have to define a more specific version of the templated operator| so that the compiler will use the built-in version rather than trying to guess and being unable to choose between two very generic operator|s. I added the following code to pcsx2\File_Reader.h before the line 'class File_Reader {':
Code:
std::_Iosb<int>::_Iostate operator|(std::_Iosb<int>::_Iostate, std::_Iosb<int>::_Iostate);
This will make the compiler choose the built-in operator rather than the pxWindowAndFlags version (int is a dummy type, so this kludge is rather fragile and will likely break anything that uses GameDatabasePanel.cpp as well as File_Reader.h) but it does compile correctly and as far as I can tell, runs games properly and is able to search the Game Database, so at the very least, it's a good enough workaround until someone comes up with something better.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36