Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How to find code error in source given offset in executable

Author: Dann Corbit

Date: 19:25:06 03/07/06

Go up one level in this thread


On March 07, 2006 at 22:19:39, David B Weller wrote:

>That looks good, but ....
>
>Does VC 2005 express NOT work on c ? Because when trying to import my source
>into it, I get 455 errors which make no sense.

It works fine on C.  Probably some very minor thing is needed to make it
recongize the C code (e.g. standard header tweak or something of that nature).
If you mail me your code, I will create a C project and mail the whole ball of
wax back to you.  If you compile in gcc, I doubt that you can debug effectivly
under the VC++ IDE (though I have not tried it -- I debug gcc under ddd and VC++
stuff under visual studio).

One misplaced semicolon can cause all sorts of funny cascading errors in C.

Some compilers will compile this bug without complaint:

enum tagStuff {
one,
two,
three,
four,
five,
six, // The final comma is a BUG
}

without complaint while others will throw a cross-eyed hissy fit (which is fully
within their right).



>eg.,
>
>int c;
>c = 0;
>
>undefined reference to c ??? [oh, ok, 'c' is a figment of my sick imagination]
>
>missing ';' before type [when there is no missing semi-colon within miles]
>
>Clearly, it is too late ... thanks Dann for all your help ... will take this up
>again in the morning ... good night



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.