User forums > General (but related to Code::Blocks)

Odd error

(1/1)

supernix:
I keep getting this on compile
O:\CPT-234\Assignment6\main.c|67|undefined reference to `_calcPay2'|
But if you look at the code in question it is:

--- Code: ---calcPay2(hours,rate);
--- End code ---

dje:
Hi,

I think you should learn how to use a compiler/linker...
Howerver, in your case, you probably just need to add the library implementing the calcPay2 function to the linkersettings of your project build options to get rid of this problem.

Dje

Jenna:

--- Quote from: supernix on March 09, 2009, 10:11:20 am ---I keep getting this on compile
O:\CPT-234\Assignment6\main.c|67|undefined reference to `_calcPay2'|
But if you look at the code in question it is:

--- Code: ---calcPay2(hours,rate);
--- End code ---

--- End quote ---

Unrelated to C::B, therefore violating our forum rules.

Topic locked !

Navigation

[0] Message Index

Go to full version