compiled with g++ on ubuntu