Re: compiler errors

Tech-Archive recommends: Fix windows errors by optimizing your registry



Z.K. wrote:
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.

<snip>
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


.



Relevant Pages

  • RE: Strange behavior with dynamic code compilation and VS.NET debu
    ... so when I compile with debugging information I get different behavior then ... Maybe we should go back to using lots of write lines instead of the debugger ... >> reference exception is ONLY thrown if the debugger is attached???? ...
    (microsoft.public.dotnet.framework)
  • Re: AWS issue
    ... Debugger for ada is not installed, so I can run the debugger, but the only answer I get is exit code 01. ... So I compile a single file with this function and link with all that stuff. ... At a glance it seems like you are missing -gnat05 in the compile command so you get and Ada95 compiler instead of Ada compiler. ... I've got two problems on AWS, hope there is some aws 2.3 users here. ...
    (comp.lang.ada)
  • Re: Compilator Fortran
    ... To facilitate compilation for the Windowed Debugger ... REM Invoke the debugger if compile and link went ok. ... This will compile, link, and invoke the windowed debugger. ...
    (comp.lang.fortran)
  • Re: unexplainable behaviour - f90 - looking for some tools to help diagnose
    ... using a debugger can help. ... But you should compile again your code with -g option and depending on the previous option used your code can run because of different layout of the datas in memory. ... If it fails (memory fault, segmentation fault) use the where command of the debugger to see where you are in the code.... ... I'm using CVS to store successive versions of my codes, but even if I can see exactly what has changed I do not undestand why I have a memory fault! ...
    (comp.lang.fortran)
  • Re: How to make my own symbol file for VS.NET debugger?
    ... > I made a .map file of my target ocx by CoClassSyms.EXE and it has strange ... and never checked debug info generation from the type library in that article. ... and then closes the DBG file. ... It will be enough to load the DBG file into WinDbg or VC6 debugger. ...
    (microsoft.public.vc.debugger)