- 论坛徽章:
- 24
|
原帖由 true_log 于 2008-10-12 00:20 发表 ![]()
用MinGW + MSYS环境编译时,在makefile的命令行中,有-lc这个选项,也就是说要链接libc.a这个库。
但因为MinGW环境中没有libc.a这个文件,所以出错。
libc.a应该是c的静态运行库吧?我怎样才能让它编译通过 ...
用 MinGW + MSYS 移植软件是一种痛苦,有时就是一个大工程,可能要修改 makefile 文件,甚至要修改源码才行。(要不我也不会那么想念 C++/CLI, 算了不说了这里好像忌讳这个 。) 建议试试 LibGW32C for Windows ,http://gnuwin32.sourceforge.net/packages/libgw32c.htm
This is an implementation of a small part of GLibC, just enough to compile most Unix programs on MS Windows. It contains functions for passwords, process id's groups, and strings. Most are interfaces to the MS-Windows Win32 API. Some are just dummy functions that do nothing. |
|