dnf install glibc-devel.i686 libgcc.i686 libstdc++-devel.i686Here is a simple Makefile that does the trick
CC = gcc LDFLAGS = -L/usr/lib -lstdc++ -m32 CFLAGS = -g -L/usr/lib -I. -Wall -m32 CPPFLAGS = $(CFLAGS) all: myprog myprog: myprog.o $(CC) $(CFLAGS) -o $@ myprog.o $(LDFLAGS)