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
|