当前位置:网站首页>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 exe
Posix
The difference is , Not with pragma(lib)
, Do you want us to use -L-ldimedll
Link to libdimedll.{so,dylib}
.
边栏推荐
- Trois tâches principales: asynchrone, courrier et timing
- excel表格计算时间日期的差值,并转化为分钟数
- d,ldc构建共享库
- MySQL basic usage 02
- 【无标题】
- [AUTOSAR 11 communication related mechanism]
- excel IF公式判断两列是否相同
- 异步、邮件、定时三大任务
- Meibeer company is called "Manhattan Project", and its product name is related to the atomic bomb, which has caused dissatisfaction among Japanese netizens
- MySQL foundation 05 DML language
猜你喜欢
寻找标杆战友 | 百万级实时数据平台,终身免费使用
Merge K sorted linked lists
Thank you for being together for these extraordinary two years!
MySQL基础用法02
1696C. Fishingprince Plays With Array【思维题 + 中间状态 + 优化存储】
excel表格计算时间日期的差值,并转化为分钟数
Data analysis, thinking, law breaking and professional knowledge -- analysis method (I)
Basis of information entropy
Leetcode 6103 - minimum fraction to delete an edge from the tree
软考信息系统项目管理师_历年真题_2019下半年错题集_上午综合知识题---软考高级之信息系统项目管理师053
随机推荐
Solve the cache problem of reactnative using WebView
Canvas drawing -- bingdd
每日一题之干草堆的移动
leetcode:701. 二叉搜索树中的插入操作【bst的插入】
【无标题】
电话网络问题
kivy教程之在 Kivy App 中使用 matplotlib 的示例
【FH-GFSK】FH-GFSK信号分析与盲解调研究
matlab查找某一行或者某一列在矩阵中的位置
MySQL foundation 06 DDL
465. DFS backtracking of optimal bill balance
MySQL --- 数据库查询 - 条件查询
Cut point of undirected graph
leetcode 6103 — 从树中删除边的最小分数
Strongly connected components of digraph
[shutter] animation animation (shutter animation type | the core class of shutter animation)
Draw love with go+ to express love to her beloved
d,ldc构建共享库
Merge K sorted linked lists
Kivy教程大全之 创建您的第一个kivy程序 hello word(教程含源码)