Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

getting error: expected expression before ‘IplImage’ in attempt to create alias for IplImage

Im just basically trying to redifine IplImage so i can call it by a different shorter function name like ii

how do i do it ..I tried every possible combination for what i know....in reference to the beow code:

my .c file

`IplImage* ii(int img)

{ return IplImage img; }`

my .h file

IplImage* ii(int img);

I've tried every combination i could think of (didnt think i should post all my tries) from changing struct to return, int to IplImage to IplImage* ...leaving out the int img

mainly i'm getting this error (if i should post other errors pls let me know....new to S.O.)

expected primary-expression before ‘img’

if some one could let me know of a resource to teach me how to redefine struct calls i/e IplImage* img; I would appreciate it....tried googling but no luck...or if you can tell me how to redefine this alias i can apply that knowledge to my future endeavours, thank you.

click to hide/show revision 2
retagged

getting error: expected expression before ‘IplImage’ in attempt to create alias for IplImage

Im just basically trying to redifine IplImage so i can call it by a different shorter function name like ii

how do i do it ..I tried every possible combination for what i know....in reference to the beow code:

my .c file

`IplImage* ii(int img)

{ return IplImage img; }`

my .h file

IplImage* ii(int img);

I've tried every combination i could think of (didnt think i should post all my tries) from changing struct to return, int to IplImage to IplImage* ...leaving out the int img

mainly i'm getting this error (if i should post other errors pls let me know....new to S.O.)

expected primary-expression before ‘img’

if some one could let me know of a resource to teach me how to redefine struct calls i/e IplImage* img; I would appreciate it....tried googling but no luck...or if you can tell me how to redefine this alias i can apply that knowledge to my future endeavours, thank you.