Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

VNC-Server -> Compilation fails: documentation outdated?

Post Reply
buggybunny
8
8
Posts: 9
Joined: 2007-05-08 14:41

VNC-Server -> Compilation fails: documentation outdated?

Post by buggybunny »

Hey folks,

i am trying to compile the UVNC-server but building the server fails during the compile-process.

First some system information:

- System is windows XP, service pack 2
- Compiler is Borland 5.5 as recommended
- VNC source version is 102

The compiler is configured correctly, i followed exactly the instructions given in "Building with BCC.txt". (adjusting linker-path etc to my system of course)

When i try to compile the sources via:

Code: Select all

.\build-bcc32.bat
i get the following output:

Code: Select all

ClientConnection.cpp:
Warning W8008 ClientConnection.cpp 2279: Condition is always false in function ClientConnection::SetupPixelFormat()
Error E2451 ClientConnection.cpp 2480: Undefined symbol 'i' in function ClientConnection::Createdib()
Warning W8012 ClientConnection.cpp 3470: Comparing signed and unsigned values in function ClientConnection::ReadScreenUp
date()
*** 1 errors in Compile ***

** error 1 ** deleting ClientConnection.obj
Das System kann die angegebene Datei nicht finden.
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
winvnc\d3des.c:
Warning W8054 winvnc\d3des.c 72: Style of function definition is now obsolete
Warning W8054 winvnc\d3des.c 109: Style of function definition is now obsolete
Warning W8054 winvnc\d3des.c 132: Style of function definition is now obsolete
Warning W8054 winvnc\d3des.c 142: Style of function definition is now obsolete
Warning W8054 winvnc\d3des.c 152: Style of function definition is now obsolete
Warning W8054 winvnc\d3des.c 163: Style of function definition is now obsolete
Warning W8054 winvnc\d3des.c 178: Style of function definition is now obsolete
Warning W8054 winvnc\d3des.c 337: Style of function definition is now obsolete
winvnc\vnclog.cpp:
winvnc\stdhdrs.cpp:
winvnc\translate.cpp:
Warning W8060 winvnc\translate.cpp 166: Possibly incorrect assignment in function IsMirrorDriverActive()
Warning W8060 winvnc\translate.cpp 217: Possibly incorrect assignment in function GetDcMirror()
winvnc\vncabout.cpp:
winvnc\vncacceptdialog.cpp:
winvnc\vncauth.c:
winvnc\vncbuffer.cpp:
Error E2451 winvnc\vncbuffer.cpp 842: Undefined symbol 'b' in function vncBuffer::GreyScaleRect(rfb::Rect &)
*** 1 errors in Compile ***
As you can see, the two main errors seems to be:

Code: Select all

Error E2451 ClientConnection.cpp 2480: Undefined symbol 'i' in function 

Error E2451 winvnc\vncbuffer.cpp 842: Undefined symbol 'b' in function vncBuffer::GreyScaleRect(rfb::Rect &)
What's going wrong here?

Could it be that the information given in "Building with BCC.txt" is outdated?

How do i get this up and running?
G_McPherran
Posts: 3
Joined: 2008-06-05 21:36

Re: VNC-Server -> Compilation fails: documentation outdat

Post by G_McPherran »

The function definition issues are straightforward. Old-style arg declarations are used:

E.g.

Change this ==>

void deskey(key, edf)
unsigned char *key;
int edf;
{
...
...

To this ==>

void deskey(unsigned char *key, int edf)
{
...
...


Note that the args are now simply defined in the parens.

It doesn't surprise me that the compiler flagged this. Personally, I haven't used the old style for probably 15 years or more. :)
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6867
Joined: 2004-04-23 10:21
Contact:

Re: VNC-Server -> Compilation fails: documentation outdat

Post by Rudi De Vos »

Sorry,
I only use vs2005 and Vs2008

Undefined symbol 'i' in function , i guess the cause is something like
this.

some compilers require
for (int i=0)
and fail on
int i
for (i=0)
Post Reply