当前位置:网站首页>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}.
边栏推荐
- Find a benchmark comrade in arms | a million level real-time data platform, which can be used for free for life
- What is needed to develop a domestic arm intelligent edge computing gateway
- Assets, vulnerabilities, threats and events of the four elements of safe operation
- 删除有序链表中重复的元素-II
- [AUTOSAR 11 communication related mechanism]
- excel IF公式判断两列是否相同
- Foundations of data science is free to download
- Inversion de l'intervalle spécifié dans la liste des liens
- Meibeer company is called "Manhattan Project", and its product name is related to the atomic bomb, which has caused dissatisfaction among Japanese netizens
- Solve the cache problem of reactnative using WebView
猜你喜欢

Androd Gradle 对其使用模块依赖的替换

What is needed to develop a domestic arm intelligent edge computing gateway

leetcode:701. 二叉搜索树中的插入操作【bst的插入】

matlab 多普勒效应产生振动信号和处理

Detailed explanation of Q-learning examples of reinforcement learning

1696C. Fishingprince Plays With Array【思维题 + 中间状态 + 优化存储】

Machine learning terminology

excel IF公式判断两列是否相同

无向图的割点
![[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)
随机推荐
The arm core board / development board of Feiling equipped with Ti am62x made its debut in embedded world 2022
Data analysis, thinking, law breaking and professional knowledge -- analysis method (I)
Foundations of data science is free to download
Esp32 simple speed message test of ros2 (limit frequency)
excel表格计算时间日期的差值,并转化为分钟数
Mongodb common commands of mongodb series
Kivy教程大全之 创建您的第一个kivy程序 hello word(教程含源码)
2022 coal mine gas drainage examination question bank and coal mine gas drainage examination questions and analysis
安全运营四要素之资产、脆弱性、威胁和事件
[love crash] neglected details of gibaro
Embrace the safety concept of platform delivery
[untitled]
leetcode:871. Minimum refueling times [Pat has done before + maximum stacking + greed]
【C语言】分支和循环语句(上)
看疫情之下服装企业如何顺势而为
2022 cable crane driver examination registration and cable crane driver certificate examination
按键精灵打怪学习-自动回城路线的判断
[system analyst's road] Chapter V double disk software engineering (development model development method)
Leetcode 6103 - minimum fraction to delete an edge from the tree
matlab 多普勒效应产生振动信号和处理