VR Juggler
Open Source
Virtual Reality


VRJ Wiki . Juggler . CompilerWarningsVc7 VRJ Wiki webs:
Juggler | VRJPlanning | Main | TWiki | Test
Juggler . { Home | Changes | Index | Search | Go }

Wiki

· Home
· Frequently Asked Questions
· Development
· Team Guide
· Direction
· Status
· Task Tracking
· Compiling VR Juggler
· Building from SVN
· SVN Branches
· Compiler Status

edit menu


Main
· About
· Documentation
· Publications
· Download
· HOWTO
· FAQ
· Discussion Area (Wiki)
· Status
· Contact

Projects
· VR Juggler
· Gadgeteer
· VPR
· Sonix
· JCCL
· Tweek
· PyJuggler
· VRJ.NET

Events
· SIGGRAPH 2004 BoF?
· SIGGRAPH 2003 BoF?
· Virtual Reality Course
· IEEE VR 2003 Course
· SC 2002 Exhibit

Site Search

Google

Sponsors
· Infiscape
· VRAC
· Iowa State University
· SourceForge

Link To Us


Q: I see many warnings when I compile a VR Juggler application using Visual C++ 7 (.NET). What are they?

When I compile a VR Juggler 1.0 application with Visual C++ 7 (either from the command line or from the GUI), I get warnings similar to the following:

c:\vrjuggler-1.0.7.win32-vc7\include\Math\vjVec3.h(207) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
c:\vrjuggler-1.0.7.win32-vc7\include\Math\vjVec4.h(157) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
c:\vrjuggler-1.0.7.win32-vc7\share\samples\ogl\torus\torusApp.cpp(87) : warning C4305: 'initializing' : truncation from 'double' to 'GLfloat'
c:\vrjuggler-1.0.7.win32-vc7\share\samples\ogl\torus\torusApp.cpp(87) : warning C4305: 'initializing' : truncation from 'double' to 'GLfloat'
c:\vrjuggler-1.0.7.win32-vc7\share\samples\ogl\torus\torusApp.cpp(87) : warning C4305: 'initializing' : truncation from 'double' to 'GLfloat'
c:\vrjuggler-1.0.7.win32-vc7\share\samples\ogl\torus\torusApp.cpp(119) : warning C4244: '=' : conversion from 'double' to 'GLfloat', possible loss of data
c:\vrjuggler-1.0.7.win32-vc7\share\samples\ogl\torus\torusApp.cpp(120) : warning C4244: '=' : conversion from 'double' to 'GLfloat', possible loss of data
c:\vrjuggler-1.0.7.win32-vc7\share\samples\ogl\torus\torusApp.cpp(127) : warning C4244: '=' : conversion from 'double' to 'GLfloat', possible loss of data
c:\vrjuggler-1.0.7.win32-vc7\share\samples\ogl\torus\torusApp.cpp(128) : warning C4244: '=' : conversion from 'double' to 'GLfloat', possible loss of data
c:\vrjuggler-1.0.7.win32-vc7\share\samples\ogl\torus\torusApp.cpp(135) : warning C4244: '=' : conversion from 'double' to 'GLfloat', possible loss of data
c:\vrjuggler-1.0.7.win32-vc7\share\samples\ogl\torus\torusApp.cpp(136) : warning C4244: '=' : conversion from 'double' to 'GLfloat', possible loss of data
torus.cpp
c:\vrjuggler-1.0.7.win32-vc7\include\Math\vjVec3.h(207) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
c:\vrjuggler-1.0.7.win32-vc7\include\Math\vjVec4.h(157) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
Linking...
LINK : LNK6004: torus.exe not found or not built by the last incremental link; performing full link

Do I need to be concerned about the warnings?

When I try to run an application, I see these warnings, and then the applications exits:

'torus.exe': Loaded 'C:\vrjuggler-1.0.7.win32-vc7\share\samples\ogl\torus\torus.exe', Symbols loaded.
'torus.exe': Loaded 'C:\WINNT\system32\NTDLL.DLL', Cannot find or open a required DBG file.
'torus.exe': Loaded 'C:\WINNT\system32\comctl32.dll', Cannot find or open a required DBG file.
'torus.exe': Loaded 'C:\WINNT\system32\GDI32.DLL', Cannot find or open a required DBG file.
'torus.exe': Loaded 'C:\WINNT\system32\KERNEL32.DLL', Cannot find or open a required DBG file.
'torus.exe': Loaded 'C:\WINNT\system32\USER32.DLL', Cannot find or open a required DBG file.
'torus.exe': Loaded 'C:\WINNT\system32\ADVAPI32.DLL', Cannot find or open a required DBG file.
'torus.exe': Loaded 'C:\WINNT\system32\rpcrt4.dll', Cannot find or open a required DBG file.
'torus.exe': Loaded 'C:\WINNT\system32\ws2_32.dll', Cannot find or open a required DBG file.
'torus.exe': Loaded 'C:\WINNT\system32\msvcrt.dll', No symbols loaded.
'torus.exe': Loaded 'C:\WINNT\system32\ws2help.dll', Cannot find or open a required DBG file.
'torus.exe': Loaded 'C:\WINNT\system32\OPENGL32.DLL', Cannot find or open a required DBG file.
'torus.exe': Loaded 'C:\WINNT\system32\glu32.dll', Cannot find or open a required DBG file.
'torus.exe': Loaded 'C:\WINNT\system32\ddraw.dll', Cannot find or open a required DBG file.
'torus.exe': Loaded 'C:\WINNT\system32\dciman32.dll', Cannot find or open a required DBG file.
The program '[1228] torus.exe: Native' has exited with code 1 (0x1).

What is wrong?

A: The warnings from the compiler are normal. When running the application, you have to specify what configuration files to load or else the application will exit with error status.

Visual C++ warns about a lot of things that other compilers (GCC and MIPSpro at least) do not. We try to fix as many warnings as we can, but some still slip through. Loss-of-data warnings do not appear to cause any problems, so you do not have to worry about them.

The warnings regarding the DLLs in C:\WINNT\system32 are "normal" for a VR Juggler 1.0 application. They do not indicate that the application will fail to run. However, the error stating that the application exited with error code 1 indicates that you did probably did not specify any configuration files before running the application. Chapter 4 in the VR Juggler Getting Started Guide explains how to do this in the Visual Studio IDE. Use the links below for quick access:

Back to: LiveFaq

FaqForm
FaqTopic: Compiling
ShortQuestion: What are these warnings when compiling an application with Visual C++ 7?


Topic CompilerWarningsVc7 . { Edit | Attach | Ref-By | Printable | Diffs | r1.3 | > | r1.2 | > | r1.1 | More }

Copyright © 1999-2008 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding VRJ Wiki? Send feedback
Revision r1.3 - 20 Aug 2003 - 15:09 - PatrickHartling Copyright © 1999-2008 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding VRJ Wiki? Send feedback
Juggler.CompilerWarningsVc7 moved from Juggler.WarningsandErrors on 20 Aug 2003 - 15:05 by PatrickHartling - put it back




VR Juggler Logo
Site contents © Copyright 1998–2005 Iowa State University and released under the GPL.
Harvesting email addresses from this page for commercial activities is prohibited.
Contact: Webmaster | Write Us
SOURCE REPOSITORY,
BUGS, FORUMS
HOSTED BY:
SourceForge Home