My code works perfectly on my mac but does not compile on linux. I get the compile error
/tmp/ccWcFSEW.o: In function `main':
DroneMap.cpp:(.text.startup+0x22d): undefined reference to `pthread_create'
DroneMap.cpp:(.text.startup+0x262): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
Does anyone have any idea what this error message means or why i am getting it because i cant figure it out.
CXX=g++
CXXFLAGS=-Wall -O3
all: DroneMap
clean:
rm -rf DroneMap