Re: compiler errors
- From: "Arnaud Debaene" <adebaene@xxxxxxxxxxxxxxxx>
- Date: Tue, 11 Apr 2006 23:11:34 +0200
Z.K. wrote:
I am new to the Visual Studio.net platform and I was trying to<snip>
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
.
- References:
- compiler errors
- From: Z.K.
- compiler errors
- Prev by Date: Re: How to Debug a Windows Service
- Next by Date: Re: MSVC not linking in "unused" libraries
- Previous by thread: compiler errors
- Next by thread: Re: compiler errors
- Index(es):
Relevant Pages
|