1
不能编译RIES
我试图编译使用MinGW的this program在Windows 7 我第一次尝试它给了我这个错误:使用MinGW Win7上
>gcc -o ries.exe ries.c -lm
ries.c:1582:21: fatal error: stdafx.h: No such file or directory
compilation terminated.
我用Google搜索了一下,发现我应该删除# include "stdafx.h"
行,这是我做的。
现在,它给了我这样的:
C:\Users\XXXXXX\AppData\Local\Temp\cczlkqve.o:ries.c:(.text+0xb9): undefined reference to `asprintf'
collect2: ld returned 1 exit status
谷歌现在是沉默......我应该怎么做?
在此先感谢。
谢谢!它现在有效。 – Alda 2012-04-25 15:05:18