Compile with vs2008 error in keymap.h

Compile with vs2008 error in keymap.h

Postby marsyang » 2011-05-03 11:05

Hi all

I use svn to get the latest source code.
I use vs 2008 to compile vncview.
But I have a error when it compile the keymap.h.

The error message is as below:
2>z:\ultravnc\ultravnc project root\ultravnc\vncviewer\KeyMap.h(173) : error C2001: newline in constant
2>z:\ultravnc\ultravnc project root\ultravnc\vncviewer\KeyMap.h(173) : warning C4066: characters beyond first in wide-character constant ignored
2>z:\ultravnc\ultravnc project root\ultravnc\vncviewer\KeyMap.h(174) : error C2143: syntax error : missing '}' before '{'
2>z:\ultravnc\ultravnc project root\ultravnc\vncviewer\KeyMap.h(174) : error C2143: syntax error : missing '}' before '{'
2>z:\ultravnc\ultravnc project root\ultravnc\vncviewer\KeyMap.h(174) : error C2143: syntax error : missing ';' before '{'
....

That comes from the structure
static const vncDeadKeyMapping_t deadKeyMap[] = {
{XK_dead_grave , L'`' }, // +U0060
{XK_dead_acute , L'? }, // +U00A8
{XK_dead_acute , L'\'' }, // +U0027
{XK_dead_circumflex , L'^' }, // +U005E
{XK_dead_tilde , L'~' }, // +U007E
{XK_dead_diaeresis , L'? }, // +U00B4
{XK_dead_diaeresis , L'"' }, // +U0022
{XK_dead_abovering , L'? }, // +U00B0
{XK_dead_cedilla , L'? }, // +U00B8
};

I think it might be the encode issue. So I save it in unicode format.
But it still fail.
Would anyone know how to fixed it?
Thanks for your help.
marsyang
 
Posts: 1
Joined: 2011-05-03 10:53

Re: Compile with vs2008 error in keymap.h

Postby PaulVincent » 2012-07-27 17:05

http://www.koders.com/cpp/fidCB6D3E2A53 ... dowshookex
line 167
copy and save as unicode-utf8
PaulVincent
 
Posts: 1
Joined: 2012-07-27 14:53

Re: Compile with vs2008 error in keymap.h

Postby zonesowhat » 2014-04-25 05:58

The answer above cannot be useful.
zonesowhat
8
8
 
Posts: 20
Joined: 2014-04-12 07:44


Return to 1.0.9.6 (stable)

Who is online

Users browsing this forum: No registered users and 3 guests