2010-10-10 51 views
0

sceenshotMinGW的G ++无法看到SDL-配置

所有的作品好,如果我手动插入SDL-config输出中。

如何解决这个错误?

g++ -O3 -c 'sdl-config --cflags' test.cpp 
g++.exe: sdl-config --cflags: no such dile or directory 
+0

你是交叉编译吗?你在linux/cygwin/MSYS bash下运行吗? – rubenvb 2010-10-10 11:25:01

+0

我不知道什么是 “交叉编译” – puchu 2010-10-10 11:30:09

+0

我已成功安装: – puchu 2010-10-10 11:30:25

回答

1

哦... 我混淆了'和'!!!!!

现在所有的作品...

0

这个错误是sh不能正常工作!

我做sh脚本mmake:

#!/bin/sh 
g++ -O3 -c `sdl-config --cflags` test.cpp 
g++ -O3 -o test test.o `sdl-config --libs` -lSDL_image 

和所有的工作太棒了!

为什么它不在主控制台窗口工作?

+0

它是cmd !!! mingw32 – puchu 2010-10-10 12:42:27