Forum Discussion
Altera_Forum
Honored Contributor
15 years agoC2H. does not recognize functions.
Hi Every time I rightclick and selects the accelerated with ..... menu item, I get this error message: selection is not recognized as a function the text you have selected "(tex...
Altera_Forum
Honored Contributor
15 years agoTry putting the function on the same line as the return type:
int this_is_a_function(int a) { return a*2; } The C2H compiler runs the GCC preprocessor on the C file and then it takes it from there so it probably wasn't expecting the return type to be on a separate line. If that fixes it and you want to keep this style I suggest putting a '\' after the 'int' so that it'll be treated as a single line.