misko@localhost:~$ tar xzf sho_linux.tgz
misko@localhost:~$ cd sho
misko@localhost:~/sho$
misko@localhost:~/sho$ make
rm -f *.o
rm -f *core*
rm -f lyzari
rm -f menza
rm -f *~
g++ `pth-config --cflags` -c -o simset.o simset.cc
g++ `pth-config --cflags` -o random.o -c random.cc
g++ `pth-config --cflags` -c -o simulation.o simulation.cc
g++ `pth-config --cflags` -c -o thread.o thread.cc
g++ `pth-config --cflags` -c -o eventnotice.o eventnotice.cc
g++ `pth-config --cflags` -c -o process.o process.cc
g++ `pth-config --cflags` `pth-config --cflags` -c -o main.o main.cc
g++ `pth-config --cflags` -c -o hlavni.o hlavni.cc
g++ `pth-config --cflags` -c -o hlavni0.o hlavni0.cc
g++ `pth-config --cflags` -L`pth-config --libdir` -o lyzari simset.o random.o simulation.o thread.o eventnotice.o process.o main.o hlavni.o `pth-config --libs`
g++ `pth-config --cflags` -L`pth-config --libdir` -o menza simset.o random.o simulation.o thread.o eventnotice.o process.o main.o hlavni0.o `pth-config --libs`
./lyzari
Budete potřebovat:
misko@localhost:~/sho$ make
rm -f *.o
rm -f *core*
rm -f lyzari
rm -f menza
rm -f *~
g++ `pth-config --cflags` -c -o simset.o simset.cc
/bin/sh: pth-config: command not found
g++ `pth-config --cflags` -o random.o -c random.cc
/bin/sh: pth-config: command not found
g++ `pth-config --cflags` -c -o simulation.o simulation.cc
/bin/sh: pth-config: command not found
In file included from process.h:7,
from simulation.h:10,
from simulation.cc:5:
thread.h:9: pth.h: No such file or directory
make: *** [simulation] Error 1
Řešení:
apt-get install libpth-dev
yum install pth-devel