Project

General

Profile

Actions

Emulator Issues #3907

closed

Can't build with VS2010 since R6710

Added by 0vetal0 almost 14 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What steps will reproduce the problem?

  1. Just rebuild solution, and build fails with errors at WiimoteReal.cpp

What is the expected output? What do you see instead?
1> WiimoteReal.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2440: 'initializing' : cannot convert from 'int' to 'unsigned char *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(247) : see reference to function template instantiation 'std::_Pair_base<_Ty1,_Ty2>::_Pair_base<_Ty,_Ty>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=unsigned char *,
1> _Ty2=u8,
1> _Ty=int,
1> _Other1=int,
1> _Other2=int
1> ]
1> Src\HW\WiimoteReal\WiimoteReal.cpp(61) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<int,int>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=u8 *,
1> _Ty2=u8,
1> _Other1=int,
1> _Other2=int
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2439: 'std::_Pair_base<_Ty1,_Ty2>::first' : member could not be initialized
1> with
1> [
1> _Ty1=unsigned char *,
1> _Ty2=u8
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(166) : see declaration of 'std::_Pair_base<_Ty1,_Ty2>::first'
1> with
1> [
1> _Ty1=unsigned char *,
1> _Ty2=u8
1> ]
1>
1>Build FAILED.

Dolphin version with the problem? Other Dolphin version without the
problem?
R6710 - looks like the regression revision
R6708 build fine

32-bit or 64-bit and any other build parameters?
x64 Release

OS version and versions of tools/libraries used?
Visual Studio 2010 SP1beta
at Win7 x64

Actions #1

Updated by 0vetal0 almost 14 years ago

just a typecast problem %)
m_last_data_report(Report((unsigned char*)NULL, 0))
works fine

Actions #2

Updated by soren.jorvang almost 14 years ago

  • Status changed from New to Fixed

This issue was closed by revision r6828.

Actions

Also available in: Atom PDF