现在我可以通过使用提供的make文件成功编译,现在我想将项目编译为dll文件,我应该如何修改make文件以便我可以在windows .net框架中使用dll文件?我希望有一个.net DLL(不只是一个win32 dll)。
make文件是:
default: all
# -------------------------------------------------------------------
# Change the path to Z3 4.1.1 accordingly
# The directory indicated by this path should contain "lib" and "bin"
# e.g. "/home/z3_src_4.1.1"
# "/home/work/tool/z3/z3_src_4.1.1"
# -------------------------------------------------------------------
Z3_path = ../z3
JUNK = S3
SOURCE = strTheory.cpp testMain.cpp
INCLUDE = $(Z3_path)/lib
LIB = $(Z3_path)/bin/external
all: $(SOURCE)
g++ -std=c++14 -O3 -fopenmp -static -I$(INCLUDE) -L$(LIB) $(SOURCE) -lz3 -lrt -o S3 -Wall
@echo ""
clean:
rm -f $(JUNK)
答案 0 :(得分:-1)
在谷歌搜索"在Linux上交叉编译器"。这个问题已经多次问过了