如何在 Ubuntu 中将 c++ 编译为 Windows 的 .net Dll 文件
How to compile c++ to Window's .net Dll file in Ubuntu
现在我可以使用提供的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)
在google中搜索" linux上的交叉编译器"。这个问题已经问过好几次了
在Linux中创建一个库或DLL并在Windows上使用
如何用gcc/g++在Linux上编译Windows ?
相关文章:
- 如何在 64 位 vb.net Windows 应用程序中引用 32 位 dll
- 是否有可能构建面向Linux和Windows的.Net Core C++ / CLI应用程序?
- 我可以在 vb.net Windows 窗体应用程序中使用 COLECONTROLModule 吗?
- 在开始使用 ISOCPP.net C++ 构建 Windows 时遇到问题 (Nuwen)
- Windows 8 WinRT - C++ or C++ .NET?
- 使用Windows生物识别框架或任何其他方法通过.Net访问指纹读取器
- 为什么我想使用托管(C#和.NET)或本机代码进行Windows API开发
- .Net 调用C++在 Windows 10 中间歇性地工作
- 什么是Microsoft Windows SDK for Windows 7和.NET Framework 3.5 SP
- c++ Windows 服务是否比 .Net Windows 服务 更稳定?
- VS2010 WITHOUT.NET中的Windows窗体应用程序
- .NET 4.0在XP上出现未知异常,但在Windows 7上运行良好
- 带有用户名和密码的C++/.net(Framework 2.0)MS SQL数据库windows身份验证
- 如何在 Ubuntu 中将 c++ 编译为 Windows 的 .net Dll 文件
- 如何在Windows formc++中添加本地c++ dll.. NET项目
- 开始在windows上开发c/c++需要什么软件,而不需要cygwin或.net这样的额外工具
- 在 Windows 上检测 .NET 框架
- 在web服务器和.net中的windows应用程序之间进行通信的方法
- Windows . net (c++) SpinWait在Linux和Mac OS X上的等效是什么?
- 从C#中的Windows.NET程序到C++中的Linux程序之间的TCP