compiler errors

Z

Z.K.

I am new to the Visual Studio.net platform and I was trying to compile a
program that I downloaded from the net and keep getting a ton of errors. It
looks like it can't find some of the libraries: The list of errors is below:

'Accelerometer.exe': Loaded
'C:\Downloads\Phidgets\Accelerometer\Accelerometer\Debug\Accelerometer.exe',
Symbols loaded.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\NTDLL.DLL', Cannot find or
open a required DBG file.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\phidget20.dll', No symbols
loaded.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\KERNEL32.DLL', Cannot find or
open a required DBG file.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\hid.dll', Cannot find or open
a required DBG file.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\ADVAPI32.DLL', Cannot find or
open a required DBG file.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\rpcrt4.dll', Cannot find or
open a required DBG file.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\SETUPAPI.DLL', Cannot find or
open a required DBG file.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\msvcrt.dll', No symbols
loaded.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\GDI32.DLL', Cannot find or
open a required DBG file.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\USER32.DLL', Cannot find or
open a required DBG file.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\USERENV.DLL', Cannot find or
open a required DBG file.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\ws2_32.dll', Cannot find or
open a required DBG file.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\ws2help.dll', Cannot find or
open a required DBG file.

Debugger:: An unhandled non-continuable exception was thrown during process
load

The program '[320] Accelerometer.e: Native' has exited with code 128 (0x80).


What is a DBG File and how do I set up the compiler to so I won't get these
errors?

Thanks,

Z.K.
 
A

Arnaud Debaene

Z.K. said:
I am new to the Visual Studio.net platform and I was trying to
compile a program that I downloaded from the net and keep getting a
ton of errors. It looks like it can't find some of the libraries:
The list of errors is below:

'Accelerometer.exe': Loaded
'C:\Downloads\Phidgets\Accelerometer\Accelerometer\Debug\Accelerometer.exe',
Symbols loaded.

'Accelerometer.exe': Loaded 'C:\WINNT\system32\NTDLL.DLL', Cannot
find or open a required DBG file.
The program '[320] Accelerometer.e: Native' has exited with code 128
(0x80).


What is a DBG File and how do I set up the compiler to so I won't get
these errors?

The DBG file (which most often are pdb files nowadays) contains the
debugging information (or symbols) necessary to do source code step-by-step
debugging (eg, given the compiled binary, go back to the sources, with line
numbers and all). The debugger is just warning you that it can't find the
symbols for the OS libraries that are loaded in your process. Since it is
highly unlikely that the error comes from the OS, you can ignore those
informations for now.

Now, according to the output you gave, there is no error in your program! It
just exits with code 0x80 when it has done it's job! What it means exactly
depends on the program itself : 0x80 is probably an error code corresponding
to a specific logical error, but it is a design from the program writer, so
we can't say anything for sure wihout the sources.

Your best bet is to put a breakpoint at the beginning of the "main"
function, laucnh the program under debugger (F5), and then run the process
step-by-step under the debugger to understand what happens.

Since it seems that your program is native C++, further questions are more
likely to get answers in microsoft.public.vc.language

Arnaud
MVP - VC
 
M

Marcus Heege

These are not build time errors but debug time messages.

..dbg files are files with debug symbols. They are used by the debugger to
provide better information at debug-time. If you don't debug too deep into
the system it is likely ok for you to live without debug symbols for the
system DLLs. If you really need them, you can install them explicitly or on
demand from a so called symbol server.

Marcus Heege
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top