Oct 5, 2013 at 1:40pm UTC
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 Oct 5, 2013 at 1:41pm UTC
Oct 5, 2013 at 1:45pm UTC
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
Oct 5, 2013 at 1:50pm UTC
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.
Oct 5, 2013 at 1:57pm UTC
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
Oct 5, 2013 at 2:06pm UTC
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.