Following the readme for the installation, I'm stuck on point 5. After changing the path of z3, I get different errors when I execute 'make'.
ld: library not found for -lcrt0.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've found this thread that specifies this kind of error. It seems that it's impossible to solve the error since, the use of 'static'. I report the message from the the thread:
This option will not work on Mac OS X unless all libraries (including libgcc.a)
have also been compiled with -static. Since neither a static version of libSystem.dylib
nor crt0.o are provided, this option is not useful to most people.
This is the Makefile that I used.
Z3_path = /Users/mat/z3
JUNK = str
SOURCE = *.cpp
INCLUDE = $(Z3_path)/lib
LIB = $(Z3_path)/bin/external
all: $(SOURCE)
@echo ">> Z3 Source Dir: "$(Z3_path)
@echo ""
g++ -O3 -std=c++11 -I$(INCLUDE) -L$(LIB) $(SOURCE) -lz3 -o str -Wall
@echo ""
clean:
rm -f $(JUNK)