Quote:
I tried debugging and I just cant figure out what is missing there.
No, you didn't.
Debugging comes once your program has compiled cleanly - until that happens no executable file is produced, and so you can't debug anything!
What you have there is a syntax error, which is the compiler telling you you got it wrong and exactly where. So look at the line the error is reported on - the compiler error will tell you the file name and line number - and compare that with yoru function definition:
printf("%lf", getDistance(createpoint(2.0, -3.0)), createpoint(-4.0, 5.0));
double getDistance(Point a, Point b){
getDistance
requires two parameters, and you have teh close bracket in teh wrong place, so you are calling it with one. Try this:
printf("%lf", getDistance(createpoint(2.0, -3.0), createpoint(-4.0, 5.0)));
And your error will go away.