当前位置:网站首页>d. LDC build shared library
d. LDC build shared library
2022-07-03 01:18:00 【fqbqrr】
module dimedll;
export void testFunc() {
// Just use `-fvisibility=hidden` Compile time , need export
import std.stdio;
writeln("This is from dll");
}
use ldc2 -shared dimedll.d Generate lib/dll.
import dimedll : testFunc;
pragma(lib, "dimedll");
void main() {
import std.stdio;
writeln(" structure ime");
testFunc();
}
use ldc2 -link-defaultlib-shared dime.d Generative band dimedll.dll Of exePosix The difference is , Not with pragma(lib), Do you want us to use -L-ldimedll Link to libdimedll.{so,dylib}.
边栏推荐
- 【系统分析师之路】第五章 复盘软件工程(开发模型开发方法)
- Data analysis, thinking, law breaking and professional knowledge -- analysis method (I)
- MongoDB系列之MongoDB常用命令
- 【FPGA教程案例6】基于vivado核的双口RAM设计与实现
- kivy教程之在 Kivy App 中使用 matplotlib 的示例
- 1038 Recover the Smallest Number
- 【第29天】给定一个整数,请你求出它的因子数
- 链表中的节点每k个一组翻转
- (C language) data storage
- 强化学习 Q-learning 实例详解
猜你喜欢

电话网络问题

【C语言】指针与数组笔试题详解

Detailed explanation of Q-learning examples of reinforcement learning

异步、郵件、定時三大任務

Win10 can't be installed in many ways Problems with NET3.5

MySQL基础用法02

1696C. Fishingprince Plays With Array【思维题 + 中间状态 + 优化存储】
![[flutter] icons component (load the built-in icon of flutter | display the material design icon completely)](/img/f5/3ec22f1480227f33a1c8ac457155ed.jpg)
[flutter] icons component (load the built-in icon of flutter | display the material design icon completely)

2022.2.14 resumption

【FH-GFSK】FH-GFSK信号分析与盲解调研究
随机推荐
MySQL --- 数据库查询 - 条件查询
465. 最优账单平衡 DFS 回溯
2022.2.14 resumption
[shutter] image component (configure local GIF image resources | load placeholder with local resources)
Appuyez sur l'apprentissage de l'esprit de frappe - reconnaissance des coordonnées de fond multithreadées
按键精灵打怪学习-回城买药加血
【FH-GFSK】FH-GFSK信号分析与盲解调研究
Strongly connected components of digraph
Niu Ke swipes questions and clocks in
Now that the teenager has returned, the world's fireworks are the most soothing and ordinary people return to work~
Leetcode 2097 - Legal rearrangement of pairs
[自我管理]时间、精力与习惯管理
tp6快速安装使用MongoDB实现增删改查
Assets, vulnerabilities, threats and events of the four elements of safe operation
[shutter] animation animation (shutter animation type | the core class of shutter animation)
First hand evaluation of Reza electronics rz/g2l development board
[self management] time, energy and habit management
MySQL基础用法02
【C语言】分支和循环语句(上)
[C language] branch and loop statements (Part 1)