Author Topic: Odd error  (Read 1852 times)

supernix

  • Guest
Odd error
« 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: [Select]
calcPay2(hours,rate);

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: Odd error
« Reply #1 on: March 09, 2009, 10:13:41 am »
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

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Odd error
« Reply #2 on: March 09, 2009, 10:14:36 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: [Select]
calcPay2(hours,rate);

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

Topic locked !