danieldelex
New member
Hello
I'm currently facing issues with my C++ project; where I keep encountering 'undefined reference to calculateSum(int, int)' errors during the linking phase. I've double-checked my header files and source files; but I still can't pinpoint the problem.
I'm using GCC 9.3. The error occurs when I try to link the function calculateSum in math_functions.cpp.
I've ensured that all required libraries are included in my project settings; particularly the standard math library. I have checked https://stackoverflow.com/questions/46920150/calling-c-function-from-c-code-linkage-errors-using-gcc-for-linking-powerapps reference guide but still need help.
Can anyone provide guidance on common causes of this error & effective troubleshooting steps?
Any help would be greatly appreciated!
Thank you!
I'm currently facing issues with my C++ project; where I keep encountering 'undefined reference to calculateSum(int, int)' errors during the linking phase. I've double-checked my header files and source files; but I still can't pinpoint the problem.
I'm using GCC 9.3. The error occurs when I try to link the function calculateSum in math_functions.cpp.
I've ensured that all required libraries are included in my project settings; particularly the standard math library. I have checked https://stackoverflow.com/questions/46920150/calling-c-function-from-c-code-linkage-errors-using-gcc-for-linking-powerapps reference guide but still need help.
Can anyone provide guidance on common causes of this error & effective troubleshooting steps?
Any help would be greatly appreciated!
Thank you!