当前位置:网站首页>LDC Build Shared Library
LDC Build Shared Library
2022-07-03 01:18:00 【Fqbqrr】
module dimedll;
export void testFunc() {
// Avec seulement`-fvisibility=hidden`Temps de compilation,Besoinexport
import std.stdio;
writeln("This is from dll");
}
Avecldc2 -shared dimedll.d
Générerlib/dll
.
import dimedll : testFunc;
pragma(lib, "dimedll");
void main() {
import std.stdio;
writeln("Construireime");
testFunc();
}
Avecldc2 -link-defaultlib-shared dime.d
Bande génératricedimedll.dll
Deexe
Posix
La différence entre,Pas avecpragma(lib)
,Tu vas l'utiliser.-L-ldimedll
Lien verslibdimedll.{so,dylib}
.
边栏推荐
- 正确甄别API、REST API、RESTful API和Web Service之间的异同
- excel表格计算时间日期的差值,并转化为分钟数
- Linear programming of mathematical modeling (including Matlab code)
- [shutter] animation animation (shutter animation type | the core class of shutter animation)
- 攻克哈希的基本概念与实现
- 12_ Implementation of rolling automatic video playback effect of wechat video number of wechat applet
- Basic concept and implementation of overcoming hash
- 【FPGA教程案例6】基于vivado核的双口RAM设计与实现
- ThinkPHP+Redis实现简单抽奖
- 按键精灵打怪学习-自动寻路回打怪点
猜你喜欢
基本远程连接工具Xshell
leetcode:701. Insertion in binary search tree [BST insertion]
leetcode:701. 二叉搜索树中的插入操作【bst的插入】
JDBC courses
2022.2.14 resumption
软考信息系统项目管理师_历年真题_2019下半年错题集_上午综合知识题---软考高级之信息系统项目管理师053
【C语言】分支和循环语句(上)
拥抱平台化交付的安全理念
Matlab saves the digital matrix as geospatial data, and the display subscript index must be of positive integer type or logical type. Solve the problem
用Go+绘制爱心给心爱的她表白
随机推荐
软考信息系统项目管理师_历年真题_2019下半年错题集_上午综合知识题---软考高级之信息系统项目管理师053
What is needed to develop a domestic arm intelligent edge computing gateway
Understanding and distinguishing of some noun concepts in adjustment / filtering
1696C. Fishingprince Plays With Array【思维题 + 中间状态 + 优化存储】
[C language] branch and loop statements (Part 1)
MySQL foundation 05 DML language
Mongodb common commands of mongodb series
Meibeer company is called "Manhattan Project", and its product name is related to the atomic bomb, which has caused dissatisfaction among Japanese netizens
[flutter] icons component (load the built-in icon of flutter | display the material design icon completely)
【系统分析师之路】第五章 复盘软件工程(开发模型开发方法)
Delete duplicate elements in the ordered linked list -ii
Kivy教程大全之 创建您的第一个kivy程序 hello word(教程含源码)
MySQL基础用法02
2022 cable crane driver examination registration and cable crane driver certificate examination
[自我管理]时间、精力与习惯管理
The industrial scope of industrial Internet is large enough. The era of consumer Internet is only a limited existence in the Internet industry
Linear programming of mathematical modeling (including Matlab code)
[shutter] image component (configure local GIF image resources | load placeholder with local resources)
Key wizard hit strange learning - automatic path finding back to hit strange points
MongoDB系列之MongoDB常用命令