Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

c2h error at bitmap header declaration

[h=2][/h]

Hi, I am trying to accelerate a function func_acc(). However i am getting an error during the c2h compilation. What puzzles me is that the error is triggered at the main() function, not even at the function where i am accelerating.The error is:

../mand_sw.c:112: PARSE ERROR, ../mand_sw.c line 112 column 20

ERROR:

C2H:0: C2H ERROR: "d:/altera/90/nios2eds/components/altera_avalon_c_hardware_accelerator/lex_and_yacc/c2h_cparse.exe" "P:/work/altera_c2h/sw/mandelbrot_sw/Debug/obj/mand_sw.c2h_pre"

And the code at line 112 is:

BITMAPFILEHEADER header; /* Bitmap header */

The error message is hardly helpful. Anybody who knows what is wrong here?

One more thing; the code compiles nicely in the software only implementation.

Thanks!

[/INDENT]
No RepliesBe the first to reply