TWiki home VRJ Wiki > Juggler > CompilerWarningsVc7 (r1.1 vs. r1.3) VRJ Wiki webs:
Juggler | VRJPlanning | Main | TWiki | Test
Juggler . { Home | Changes | Index | Search | Go }
 <<O>>  Difference Topic CompilerWarningsVc7 (r1.3 - 20 Aug 2003 - PatrickHartling)
Changed:
<
<
[This is not the right forum for this sort of issue. Could you please repost your question to one of the VR Juggler mailing lists? --PH]
>
>

Added:
>
>

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


Changed:
<
<
WHEN TRYING TO COMPILE THE SAMPLE TORUS APPLICATION, I GET THE FOLLOWING WARNINGS:
>
>
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
Line: 23 to 24

LINK : LNK6004: torus.exe not found or not built by the last incremental link; performing full link
Changed:
<
<
AFTER A SUCCESSFUL BUILD, WHEN TRYING TO EXECUTE/DEBUG, THE WINDOW CRASHES AND I GET THIS:
>
>
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.
Line: 44 to 47

The program '[1228] torus.exe: Native' has exited with code 1 (0x1).
Changed:
<
<
I AM RUNNING THIS ON VISUAL STUDIO.NET 7.0. ANY SUGGESTIONS???
>
>
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:


Changed:
<
<
-- AshwinKarudapuram - 18 Aug 2003
>
>
Back to: LiveFaq

META FORM FaqForm  
Changed:
<
<
META FIELD FaqTopic FaqTopic FAQ
META FIELD ShortQuestion ShortQuestion  
>
>
META FIELD FaqTopic FaqTopic Compiling
META FIELD ShortQuestion ShortQuestion What are these warnings when compiling an application with Visual C++ 7?
META TOPICMOVED PatrickHartling? date="1061391937" from="Juggler.WarningsandErrors" to="Juggler.CompilerWarningsVc7"

 <<O>>  Difference Topic CompilerWarningsVc7 (r1.2 - 19 Aug 2003 - PatrickHartling)
Changed:
<
<
-- AshwinKarudapuram - 18 Aug 2003
>
>
[This is not the right forum for this sort of issue. Could you please repost your question to one of the VR Juggler mailing lists? --PH]

WHEN TRYING TO COMPILE THE SAMPLE TORUS APPLICATION, I GET THE FOLLOWING WARNINGS:

Added:
>
>


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'
Line: 19 to 21

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

>
>

AFTER A SUCCESSFUL BUILD, WHEN TRYING TO EXECUTE/DEBUG, THE WINDOW CRASHES AND I GET THIS:

Added:
>
>


'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.
Line: 40 to 42

'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).
Changed:
<
<
>
>

I AM RUNNING THIS ON VISUAL STUDIO.NET 7.0. ANY SUGGESTIONS???

Added:
>
>

-- AshwinKarudapuram - 18 Aug 2003


META FORM FaqForm  
META FIELD FaqTopic FaqTopic FAQ
META FIELD ShortQuestion ShortQuestion  

 <<O>>  Difference Topic CompilerWarningsVc7 (r1.1 - 18 Aug 2003 - AshwinKarudapuram)
Line: 1 to 1
Added:
>
>
-- AshwinKarudapuram - 18 Aug 2003

WHEN TRYING TO COMPILE THE SAMPLE TORUS APPLICATION, I GET THE FOLLOWING WARNINGS:

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

AFTER A SUCCESSFUL BUILD, WHEN TRYING TO EXECUTE/DEBUG, THE WINDOW CRASHES AND I GET THIS:

'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).

I AM RUNNING THIS ON VISUAL STUDIO.NET 7.0. ANY SUGGESTIONS???

META FORM FaqForm  
META FIELD FaqTopic FaqTopic FAQ
META FIELD ShortQuestion ShortQuestion  


Topic CompilerWarningsVc7 . { View | Diffs | r1.3 | > | r1.2 | > | r1.1 | More }
Revision r1.1 - 18 Aug 2003 - 16:20 - AshwinKarudapuram
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