views:

78

answers:

2

sceenshot

All works good if I insert sdl-config output manually.

How to fix this bug?

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

The bug is that sh dont work correctly!

I make sh script mmake:

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

and all work great!

why it dont work at main console window???

puchu
it's cmd!!!mingw32
puchu
+2  A: 

oh... I mixed up ` and ' !!!!!

now all works...

puchu