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

Error in C++ and Design Help

Post Reply
jbilawa
Posts: 1
Joined: 2004-06-22 23:34

Error in C++ and Design Help

Post by jbilawa »

Hello all...

Can someone please shed light on something. I downloaded the source and opened in C++ 6 and when trying to build I get,

Updating buildTime
buildTime.cxx
fatal error C1083: Cannot open compiler generated file: 'Debug\buildTime.obj': No such file or directory
Error executing c:\windows\system32\cmd.exe.

I am not sure where to proceed. Does anyone also know of someone who does design/customization work if this gets over my head.

Thank you,

Jeremy Bilawa
jbilawa@yahoo.com
Chris H
20
20
Posts: 47
Joined: 2005-04-16 01:59

Re: Error in C++ and Design Help

Post by Chris H »

jbilawa wrote:Hello all...

Can someone please shed light on something. I downloaded the source and opened in C++ 6 and when trying to build I get,

Updating buildTime
buildTime.cxx
fatal error C1083: Cannot open compiler generated file: 'Debug\buildTime.obj': No such file or directory
Error executing c:\windows\system32\cmd.exe.

I am not sure where to proceed. Does anyone also know of someone who does design/customization work if this gets over my head.

Thank you,

Jeremy Bilawa
jbilawa@yahoo.com
I'm getting the exact same error when I try to compile with VS 6.0 on Windows XP SP2. The source code is untouched.

-------------------Configuration: winvnc - Win32 Http--------------------
buildtime.cpp
fatal error C1083: Cannot open compiler generated file: '..\Release\buildtime.obj': No such file or directory
Error executing c:\windows\system32\cmd.exe.

winvnc.exe - 1 error(s), 0 warning(s)
jftuga
20
20
Posts: 36
Joined: 2005-05-31 18:31
Location: Athens, GA

Post by jftuga »

This is a long shot, but do you have the newest Visual Studio Service Pack?

http://msdn.microsoft.com/vstudio/downl ... fault.aspx

-John
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6863
Joined: 2004-04-23 10:21
Contact:

Post by Rudi De Vos »

It has something todo with the order the different project are made.
First create the dll's, then winvnc.

If it do not work, try to contact Marcha, he added the buildtime
Chris H
20
20
Posts: 47
Joined: 2005-04-16 01:59

Post by Chris H »

I installed SP5 which I saw one of the developers was using.

I fixed that error by changing it to Release build. But now I get around 406 unresolved external errors, so I'm thinking there is something else going on.

A small snippet of the errors I'm getting. Somehow the project isn't linking properly.

--------------------Configuration: winvnc - Win32 Release--------------------
buildtime.cpp
Linking...
DSMPlugin.obj : error LNK2001: unresolved external symbol "public: __thiscall omni_mutex::~omni_mutex(void)" (??1omni_mutex@@QAE@XZ)
vncdesktop.obj : error LNK2001: unresolved external symbol "public: __thiscall omni_mutex::~omni_mutex(void)" (??1omni_mutex@@QAE@XZ)
vncserver.obj : error LNK2001: unresolved external symbol "public: __thiscall omni_mutex::~omni_mutex(void)" (??1omni_mutex@@QAE@XZ)
vsocket.obj : error LNK2001: unresolved external symbol "public: __thiscall omni_mutex::~omni_mutex(void)" (??1omni_mutex@@QAE@XZ)
vncmenu.obj : error LNK2001: unresolved external symbol _sprintf
vncproperties.obj : error LNK2001: unresolved external symbol _sprintf
vncservice.obj : error LNK2001: unresolved external symbol _sprintf
vncsockconnect.obj : error LNK2001: unresolved external symbol _sprintf
DSMPlugin.obj : error LNK2001: unresolved external symbol _sprintf
vncacceptdialog.obj : error LNK2001: unresolved external symbol _sprintf
vncclient.obj : error LNK2001: unresolved external symbol _sprintf
vnchttpconnect.obj : error LNK2001: unresolved external symbol _sprintf
DSMPlugin.obj : error LNK2001: unresolved external symbol "public: __thiscall omni_mutex::omni_mutex(void)" (??0omni_mutex@@QAE@XZ)
vncdesktop.obj : error LNK2001: unresolved external symbol "public: __thiscall omni_mutex::omni_mutex(void)" (??0omni_mutex@@QAE@XZ)
vncserver.obj : error LNK2001: unresolved external symbol "public: __thiscall omni_mutex::omni_mutex(void)" (??0omni_mutex@@QAE@XZ)
vsocket.obj : error LNK2001: unresolved external symbol "public: __thiscall omni_mutex::omni_mutex(void)" (??0omni_mutex@@QAE@XZ)
vsocket.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
winvnc.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
vncproperties.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
vncserver.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
vncsockconnect.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
vnctimedmsgbox.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
vncencodezrle.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
vnchttpconnect.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
vnckeymap.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
vncmenu.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
vncEncodeTight.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
vncEncodeUltra.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
vncEncodeZlib.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler
spadthebad
Posts: 4
Joined: 2005-09-25 16:39
Location: UK

Post by spadthebad »

I came here to post about the same problem but it seems someone beat me to it!
I solved the buldtime problem by installing sp5 and the processor pack which I saw mentioned elsewhere, now I am about where Chris H is.. I have 145 errors, all "unresolved external" linker errors..

If anyone knows the solution then please let us know!
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6863
Joined: 2004-04-23 10:21
Contact:

Post by Rudi De Vos »

You are trying to compile winvnc.dsp as standalone project, you use the winvnc.dsp from the subproject winvnc.

You need to compile winvnc with the dsp file that contain all subprojects.

winvnc.dsp<<<--------------project file----CORRECT
/winvnc/winvnc.dsp <-----------Subproject file--WRONG
/omnithread
/....
spadthebad
Posts: 4
Joined: 2005-09-25 16:39
Location: UK

Post by spadthebad »

Thanks for your help Rudi that helps, I am not used to Visual Studio, I got it all compiled except for a few more errors in winvnc..

I'll just paste my log in:

--------------------Configuration: authSSP - Win32 Debug--------------------
Create Buildtime for VERSIONINFO
buildtime.in
Linking...
C:\Program Files\Microsoft Visual Studio\VC98\LIB\aclui.lib : warning LNK4033: converting object format from OMF to COFF
C:\Program Files\Microsoft Visual Studio\VC98\LIB\aclui.lib : warning LNK4033: converting object format from OMF to COFF
Creating library ..\..\Debug/authSSP.lib and object ..\..\Debug/authSSP.exp
LINK : warning LNK4199: /DELAYLOAD:aclui.dll ignored; no imports found from aclui.dll
vncSecurityEditor.obj : error LNK2001: unresolved external symbol __imp__IID_ISecurityInformation
vncSecurityEditor.obj : error LNK2001: unresolved external symbol __imp__CreateSecurityPage@4
..\..\Debug/authSSP.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

winvnc.exe - 3 error(s), 3 warning(s)

What is this aclui.lib, I had to get this library and the aclui.h from another compiler as my visual studio didn't have them in the include and lib directorys, do I need to install service pack 6 to get them?

Hope you can help again!
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6863
Joined: 2004-04-23 10:21
Contact:

Post by Rudi De Vos »

No service pack6 as it is not compatible with the "cpu pack"

The authentication dll make use of the SDK...(huge download)

If you don't want to build the dll and only want to play with winvnc...
Just exclude that dll from the build and dependency's, you can compile winvnc.exe without the dll.


Rudi
Chris H
20
20
Posts: 47
Joined: 2005-04-16 01:59

Post by Chris H »

spadthebad wrote:Thanks for your help Rudi that helps, I am not used to Visual Studio, I got it all compiled except for a few more errors in winvnc..

I'll just paste my log in:

--------------------Configuration: authSSP - Win32 Debug--------------------
Create Buildtime for VERSIONINFO
buildtime.in
Linking...
C:\Program Files\Microsoft Visual Studio\VC98\LIB\aclui.lib : warning LNK4033: converting object format from OMF to COFF
C:\Program Files\Microsoft Visual Studio\VC98\LIB\aclui.lib : warning LNK4033: converting object format from OMF to COFF
Creating library ..\..\Debug/authSSP.lib and object ..\..\Debug/authSSP.exp
LINK : warning LNK4199: /DELAYLOAD:aclui.dll ignored; no imports found from aclui.dll
vncSecurityEditor.obj : error LNK2001: unresolved external symbol __imp__IID_ISecurityInformation
vncSecurityEditor.obj : error LNK2001: unresolved external symbol __imp__CreateSecurityPage@4
..\..\Debug/authSSP.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

winvnc.exe - 3 error(s), 3 warning(s)

What is this aclui.lib, I had to get this library and the aclui.h from another compiler as my visual studio didn't have them in the include and lib directorys, do I need to install service pack 6 to get them?

Hope you can help again!
Where did you get the processor pack?

I opened the dsw file and set winvnc as the active project. I removed all of the dependencies from the project.

I tried to build and now get the 145 unresolved external errors. This is definately an adventure to get working.
spadthebad
Posts: 4
Joined: 2005-09-25 16:39
Location: UK

Post by spadthebad »

I just got it working so the adventure is only just beginning for me.

http://download.microsoft.com/download/ ... /vcpp5.exe

Theres the processor pack..

I opened the main dsw with all the projects in and just complied them all one by one until winvnc worked, I don't know the logic behind this but it worked..

Give it a shot..
Chris H
20
20
Posts: 47
Joined: 2005-04-16 01:59

Post by Chris H »

spadthebad wrote:I just got it working so the adventure is only just beginning for me.

http://download.microsoft.com/download/ ... /vcpp5.exe

Theres the processor pack..

I opened the main dsw with all the projects in and just complied them all one by one until winvnc worked, I don't know the logic behind this but it worked..

Give it a shot..
I'll try it out tonight, or sometime today if I get a chance... and let everyone else know if ti worked for me.
Chris H
20
20
Posts: 47
Joined: 2005-04-16 01:59

Post by Chris H »

I just went down the list and tried compiling everything. I left winvnc classes for last. I got errors compiling a few of the dlls.

When I compile the "winvnc classes" progect I get 387 errors now. I have the processor pack installed also.

So as far as I can tell I'm setup exactly like everyone else. :|

Building authSSP.dll I get this

Create Buildtime for VERSIONINFO
buildtime.in
Compiling...
authSSP.cpp
c:\uvnc\src\ultravnc\winvnc\ms-logon\authssp\authssp.cpp(191) : error C2065: 'SecureZeroMemory' : undeclared identifier
vncSecurityEditor.cpp
c:\uvnc\src\ultravnc\winvnc\ms-logon\authssp\vncsecurityeditor.h(36) : fatal error C1083: Cannot open include file: 'aclui.h': No such file or directory
Generating Code...
Error executing cl.exe.

authSSP.dll - 2 error(s), 0 warning(s)


Compiling ldapauth.dll I get this

--------------------Configuration: ldapauth - Win32 Debug--------------------
Compiling...
ldapAuth.cpp
c:\uvnc\src\ultravnc\winvnc\ms-logon\ldapauth\ldapauth.h(21) : fatal error C1083: Cannot open include file: 'Dsgetdc.h': No such file or directory
Error executing cl.exe.

ldapauth.dll - 1 error(s), 0 warning(s)

I'll stop listing the rest of the errors unless anyone else thinks they can figure out where I'm going wrong.
Chris H
20
20
Posts: 47
Joined: 2005-04-16 01:59

Post by Chris H »

FINALLY! I got it.

lol. I've managed to code my own Windows service in C++ but this had me stumped.

Here's all the steps I did for anyone who is having the same trouble. Hopefully, it helps you.


1) I installed SP5 (NOT SP6) and the processor pack.

2) Extracted the source to a folder at C:\uvnc

3) Used the correct dsw file located at C:\uvnc\src\ultravnc\winvnc\winvnc.dsw

4) I canceled out when it prompted me for another dsp file

5) Set "winvnc classes" as the Active Progect by right clicking it.

6) Set the build type to Release for winvnc instead of Http (in the menu under Build|Set Active Configuration)

7) Compiled as many of the dll's as I could BEFORE trying winvnc classes, right click each one and choose "Set as Active Progect", then press F7.

8) I removed all of the dependencies for "winvnc classes" by making it the Active Progect and then choose Progect from the menu and then Dependencies. I only left the following dependencies in libjpeg, omnithread, rdr, and Xregion.

9) Set the active progect as "winvnc classes" and then compiled winvnc.

10) I saved that sucker so I don't have to go through it again.

Those steps seem to have done the trick. I don't think I left anything out. I left out a lot of dependencies that I won't be needing I don't think.
Last edited by Chris H on 2005-09-27 00:26, edited 1 time in total.
Post Reply