当前位置:网站首页>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}.
边栏推荐
猜你喜欢

Thank you for being together for these extraordinary two years!
![[flutter] icons component (fluttericon Download Icon | customize SVG icon to generate TTF font file | use the downloaded TTF icon file)](/img/ca/1d2473ae51c59b84864352eb17de94.jpg)
[flutter] icons component (fluttericon Download Icon | customize SVG icon to generate TTF font file | use the downloaded TTF icon file)

FPGA - 7系列 FPGA内部结构之Clocking -04- 多区域时钟
![[shutter] image component (cached_network_image network image caching plug-in)](/img/cc/967ff62c7f82e1c6613b3d0f26bb3e.gif)
[shutter] image component (cached_network_image network image caching plug-in)

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

Basis of information entropy
![[untitled]](/img/fd/f6b90536f10325a6fdeb68dc49c72d.png)
[untitled]

Niu Ke swipes questions and clocks in

Explain the basic concepts and five attributes of RDD in detail

Draw love with go+ to express love to her beloved
随机推荐
kivy教程之在 Kivy App 中使用 matplotlib 的示例
[flutter] icons component (load the built-in icon of flutter | display the material design icon completely)
Telephone network problems
信息熵的基础
【系统分析师之路】第五章 复盘软件工程(开发模型开发方法)
d,ldc构建共享库
MySQL basics 03 introduction to MySQL types
R language uses coin package to apply permutation tests to independence problems (permutation tests, whether response variables are independent of groups, are two numerical variables independent, and
MySQL basic usage 02
Detailed explanation of Q-learning examples of reinforcement learning
1038 Recover the Smallest Number
攻克哈希的基本概念与实现
[love crash] neglected details of gibaro
[AUTOSAR 11 communication related mechanism]
First hand evaluation of Reza electronics rz/g2l development board
不登陆或者登录解决oracle数据库账号被锁定。
Cut point of undirected graph
按键精灵打怪学习-回城买药加血
Find a benchmark comrade in arms | a million level real-time data platform, which can be used for free for life
2022 cable crane driver examination registration and cable crane driver certificate examination