undefined reference to <function name=""> in the same project file

时间:2016-07-11 19:49:09

标签: c

I'm using codeblocks IDE and I don't know what is the problem.

I tried making the variables global but it still doesn't work.

1 个答案:

答案 0 :(得分:3)

The problem is in the function name. Calculate_area has a capital 'C' in its function declaration name, but not in the prototype declaration.

Change your function declaration at line 31 with:

unsigned long calculate_area(unsigned long side);