cygwin下編譯.c程序和調用.a靜態庫用法

本博客主要總結在cywgin下編譯一個寫好的.c程序(注意,是c程序,不是c++程序)。 1.1用notepad軟件寫一個hello.h和hello.c程序,如代碼如下所示: hello.h頭文件代碼 #ifndef HELLO_H #define HELLO_H #ifdef __cplusplus extern "C" { #endif extern void hello(const char
相關文章
相關標籤/搜索