Problems during windows compiling

Juraj Bednar bednar "at" isternet.sk
Sat, 14 Mar 1998 12:51:58 +0000


Hi,

   this were the errors while compiling latest (R9) version of vncviewer :
--------------------Configuration: vncviewer - Win32
Debug--------------------
Compiling resources...
Compiling...
stdhdrs.cpp
Compiling...
AboutBox.cpp
AuthDialog.cpp
ClientConnection.cpp
d3des.c
C:\winvnc\vncviewer\d3des.c(1) : warning C4067: unexpected tokens following
pragma directive - expected a newline
Daemon.cpp
Exception.cpp
Flasher.cpp
KeyMap.cpp
SessionDialog.cpp
vncauth.c
C:\winvnc\vncviewer\vncauth.c(71) : warning C4013: 'deskey' undefined;
assuming extern returning int
C:\winvnc\vncviewer\vncauth.c(71) : error C2121: '#' : invalid character :
possibly the result of a macro expansion
C:\winvnc\vncviewer\vncauth.c(71) : error C2146: syntax error : missing ')'
before identifier 'define'
C:\winvnc\vncviewer\vncauth.c(71) : error C2143: syntax error : missing ';'
before 'type'
C:\winvnc\vncviewer\vncauth.c(71) : error C2143: syntax error : missing ';'
before 'type'
C:\winvnc\vncviewer\vncauth.c(71) : error C2143: syntax error : missing ';'
before 'type'
C:\winvnc\vncviewer\vncauth.c(71) : error C2143: syntax error : missing ';'
before ')'
C:\winvnc\vncviewer\vncauth.c(74) : warning C4013: 'des' undefined; assuming
extern returning int
VNCOptions.cpp
vncviewer.cpp
Error executing cl.exe.
vncviewer.exe - 6 error(s), 3 warning(s)

-------

Next, these are the errors during vnc server (R9) compilation :

--------------------Configuration: VNCHooks - Win32
Purify--------------------
Compiling...
VNCHooks.cpp
Linking...
VNCHooks.def : error LNK2001: unresolved external symbol SetHook
VNCHooks.def : error LNK2001: unresolved external symbol UnSetHook
../Purify/VNCHooks.lib : fatal error LNK1120: 2 unresolved externals
LINK : fatal error LNK1141: failure during build of exports file
Error executing link.exe.
WinVNC.exe - 4 error(s), 0 warning(s)

----------

When I let him ignore (not fix) these, it puts another list of bugs :

--------------------Configuration: VNCHooks - Win32
Purify--------------------
Linking...
   Creating library ../Purify/VNCHooks.lib and object ../Purify/VNCHooks.exp
LINK : warning LNK4039: section ".SharedData" specified with /SECTION option
does not exist
--------------------Configuration: omnithread - Win32
Purify--------------------
Compiling...
nt.cpp
Linking...
--------------------Configuration: WinVNC - Win32 Purify--------------------
Compiling resources...
C:\winvnc\winvnc\WinVNC.rc(2) : error RC2021: expected exponent value, not
'N'
RC : fatal error RC1116 : RC terminating after preprocessor errors
Error executing rc.exe.
WinVNC.exe - 2 error(s), 1 warning(s)




Okay, I fix this with just deleting the first two comment lines...

I'll also delete and add some lines to resource.h...

Then compilation again :

--------------------Configuration: WinVNC - Win32 Purify--------------------
Compiling resources...
Compiling...
d3des.c
C:\winvnc\winvnc\d3des.c(181) : warning C4244: '=' : conversion from
'unsigned long ' to 'unsigned char ', possible loss of data
C:\winvnc\winvnc\d3des.c(182) : warning C4244: '=' : conversion from
'unsigned long ' to 'unsigned char ', possible loss of data
C:\winvnc\winvnc\d3des.c(183) : warning C4244: '=' : conversion from
'unsigned long ' to 'unsigned char ', possible loss of data
C:\winvnc\winvnc\d3des.c(184) : warning C4244: '=' : conversion from
'unsigned long ' to 'unsigned char ', possible loss of data
C:\winvnc\winvnc\d3des.c(185) : warning C4244: '=' : conversion from
'unsigned long ' to 'unsigned char ', possible loss of data
C:\winvnc\winvnc\d3des.c(186) : warning C4244: '=' : conversion from
'unsigned long ' to 'unsigned char ', possible loss of data
C:\winvnc\winvnc\d3des.c(187) : warning C4244: '=' : conversion from
'unsigned long ' to 'unsigned char ', possible loss of data
C:\winvnc\winvnc\d3des.c(188) : warning C4244: '=' : conversion from
'unsigned long ' to 'unsigned char ', possible loss of data
MinMax.cpp
RectList.cpp
stdhdrs.cpp
translate.cpp
vncAbout.cpp
C:\winvnc\winvnc\vncAbout.cpp(59) : error C2065: 'hAppInstance' : undeclared
identifier
C:\winvnc\winvnc\vncAbout.cpp(60) : error C2065: 'IDD_ABOUT' : undeclared
identifier
vncauth.c
vncBuffer.cpp
C:\winvnc\winvnc\vncDesktop.h(44) : fatal error C1083: Cannot open include
file: 'omnithread.h': No such file or directory
vncClient.cpp
vnccontrolSK.cpp
fatal error C1083: Cannot open source file:
'C:\winvnc\winvnc\vnccontrolSK.cpp': No such file or directory
vncCorbaConnect.cpp
fatal error C1083: Cannot open source file:
'C:\winvnc\winvnc\vncCorbaConnect.cpp': No such file or directory
vncDesktop.cpp
vncEncodeCoRRE.cpp
C:\winvnc\winvnc\vncEncodeCoRRE.cpp(135) : warning C4018: '>' :
signed/unsigned mismatch
C:\winvnc\winvnc\vncEncodeCoRRE.cpp(153) : warning C4018: '>' :
signed/unsigned mismatch
C:\winvnc\winvnc\vncEncodeCoRRE.cpp(207) : warning C4018: '>' :
signed/unsigned mismatch
C:\winvnc\winvnc\vncEncodeCoRRE.cpp(207) : warning C4018: '>' :
signed/unsigned mismatch
C:\winvnc\winvnc\vncEncodeCoRRE.cpp(226) : warning C4018: '>' :
signed/unsigned mismatch
C:\winvnc\winvnc\vncEncodeCoRRE.cpp(246) : warning C4018: '>' :
signed/unsigned mismatch
vncEncodeHexT.cpp
vncEncoder.cpp
vncEncodeRRE.cpp
vncHTTPConnect.cpp
C:\winvnc\winvnc\vncHTTPConnect.h(44) : fatal error C1083: Cannot open
include file: 'omnithread.h': No such file or directory
vncInstHandler.cpp
vncKeymap.cpp
vncMenu.cpp
vncProperties.cpp
vncRegion.cpp
vncServer.cpp
vncSockConnect.cpp
C:\winvnc\winvnc\vncSockConnect.h(42) : fatal error C1083: Cannot open
include file: 'omnithread.h': No such file or directory
VSocket.cpp
WinVNC.cpp
C:\winvnc\winvnc\WinVNC.cpp(66) : error C2065: 'InitSockets' : undeclared
identifier
C:\winvnc\winvnc\WinVNC.cpp(74) : error C2065: 'vncServer' : undeclared
identifier
C:\winvnc\winvnc\WinVNC.cpp(74) : error C2146: syntax error : missing ';'
before identifier 'server'
C:\winvnc\winvnc\WinVNC.cpp(74) : error C2065: 'server' : undeclared
identifier
C:\winvnc\winvnc\WinVNC.cpp(77) : error C2228: left of '.SetName' must have
class/struct/union type
C:\winvnc\winvnc\WinVNC.cpp(78) : error C2228: left of '.SetPortA' must have
class/struct/union type
C:\winvnc\winvnc\WinVNC.cpp(82) : error C2228: left of '.SockConnect' must
have class/struct/union type
C:\winvnc\winvnc\WinVNC.cpp(86) : error C2228: left of '.CORBAConnect' must
have class/struct/union type
C:\winvnc\winvnc\WinVNC.cpp(90) : error C2065: 'vncMenu' : undeclared
identifier
C:\winvnc\winvnc\WinVNC.cpp(90) : error C2065: 'menu' : undeclared
identifier
C:\winvnc\winvnc\WinVNC.cpp(90) : error C2061: syntax error : identifier
'vncMenu'
C:\winvnc\winvnc\WinVNC.cpp(106) : error C2541: delete : cannot delete
objects that are not pointers
Error executing cl.exe.
WinVNC.exe - 19 error(s), 14 warning(s)



Anyone has an idea why does this my visual studio do ??? I'm compiling and
programming
other project very well, there are exactly NO problems. I've tried it also
on my friend's computer
with the same version (5.0) of Visual C++ with all service packs available
and it's doing the
same thing... Then it's always complaing about adding carriage returns to
the code - what was
this written under ???


    Juraj.