-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkf6.html
More file actions
15 lines (15 loc) · 6.99 KB
/
Copy pathmkf6.html
File metadata and controls
15 lines (15 loc) · 6.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<html><head><meta charset="utf-8" /><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor/dist/index.css"/><script src="https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor/dist/js/i18n/zh_CN.js"></script><script src="https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor/dist/method.min.js"></script></head><body style="width: 1075px;"><div class="vditor-reset" id="preview"><h1 id="1---make编译动态链接库"><em><em>1 . make编译动态链接库</em></em><a id="vditorAnchor-1---make编译动态链接库" class="vditor-anchor" href="#1---make编译动态链接库"><svg viewBox="0 0 16 16" version="1.1" width="16" height="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a></h1>
<img src="../global-src/fordll.png" alt="">
<img src="../global-src/link.png" alt="">
<h2 id="命令">命令<a id="vditorAnchor-命令" class="vditor-anchor" href="#命令"><svg viewBox="0 0 16 16" version="1.1" width="16" height="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a></h2>
<p>g++ -shared -fPIC name.cpp -o name.dll</p>
<h2 id="使用">使用<a id="vditorAnchor-使用" class="vditor-anchor" href="#使用"><svg viewBox="0 0 16 16" version="1.1" width="16" height="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a></h2>
<p>g++ main.cpp name.dll -o main.exe</p>
<h2 id="好处">好处<a id="vditorAnchor-好处" class="vditor-anchor" href="#好处"><svg viewBox="0 0 16 16" version="1.1" width="16" height="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a></h2>
<p>使用动态链接库的程序,你可以在修改动态链接库对应源代码时,只需要重新编译该代码就行,这样会更省时</p>
<h1 id="2---静态链接库"><em><em>2 . 静态链接库</em></em><a id="vditorAnchor-2---静态链接库" class="vditor-anchor" href="#2---静态链接库"><svg viewBox="0 0 16 16" version="1.1" width="16" height="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a></h1>
<img src="../global-src/sta.png" alt="">
<h2 id="命令-">命令<a id="vditorAnchor-命令-" class="vditor-anchor" href="#命令-"><svg viewBox="0 0 16 16" version="1.1" width="16" height="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a></h2>
<h4 id="g----c-alib-cpp--o-alib-o">g++ -c alib.cpp -o alib.o<a id="vditorAnchor-g----c-alib-cpp--o-alib-o" class="vditor-anchor" href="#g----c-alib-cpp--o-alib-o"><svg viewBox="0 0 16 16" version="1.1" width="16" height="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a></h4>
<h4 id="ar--r-alib-lib-alib-o">ar -r alib.lib alib.o<a id="vditorAnchor-ar--r-alib-lib-alib-o" class="vditor-anchor" href="#ar--r-alib-lib-alib-o"><svg viewBox="0 0 16 16" version="1.1" width="16" height="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a></h4>
</div><script> const previewElement = document.getElementById('preview'); Vditor.setContentTheme('idea-light', 'https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor/dist/css/content-theme'); Vditor.codeRender(previewElement); Vditor.highlightRender({"enable":true,"lineNumber":false,"style":"dracula"}, previewElement, 'https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor'); Vditor.mathRender(previewElement, { cdn: 'https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor',math: {"engine":"KaTeX","inlineDigit":true,"macros":{}}}); Vditor.mermaidRender(previewElement, 'https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor', 'light'); Vditor.flowchartRender(previewElement, 'https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor'); Vditor.graphvizRender(previewElement, 'https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor'); Vditor.chartRender(previewElement, 'https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor', 'light'); Vditor.mindmapRender(previewElement, 'https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor', 'light'); Vditor.abcRender(previewElement, 'https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor'); Vditor.mediaRender(previewElement); Vditor.speechRender(previewElement); </script> <script src="https://cdn.jsdelivr.net/gh/shuzijun/[email protected]/src/main/resources/vditor/dist/js/icons/ant.js"></script></body></html>