久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何使用 Code::Blocks 鏈接到庫?

How do I link to a library with Code::Blocks?(如何使用 Code::Blocks 鏈接到庫?)
本文介紹了如何使用 Code::Blocks 鏈接到庫?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

C++ GUI 教程:對 TextOut 的未定義引用

我有同樣的問題,但我是編程和 Code::Blocks 的新手,我想使用 GDI32 庫.我該如何安裝它?我很困惑,因為我可以使用 windows.h 標頭,但是諸如 TextOut 之類的某些功能不可用.

I have the same problem, but I'm new to programming and Code::Blocks, and I want to use the GDI32 library. How can I install it? I'm very confused because I can use the windows.h header, but some functions like TextOut aren't available.

推薦答案

gdi32 庫已經安裝在您的計算機上,沒有它,很少有程序可以運行.您的編譯器(如果安裝正確)通常會附帶一個導入庫,鏈接器使用它來在您的程序和系統中的文件之間進行綁定.(萬一您的編譯器沒有為系統庫提供導入庫,您將需要下載 Microsoft Windows 平臺 SDK.)

The gdi32 library is already installed on your computer, few programs will run without it. Your compiler will (if installed properly) normally come with an import library, which is what the linker uses to make a binding between your program and the file in the system. (In the unlikely case that your compiler does not come with import libraries for the system libs, you will need to download the Microsoft Windows Platform SDK.)

與 gdi32 鏈接:

To link with gdi32:

這將可靠地與 MinGW-gcc 一起用于所有系統庫(如果您也使用任何其他編譯器,它應該可以,但我不能談論我沒有嘗試過的東西).你也可以寫出庫的全名,但是寫libgdi32.agdi32 相比沒有任何優勢,除了更多類型的工作.
如果由于某種原因它不起作用,您可能需要提供一個不同的名稱(例如,對于 MSVC,該庫被命名為 gdi32.lib).

This will reliably work with MinGW-gcc for all system libraries (it should work if you use any other compiler too, but I can't talk about things I've not tried). You can also write the library's full name, but writing libgdi32.a has no advantage over gdi32 other than being more type work.
If it does not work for some reason, you may have to provide a different name (for example the library is named gdi32.lib for MSVC).

對于位于一些奇怪位置或項目子文件夾中的庫,您需要提供正確的路徑名(單擊..."按鈕打開文件選擇對話框).

For libraries in some odd locations or project subfolders, you will need to provide a proper pathname (click on the "..." button for a file select dialog).

這篇關于如何使用 Code::Blocks 鏈接到庫?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Algorithm to convert RGB to HSV and HSV to RGB in range 0-255 for both(將 RGB 轉換為 HSV 并將 HSV 轉換為 RGB 的算法,范圍為 0-255)
How to convert an enum type variable to a string?(如何將枚舉類型變量轉換為字符串?)
When to use inline function and when not to use it?(什么時候使用內聯函數,什么時候不使用?)
Examples of good gotos in C or C++(C 或 C++ 中好的 goto 示例)
Significance of ios_base::sync_with_stdio(false); cin.tie(NULL);(ios_base::sync_with_stdio(false) 的意義;cin.tie(NULL);)
Is TCHAR still relevant?(TCHAR 仍然相關嗎?)
主站蜘蛛池模板: av中文字幕在线 | 欧美日韩精选 | 日韩一级免费电影 | 亚洲午夜精品一区二区三区他趣 | 欧美日韩亚洲视频 | 黄色成人av| 手机看片1 | japanhd美女动 | 日本精品一区二区 | 日韩精品一区二区三区免费视频 | 亚洲女人天堂网 | h在线看 | 毛片久久久 | 日韩欧美精品在线播放 | 中文字幕日韩在线观看 | 欧美日韩一区二区三区四区五区 | 91视频在线观看免费 | 黄色一级大片视频 | 午夜激情免费视频 | 在线观看黄免费 | 精品一区av | 久久国产精品99久久久久 | 欧美性乱 | 午夜精品视频一区 | 毛片免费视频 | 久久久高清 | 午夜精品久久久久久久久久久久 | 日本天堂视频在线观看 | 在线免费中文字幕 | 国产美女特级嫩嫩嫩bbb片 | 亚洲v日韩v综合v精品v | 亚洲精品888 | 亚洲视频免费在线播放 | 国产精品美女www爽爽爽视频 | 欧美成人a | 看av网| 夜夜草av| 精品一区二区久久久久久久网站 | www.国产.com| 成人av一区 | 亚洲第一网站 |