i have a problem compiling a very simple c++ in linux.
Basically i have written ,compiled and run the program in Microsoft visual studio 2008 and it runs flawlessly but the same code on linux doesn't compile.
I tried with geany , codeblocks and the command line but i get the same error every time
the program is consisted by 3 files the main.cpp math.h and math.cpp
the main.cpp is the file tha includes the main function
i get this when i try to compile main.cpp
main.cpp.text+0xa): undefined reference to `menu()'
main.cpp.text+0x83): undefined reference to `square_of_number(double)'
main.cpp.text+0xfe): undefined reference to `sum_of_numbers(double, double)'
main.cpp.text+0x179): undefined reference to `product_of_numbers(double, double)'
and this when i try to compile math.cpp
start.S:115: undefined reference to `main'