久久久久久久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 仍然相關嗎?)
主站蜘蛛池模板: 日韩在线免费视频 | 午夜手机在线视频 | 国产精品日日做人人爱 | 日本天堂视频在线观看 | 欧美三级在线 | 亚洲一区二区三区在线免费观看 | 人人人人人爽 | 欧美日韩亚洲视频 | 精品国产乱码久久久久久久久 | 久久久爽爽爽美女图片 | 免费激情 | 青草福利 | 欧美一区中文字幕 | 久久久精品高清 | 国产精品特级毛片一区二区三区 | 一区二区三区欧美 | 偷拍自拍在线观看 | 一区二区三区 在线 | 精品欧美乱码久久久久久1区2区 | 亚洲国产精选 | 成人av免费在线观看 | 亚洲区一 | 中文字幕国产精品 | 欧美一级在线视频 | 黄色一级免费 | 亚洲精品乱码久久久久久按摩观 | 欧美一级网站 | 中文字幕乱码一区二区三区 | 在线观看亚洲专区 | 久久精品亚洲 | 成年人黄色免费视频 | 中文字幕久久精品 | 在线中文视频 | a国产视频| 韩国毛片一区二区三区 | 日本中文在线 | 国产精品久久久久国产a级 欧美日本韩国一区二区 | 99精品视频一区二区三区 | 国产精品免费一区二区三区 | 懂色中文一区二区三区在线视频 | 91成人午夜性a一级毛片 |