I'm trying to compile a project in Unix but keep getting the following errors. I have tried compiling in visual studio but am not seeing the same thing.. any advice?
main.o: In function `Median(int*, unsigned long)':
main.cpp:(.text+0xa0): multiple definition of `Median(int*, unsigned long)'
make
g++47 -std=c++11 -Wall -Wextra -I. -I/home/courses/cop3330p/LIB/cpp -ostats.x st ats.o main.o
main.o: In function `Mean(int const*, unsigned long)':
main.cpp:(.text+0x0): multiple definition of `Mean(int const*, unsigned long)'
stats.o:stats.cpp:(.text+0x0): first defined here
main.o: In function `Median(int*, unsigned long)':
main.cpp:(.text+0xa0): multiple definition of `Median(int*, unsigned long)'
stats.o:stats.cpp:(.text+0xa0): first defined here
stats.o: In function `Median(int*, unsigned long)':
stats.cpp:(.text+0xde): undefined reference to `Sort(int*, unsigned long)'
main.o: In function `Median(int*, unsigned long)':
main.cpp:(.text+0xde): undefined reference to `Sort(int*, unsigned long)'
collect2: error: ld returned 1 exit status
make: *** [stats.x] Error 1