v380 icon indicating copy to clipboard operation
v380 copied to clipboard

Replaced g++ with g++-9

Open drepram opened this issue 5 years ago • 1 comments

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

drepram avatar Dec 16 '19 11:12 drepram

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

wit543 avatar Apr 24 '20 20:04 wit543