編譯zlib問題 - Linux

Erin avatar
By Erin
at 2011-09-10T01:59

Table of Contents


各位好:

我是使用mingw在windows下編譯

編譯Zlib的時候我的步驟如下:
1.切換目錄:
cd c:/zlib-1.2.5

2.編譯
./configure

結果卻回說:please use win32/makefile.gcc instead


後來我有找到資料說 可以像下面這樣寫:
$ make -f win32/Makefile.gcc
$ cp libz.a /mingw/lib/
$ cp zlib.h zconf.h /mingw/include/

請問這樣子編譯出的東西正確嗎??

還次有其他方式呢?


謝謝

--
Tags: Linux

All Comments

Victoria avatar
By Victoria
at 2011-09-12T23:29
你...沒有走錯板嗎?
Dora avatar
By Dora
at 2011-09-13T08:59
他可能是覺得 MinGW 跟 GCC 一樣所以這邊比較懂吧...
我沒在 Windows 上編過, 不過這樣應該是沒問題
Kelly avatar
By Kelly
at 2011-09-15T04:29
當然前提是你的 MinGW 確實是裝在 /mingw
Kristin avatar
By Kristin
at 2011-09-17T01:58
抱歉! 那我應該去哪邊問比較好呢?? windows版?
Daniel avatar
By Daniel
at 2011-09-21T11:36
自己回答自己: c/c++版

設定samba分享目錄

Todd Johnson avatar
By Todd Johnson
at 2011-09-10T00:06
請問一下 samba 架設好之後 比方說要分享一個目錄 /office 該怎麼在/etc/smb.conf設定 因為常常設好之後,在網路芳鄰還是會連不到該目錄 或許是自己連的方法不對 或是 一直捉不出原因 大量新增系統使用帳號 卻受限於新增samba 帳號 又要另建 這的很無言 又 ...

請問關於無線網路指令問題

Enid avatar
By Enid
at 2011-09-09T23:19
請問在文字模式下,也就是 console 要怎麼用指令上函以下字元的加密無線 IP 分享緝獲 AP? 字元包瓜: ~, `, [, ], {, }, !, at, #, $, %, ^, andamp;, *, (, ), -, _, =, +, ,,., /, ;, and#39;, :, and#34;, ...

如何在linux上寫執行時間的程式?

Annie avatar
By Annie
at 2011-09-09T17:43
※ 引述《spiderman007 (千里之外)》之銘言: 直接寫給你吧: #include andlt;stdio.handgt; #include andlt;time.handgt; main(argc, argv) int argc; char *ar ...

Re: 在 Facebook 上面的 Ubuntu 正體中文社團

Caroline avatar
By Caroline
at 2011-09-09T11:05
※ 引述《fourdollars (四元)》之銘言: : 如果對 Ubuntu 相關新聞訊息有興趣的朋友可以到這邊交流 : http://www.facebook.com/groups/182288251826505/ 弄了一個比較容易記的 Facebook 社團網址 http://www.facebook. ...

如何在linux上寫執行時間的程式?

Jake avatar
By Jake
at 2011-09-09T03:01
※ 引述《spiderman007 (千里之外)》之銘言: #include andlt;stdio.handgt; #include andlt;stdlib.handgt; #include andlt;time.handgt; #ifdef _WIN32_ #include andlt;windows ...