puchu
puchu

Reputation: 3652

mingw g++ cant see sdl-config

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

Upvotes: 0

Views: 1211

Answers (2)

puchu
puchu

Reputation: 3652

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

now all works...

Upvotes: 1

puchu
puchu

Reputation: 3652

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???

Upvotes: 0

Related Questions