Skip to content

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

Open
drepram wants to merge 1 commit into
prsyahmi:masterfrom
forkpile:update-makefile
Open

Replaced g++ with g++-9#2
drepram wants to merge 1 commit into
prsyahmi:masterfrom
forkpile:update-makefile

Conversation

@drepram

@drepram drepram commented Dec 16, 2019

Copy link
Copy Markdown

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

wit543 commented Apr 24, 2020

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants