I make a program that has include files(path for include files is right) but keep getting the following linker error.
[Linker Error] Unresolved external 'multiplication(float, float, float)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\MAIN.OBJ
[Linker Error] Unresolved external 'average(float, float, float)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\MAIN.OBJ
[Linker Error] Unresolved external 'operation(float, float, float, float (*)(float, float, float))' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\MAIN.OBJ
can anyone help me?
you never gave your multiplication/average/operation functions any bodies.
Either that or the linker can't find the bodies.
If those functions are in a seperate cpp file, make sure that cpp file is part of your project.
Also make sure the parameter list and return type is exactly the same for both the function prototype and the function body.