g++ example0.cpp -o test works fine now