当前位置:网站首页>d,ldc構建共享庫
d,ldc構建共享庫
2022-07-03 01:18:00 【fqbqrr】
module dimedll;
export void testFunc() {
// 僅用`-fvisibility=hidden`編譯時,需要export
import std.stdio;
writeln("This is from dll");
}
用ldc2 -shared dimedll.d生成lib/dll.
import dimedll : testFunc;
pragma(lib, "dimedll");
void main() {
import std.stdio;
writeln("構建ime");
testFunc();
}
用ldc2 -link-defaultlib-shared dime.d生成帶dimedll.dll的exePosix中區別是,不是用pragma(lib),你要用-L-ldimedll鏈接至libdimedll.{so,dylib}.
边栏推荐
- 【FH-GFSK】FH-GFSK信号分析与盲解调研究
- FPGA - 7 Series FPGA internal structure clocking -04- multi area clock
- Foundations of data science is free to download
- [AUTOSAR XIII NVM]
- Key wizard play strange learning - multithreaded background coordinate recognition
- ThinkPHP+Redis实现简单抽奖
- [day 29] given an integer, please find its factor number
- Leetcode 2097 - Legal rearrangement of pairs
- How wide does the dual inline for bread board need?
- [AUTOSAR eight OS]
猜你喜欢

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

MySQL basic usage 02

Basis of information entropy
![[love crash] neglected details of gibaro](/img/d6/baa4b5185ddaf88f3df71a94a87ee2.jpg)
[love crash] neglected details of gibaro

The arm core board / development board of Feiling equipped with Ti am62x made its debut in embedded world 2022

How to convert Quanzhi a40i/t3 to can through SPI
![[C language] branch and loop statements (Part 1)](/img/47/6efcc59bd26e26f66c698635c26c8b.png)
[C language] branch and loop statements (Part 1)

Leetcode 6103 - minimum fraction to delete an edge from the tree

Rk3568 development board evaluation (II): development environment construction

每日一题之干草堆的移动
随机推荐
Assets, vulnerabilities, threats and events of the four elements of safe operation
[C language] branch and loop statements (Part 1)
Meibeer company is called "Manhattan Project", and its product name is related to the atomic bomb, which has caused dissatisfaction among Japanese netizens
【FH-GFSK】FH-GFSK信号分析与盲解调研究
Understanding and distinguishing of some noun concepts in adjustment / filtering
按键精灵打怪学习-多线程后台坐标识别
【FPGA教程案例6】基于vivado核的双口RAM设计与实现
MySQL foundation 07-dcl
2022 Jiangxi Provincial Safety Officer B certificate reexamination examination and Jiangxi Provincial Safety Officer B certificate simulation examination question bank
FPGA - 7 Series FPGA internal structure clocking -04- multi area clock
对非ts/js文件模块进行类型扩充
Trois tâches principales: asynchrone, courrier et timing
The difference between relational database and non relational database
Explain the basic concepts and five attributes of RDD in detail
Reading and writing speed of Reza rz/g2l arm development board storage and network measurement
FPGA - 7系列 FPGA内部结构之Clocking -04- 多区域时钟
Mongodb common commands of mongodb series
【FPGA教程案例5】基于vivado核的ROM设计与实现
Key wizard hit strange learning - automatic path finding back to hit strange points
leetcode:871. Minimum refueling times [Pat has done before + maximum stacking + greed]