'“SDL.h” no such file or directory found' when compiling

后端 未结 6 927
情深已故
情深已故 2021-01-31 18:07

Here\'s a piece of my current Makefile:

CFLAGS = -O2 -Wall -pedantic -std=gnu++11 `sdl-config --cflags --libs` -lSDL_mixer

I have libsdl instal

6条回答
  •  北恋
    北恋 (楼主)
    2021-01-31 19:00

    Having a similar case and I couldn't use StackAttacks solution as he's referring to SDL2 which is for the legacy code I'm using too new.

    Fortunately our friends from askUbuntu had something similar:

    Download SDL

    tar xvf SDL-1.2.tar.gz
    cd SDL-1.2
    ./configure
    make
    sudo make install
    

提交回复
热议问题