Error 1 error LNK2019: unresolved external symbol "void __cdecl calcCelsius(double)" (?calcCelsius@@YAXN@Z) referenced in function _main

This means that the compiler cannot find the definition of the function calcCelsius that matches the prototype:

void calcCelsius(double); // the "_cdecl" thing is just the default calling convention.

So either you didn't provide a definition for that function, or your definition doesn't match the prototype exactly, or you didn't put the cpp, where that function is defined, on the compiler instruction (i.e. you didn't include it in the compilation of your app).

Thank you so much. That makes sense now.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.