Project

General

Profile

Actions

Emulator Issues #641

closed

linux: r2410 DriveUtil.cpp gcc cast problem

Added by siliconjoe almost 16 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

Hi there,

Compiling trunk on ubuntu 8.10 with gcc 4.3.2 leads to the following cast
error:

Compiling Build/Linux-x86_64-release/Source/Core/Common/Src/DriveUtil.o
Source/Core/Common/Src/DriveUtil.cpp: In function 'void
GetAllRemovableDrives(std::vector<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >)':
Source/Core/Common/Src/DriveUtil.cpp:33: error: cast from 'void
' to 'int'
loses precision
scons: *** [Build/Linux-x86_64-release/Source/Core/Common/Src/DriveUtil.o]
Error 1
scons: building terminated because of errors.

Adding the gcc compile flag '-fpermissive' to SConstruct makes the
compilation end up fine, but that's "problem dodging" :)

BTW on Linux wouldn't it make sense to use /dev/dvd* instead od
/dev/cdrom*? HAL support would be even better :)

Thanks for looking into this and great job guys.

Actions #1

Updated by lannyboyz almost 16 years ago

i had it /dev/cdrom* too. but lpfaint99 said that's way. wondering @@"

Actions #2

Updated by lpfaint99 almost 16 years ago

  • Status changed from New to Fixed

just temp code to test everything else, nakeee fixed it with r2414

Actions #3

Updated by nakeee almost 16 years ago

I did?

Actions #4

Updated by nakeee almost 16 years ago

I did?

Actions #5

Updated by lpfaint99 almost 16 years ago

ok so it was r2413 :p
you removed DriveUtil.cpp

odd though, it compiled just fine on my ubuntu vm

Actions

Also available in: Atom PDF