compiling error

Discussions related to using the OSE version of VirtualBox.
Post Reply
ys
Posts: 19
Joined: 12. Mar 2012, 19:42

compiling error

Post by ys »

Hi ,
I'm trying to compile vBox OSE and get following error :
src\VBox\Runtime\r3\win\path-win.cpp(114) : error C2664: 'RTStrToUtf16Tag' : cannot convert parameter 2 from 'LPWSTR *' to 'PRTUTF16 *'
It seems that RTStrToUtf16Tag need PRTUTF16 * but given a LPWSTR * , how to fix this problem ? Seems there are lots of such
call . Thanks in advance .
ys
Posts: 19
Joined: 12. Mar 2012, 19:42

Re: compiling error

Post by ys »

Could anybody help me with this ? If nobody give me some advice , I have to fix the code by hand .
Is this really needed ? Many thanks .
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: compiling error

Post by stefan.becker »

No one knows what you are doing. OSE could be compiled on serveal hosts with several compilers in several versions.
ys
Posts: 19
Joined: 12. Mar 2012, 19:42

Re: compiling error

Post by ys »

stefan.becker wrote:No one knows what you are doing. OSE could be compiled on serveal hosts with several compilers in several versions.
I'm compiling OSE 4.1.8 on Windows host , the compiler is VS2008 . Thanks .
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: compiling error

Post by frank »

Seems that your compiler is more pedantic than the compiler we are using. This will be fixed when we switch to a newer compiler.
ys
Posts: 19
Joined: 12. Mar 2012, 19:42

Re: compiling error

Post by ys »

Frank Mehnert wrote:Seems that your compiler is more pedantic than the compiler we are using. This will be fixed when we switch to a newer compiler.
Haha , found it , just change a line in VCC70.kmk from
TOOL_VCC70_CXXFLAGS ?= -TP -c -nologo
to
TOOL_VCC70_CXXFLAGS ?= -TP -c -nologo -Zc:wchar_t-
Thanks!
Post Reply