Re: C has not been declared!
Juergen Luethje wrote:
>
> Vidi wrote:
>
> > I am trying to make a small program to dispalay an image onto the screen,
> > but
> > when I run it, it doesn't show the image and the ERR file says:
> >
> > C:\euphoria\BIN\Stuff\ex.err:1
> > C has not been declared
> > C:\euphoria\BIN\Stuff\ex.err:1
> > ^
> > my code is:
> > }}}
<eucode>
> > include graphics.e
> > include image.e
> >
> > atom gm
> > sequence graphic1
> >
> > gm = graphics_mode(18)
> > clear_screen()
> > graphic1 = read_bitmap("1.bmp")
> > display_image({40,20},{graphic1[2]})
> > </eucode>
{{{
> >
> > Any ideas why it doesn't work?
>
> I have no idea how this code can produce that error message!
> However,
> display_image({40,20}, graphic1[2])
> should work.
>
> Regards,
> Juergen
My guess is somehow you are trying to execute the ex.err file instead of your
program? Looking at the output it looks like ex.err is somehow trying to read
itself.
--
"Any programming problem can be solved by adding a level of indirection."
--anonymous
"Any performance problem can be solved by removing a level of indirection."
--M. Haertel
"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare
j.
|
Not Categorized, Please Help
|
|