当前位置:网站首页>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}.
边栏推荐
- 正确甄别API、REST API、RESTful API和Web Service之间的异同
- Assets, vulnerabilities, threats and events of the four elements of safe operation
- RISA rz/g2l processor introduction | frame diagram | power consumption | schematic diagram and hardware design guide
- [love crash] neglected details of gibaro
- Key wizard play strange learning - front desk and Intranet send background verification code
- 按键精灵打怪学习-自动回城路线的判断
- 【第29天】给定一个整数,请你求出它的因子数
- 按鍵精靈打怪學習-多線程後臺坐標識別
- excel去除小数点后面的数据,将数字取整
- Machine learning terminology
猜你喜欢

excel表格计算时间日期的差值,并转化为分钟数

MySQL foundation 04 MySQL architecture

MySQL --- 数据库查询 - 基本查询

12_微信小程序之微信视频号滚动自动播放视频效果实现

Draw love with go+ to express love to her beloved

强化学习 Q-learning 实例详解
![[Arduino experiment 17 L298N motor drive module]](/img/e2/4511eaa942e4a64c8ca2ee70162785.jpg)
[Arduino experiment 17 L298N motor drive module]
![[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)

MySQL基础用法02

How wide does the dual inline for bread board need?
随机推荐
Correctly distinguish the similarities and differences among API, rest API, restful API and web service
How to convert Quanzhi a40i/t3 to can through SPI
Arduino DY-SV17F自动语音播报
Machine learning terminology
12_微信小程序之微信视频号滚动自动播放视频效果实现
Strongly connected components of digraph
JDBC courses
Specified interval inversion in the linked list
465. DFS backtracking of optimal bill balance
ROS2之ESP32简单速度消息测试(极限频率)
[shutter] animation animation (shutter animation type | the core class of shutter animation)
按键精灵打怪学习-多线程后台坐标识别
Several cases of recursive processing organization
Database SQL language 02 connection query
dotConnect for PostgreSQL数据提供程序
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
Key wizard play strange learning - multithreaded background coordinate recognition
1038 Recover the Smallest Number
【FH-GFSK】FH-GFSK信号分析与盲解调研究
[C language] branch and loop statements (Part 1)