prsyahmi / v380

Extract h264 from V380 camera
MIT License
84 stars 32 forks source link

Replaced g++ with g++-9 #2

Open drepram opened 4 years ago

drepram commented 4 years ago

I tried compiling with g++ and it simply didn't work. Replaced it with g++-9 and the compile was successful.

My machine is Mac OS X. My gcc --version:

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
wit543 commented 4 years ago

I also have the same problem but solved it by adding '-std=gnu++11' flag in Makefile.

output: v380.o UtlSocket.o UtlDiscovery.o aes.o
    g++ v380.o UtlSocket.o UtlDiscovery.o aes.o -o v380

v380.o: v380.cpp stdafx.h
    g++  -std=gnu++11 -c v380.cpp

UtlSocket.o: UtlSocket.cpp UtlSocket.h
    g++  -std=gnu++11 -c UtlSocket.cpp

UtlDiscovery.o: UtlDiscovery.cpp UtlDiscovery.h
    g++  -std=gnu++11 -c UtlDiscovery.cpp

aes.o: aes.cpp aes.h
    g++  -std=gnu++11 -c aes.cpp

clean:
    rm *.o v380