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
- 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

Errors of compiling the source code of the Ultra VNC

Post Reply
zonesowhat
8
8
Posts: 20
Joined: 2014-04-12 07:44

Errors of compiling the source code of the Ultra VNC

Post by zonesowhat »

I'm using the source code of Ultra VNC with an unknown version .
These errors occur when compiling the 'winvnc' procject using VS2008:

Code: Select all

3>.\tabletranstemplate.cpp(17) : fatal error C1189: #error :  "This file shouldn't be compiled."
3>tableinittctemplate.cpp
3>.\tableinittctemplate.cpp(17) : fatal error C1189: #error :  "This file shouldn't be compiled."
3>tableinitcmtemplate.cpp
3>.\tableinitcmtemplate.cpp(15) : fatal error C1189: #error :  "This file shouldn't be compiled."
Last edited by zonesowhat on 2014-05-09 09:29, edited 1 time in total.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6864
Joined: 2004-04-23 10:21
Contact:

Re: Errors of compiling the source code of the latest Ultra

Post by Rudi De Vos »

This is no error, it's just a message to remind you that tabletranstemplate.cpp doesn't need to be compiled.
Just read tabletranstemplate.cpp

Code: Select all

#if !defined(INVNC) || !defined(OUTVNC)
#error "This file shouldn't be compiled."
#error "It is included as part of translate.c"
#endif
Unless you are knowing what you are doing use the provided project files
winvnc2008.sln
This should compile out of the box if "nasm" and "directx" is proper configured.
zonesowhat
8
8
Posts: 20
Joined: 2014-04-12 07:44

Re: Errors of compiling the source code of the latest Ultra

Post by zonesowhat »

Thanks for your reply.I want to tell you the details :
When I open the project(or .sln) directly(winvnc2008.sln),the file icons of the files above(tableinittctemplate.cpp etc.) show differently (with a small red horizontal stroke on the right-down corner of the normal icon) with others which showing in the solution resource manager box.Then it shows with these errors when compiling:

Code: Select all

10>Clipboard.obj : error LNK2001: unresolved external symbol  _crc32
10>Clipboard.obj : error LNK2001:  unresolved external symbol  "public: virtual void __thiscall rdr::ZlibOutStream::flush(void)" (?flush@ZlibOutStream@rdr@@UAEXXZ)
10>Clipboard.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall rdr::ZlibOutStream::~ZlibOutStream(void)" (??1ZlibOutStream@rdr@@UAE@XZ)
10>Clipboard.obj : error LNK2001: unresolved external symbol "public: __thiscall rdr::ZlibOutStream::ZlibOutStream(class rdr::OutStream *,int,int)" (??0ZlibOutStream@rdr@@QAE@PAVOutStream@1@HH@Z)
10>Clipboard.obj : error LNK2001: unresolved external symbol "public: void __thiscall rdr::ZlibInStream::setUnderlying(class rdr::InStream *,int)" (?setUnderlying@ZlibInStream@rdr@@QAEXPAVInStream@2@H@Z)
10>Clipboard.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall rdr::ZlibInStream::~ZlibInStream(void)" (??1ZlibInStream@rdr@@UAE@XZ)
10>Clipboard.obj : error LNK2001: unresolved external symbol "public: __thiscall rdr::ZlibInStream::ZlibInStream(int)" (??0ZlibInStream@rdr@@QAE@H@Z)
10>vncclient.obj : error LNK2001:unresolved external symbol  _adler32
10>vncclient.obj : error LNK2001: unresolved external symbol  _uncompress
10>vncclient.obj : error LNK2001: unresolved external symbol  _compress
10>vncEncodeTight.obj : error LNK2001: unresolved external symbol  _deflateEnd
10>vncEncodeTight.obj : error LNK2001: unresolved external symbol  _jpeg_set_quality
10>vncEncodeTight.obj : error LNK2001: unresolved external symbol  _jpeg_CreateCompress
10>vncEncodeTight.obj : error LNK2001: unresolved external symbol  _jpeg_destroy_compress
10>vncEncodeTight.obj : error LNK2001: unresolved external symbol  _deflateParams
10>vncEncodeTight.obj : error LNK2001: unresolved external symbol  _jpeg_write_scanlines
10>vncEncodeTight.obj : error LNK2001: unresolved external symbol  _jpeg_finish_compress
10>vncEncodeTight.obj : error LNK2001: unresolved external symbol  _deflate
10>vncEncodeTight.obj : error LNK2001: unresolved external symbol  _jpeg_start_compress
10>vncEncodeTight.obj : error LNK2001: unresolved external symbol  _deflateInit2_
10>vncEncodeTight.obj : error LNK2001: unresolved external symbol  _jpeg_set_defaults
10>vncEncodeTight.obj : error LNK2001: unresolved external symbol  _jpeg_std_error
10>vncencodezrle.obj : error LNK2001: unresolved external symbol "public: void __thiscall rdr::ZlibOutStream::setUnderlying(class rdr::OutStream *)" (?setUnderlying@ZlibOutStream@rdr@@QAEXPAVOutStream@2@@Z)
10>ZipUnzip32.obj : error LNK2001: unresolved external symbol  _ZpInit@4
10>ZipUnzip32.obj : error LNK2001: unresolved external symbol  _Wiz_SingleEntryUnzip@24
10>ZipUnzip32.obj : error LNK2001: unresolved external symbol  _ZpSetOptions@4
10>ZipUnzip32.obj : error LNK2001: unresolved external symbol  _ZpArchive@12
10>H:\AutoUpdate\UltraVNC\Release\winvnc.exe : fatal error LNK1120: 27 unresolved external commands
But when I correctly remove them(the three files) from the project and then correctly add,it shows the same as others.And it shows the errors as the 1# of this topic when compiling the project secondly.

The purpose I read this source code is to reuse it with some modifications.So at first also at least I must get a successful compiling.

I just wanna a successful compiling.

Does any one give me a hand?
zonesowhat
8
8
Posts: 20
Joined: 2014-04-12 07:44

Re: Errors of compiling the source code of the latest Ultra

Post by zonesowhat »

Rudi De Vos wrote:This is no error, it's just a message to remind you that tabletranstemplate.cpp doesn't need to be compiled.
Just read tabletranstemplate.cpp

Code: Select all

#if !defined(INVNC) || !defined(OUTVNC)
#error "This file shouldn't be compiled."
#error "It is included as part of translate.c"
#endif
Unless you are knowing what you are doing use the provided project files
winvnc2008.sln
This should compile out of the box if "nasm" and "directx" is proper configured.
If I do compile out of the box ,I guess other more errors will occur because the definitions and declarations of some variable .

Do I misunderstand your words?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6864
Joined: 2004-04-23 10:21
Contact:

Re: Errors of compiling the source code of the Ultra VNC

Post by Rudi De Vos »

You need to use the sln: this file define the realtions between the projects and what files that need to be compiled.

else wrong files are compiled

Code: Select all

3>.\tabletranstemplate.cpp(17) : fatal error C1189: #error :  "This file shouldn't be compiled."
3>tableinittctemplate.cpp
and relations are missing

Code: Select all

10>Clipboard.obj : error LNK2001: unresolved external symbol  _crc32
10>Clipboard.obj : error LNK2001:  unresolved external symbol  "public: virtual void __thiscall rdr::ZlibOutStream::flush(void)" (?flush@ZlibOutStream@rdr@@UAEXXZ)
winvnc.exe depend on zlib and rdr
zonesowhat
8
8
Posts: 20
Joined: 2014-04-12 07:44

Re: Errors of compiling the source code of the Ultra VNC

Post by zonesowhat »

Thanks.It seems that I have got the point.
zonesowhat
8
8
Posts: 20
Joined: 2014-04-12 07:44

Re: Errors of compiling the source code of the Ultra VNC

Post by zonesowhat »

The project 'winvnc' may be checked by someone before I got it.That means the projects which it depends on may be removed.
lino
Posts: 4
Joined: 2014-09-17 06:26

Re: Errors of compiling the source code of the Ultra VNC

Post by lino »

I'm beginner in vc++
I realy don't understand the problem.

1 installed VS2012 on a blank win7 32 system
2 Installed DIrectx SDK
3 Installed nasm in VS application Path
4 downloaded UVNC Source ultravnc-code-873 from sourceforge
5 set DirectX path in VS (lib and Include)
6 Build-Events Post-Build-Us In Build =No
7 Compile

Compiler error

1) Error 47 error LNK2001: unresolved external symbol "public: void __thiscall vncDesktop::SetBlankMonitor(bool)" (? SetBlankMonitor@vncDesktop@@QAEX_N@Z) D:\Lino\UltraVNC\winvnc\winvnc\vncdesktop.obj

2) Error 48 error LNK1120: 1 unresolved externals D:\Lino\UltraVNC\winvnc\debug\winvnc.exe

Please give step by step solution
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6864
Joined: 2004-04-23 10:21
Contact:

Re: Errors of compiling the source code of the Ultra VNC

Post by Rudi De Vos »

blankmonitor.cpp(32):void vncDesktop::SetBlankMonitor(bool enabled)
Is this file included in the winvnc project. If not, add it

version ?
lino
Posts: 4
Joined: 2014-09-17 06:26

Re: Errors of compiling the source code of the Ultra VNC

Post by lino »

Now solved. Thanks
Post Reply