Knowledge Base Nr: 00022 createlib.sh - http://www.swe-kaiser.de

Downloads:

linux: shell script zum bauen von eigenen libraries

  
#!/bin/bash

clear

echo krlib bauen...
g++ -fPIC -g -c -Wall krlib.cpp
gcc -shared -Wl,-soname,libkrlib.so.1 -o libkrlib.so.1.0.1 krlib.o -lc
cp libkrlib.so.1.0.1 /usr/lib/.
ldconfig

echo krtest bauen...
rm krtest
g++ main.cpp krlib.cpp -o krtest -lncurses