Score:0

using make command

lu flag

I'm following the author's instructions on getting started with c++20 for lazy programmers.The instructions were go into external/SSDL/unix then type make. I did that but got error message. here is what i saw in the terminal.

/Desktop/lazy/cpp20/external/SSDL/unix$ make
make -C bin/shared
make[1]: Entering directory '/home/michael/Desktop/lazy/cpp20/external/SSDL/unix/bin/shared'
g++ -c -fPIC `sdl2-config --cflags` -I../../../include  ../../../src/SSDL_color.cpp -o SSDL_color.o
/bin/sh: 1: sdl2-config: not found
In file included from ../../../src/SSDL_color.cpp:23:
../../../include/SSDL_color.h:26:10: fatal error: SDL.h: No such file or directory
   26 | #include "SDL.h"
      |          ^~~~~~~
compilation terminated.
make[1]: *** [Makefile:37: SSDL_color.o] Error 1

how do I correct this? thanks for help

Score:3
cn flag

You seem to be missing the header files for SDL. In Ubuntu, header files can be typically found in packages that have dev in their name. My first guess would be to try the package libsdl2-dev, but you may want to double check that.

Bob Barrett avatar
lu flag
does this mean that i should add libsdl2-dwv to sdl
cn flag
@BobBarrett It means you need to use `apt` to install the package containing the header files. As I said, I would assume that to be `libsdl2-dev`, but I'm not completely sure about that.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.