[SDL] "undefined reference" problem

Donny Viszneki smirk at thebuicksix.com
Tue Aug 3 00:44:22 PDT 2004


On Aug 3, 2004, at 3:36 AM, remi tassing wrote:

> g++ -Wall `sdl-config --cflags` `sdl-config --libs`
> -Wno-deprecated -o main main.cpp.

do this: `sdl-configs --cflags --libs`

you use --cflags for compiling, --libs for linking. your invocation of 
gcc (g++) is both compiling and linking, so use both.

- Donny Viszneki





More information about the SDL mailing list