Re: add/assign problem, part 2.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



DCH writes:
 > Hi David,
 > 
 > I think you've got a coding error, not a compiler error.  Make sure 
 > you're not using any optimizations (i.e. no -01,2 or 3 switches) as 
 > these switches can often "magnify" errors such as the one you're 
 > getting.  Obviously it's not a solution to just leave optimization 
 > off, but it might help you track down where the problem is.
 > 
 > I haven't actually compiled up your program, but immediately alarm 
 > bells are ringing when I see things like
 > 
 > a = *(vec + i)

It's just a nonstandard way to write vec[i].  I mean, it's weird, but
it's not actually wrong.  :-)

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux