Solved missing lib after succeful compile

I compiled it under g++9 it says it needs gcc7 libstdc++ ?
and it is showing all of the O files and executable file as zero bytes in size.

Code:
userx@FreeBSD.net:~/Documents/mh5000-1.3.5
$ make
g++9  -O2 -pipe -std=c++17 -c files.cpp -o files.o
g++9  -O2 -pipe -std=c++17 -c img.cpp -o img.o
g++9  -O2 -pipe -std=c++17 -c imgfunctions.cpp -o imgfunctions.o
g++9  -O2 -pipe -std=c++17 -c options.cpp -o options.o
g++9  -O2 -pipe -std=c++17 -c timers.cpp -o timers.o
g++9  -O2 -pipe -std=c++17 -c main.cpp -o main.o
g++9 -O2 -pipe -std=c++17 -lm -lX11 -lImlib2 -o mh5000 files.o img.o imgfunctions.o options.o timers.o main.o  -Wno-switch-enum -Wno-switch
userx@FreeBSD.net:~/Documents/mh5000-1.3.5
$ ./mh5000
ld-elf.so.1: /usr/local/lib/gcc7/libstdc++.so.6: version GLIBCXX_3.4.26 required by /usr/home/userx/Documents/mh5000-1.3.5/mh5000 not found
userx@FreeBSD.net:~/Documents/mh5000-1.3.5
$ file ./mh5000
./mh5000: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 12.0 (1200086), FreeBSD-style, with debug_info, not stripped
 
Back
Top