Re: argc - cant access memory

Nick Roberts
2007-07-09T22:34:26Z

> > I recently compiled and executed an opengl programming guide (redbook)
> > example, hello.c, successfully. However, when I try to debug it under
> > GUD I get
> >
> > ,----
> > | #0 main (argc=Cannot access memory at address 0x2d
> > | ) at hello.c:93
> > `----
>
> The code you labeled "hello.c" has no line 93. Are you sure you're
> debugging the program you intended to?

Aside from that, I think it just means that the arguments have been optimised
away. I think current GCC does this now even if the user doesn't specify
optimisation. It doesn't stop you from debugging does it?

--
Nick http://www.inet.net.nz/~nickrob