Error

Hi,

I am trying to compile my programme and am getting these messages:

[Linker error] C:\Users\Computa\AppData\Local\Temp\cccyJKCZ.o:Menu - Convert Temperature.cpp:(.text+0x6f): undefined reference to `convert_to_celsius(float, float)'

ld returned 1 exit status

Any idea what is happening?

**the programme I am running is on my G drive - not sure if that gives any clues**
Last edited on
closed account (o3hC5Di1)
Hi,

Is convert_to_celcius() defined in a different file or shared library?
Did you include that file / library in the compilation?

All the best,
NwN
It is defined in the same programme. Going to take a look at my code as it probably has something to do with my naming or the things I have commented out.
closed account (o3hC5Di1)
Hi there,

If you could share your code with us (please wrap it in [cod[/code]-tags) we could help you look.

All the best,
NwN
Hi Nwn,

I think it was caused when I copy and pasted my previous block of code and had not change all the variable/function names.

However, I would have expected a different error message but have changed a few function/variable names and it seems to be working.
Topic archived. No new replies allowed.