I'm trying to implement a function about drawing a circle
void drawCircle(const circleType * circle)
Above is displayed how it's defined in the header file. I'm trying to use it in a program:
drawCircle(circle);
The circle is a struct (circleType) of 3 variables, each and every one defined before calling the procedure. Am I doing something obviously wrong? The error I'm getting is:
320 Cannot assign 'circle' to 'circle'
307 Illegal typecast 'can not convert to pointer' ''
IDE is mikroC PRO for AVR (v4.60.0.0). I aren't sure of the compiler included. Should also mention that I only get the error when optimization is set to 0 (otherwise, I simply get 'finished with errors' without any error message)