you need to tell g++ where to look for conio.h, usually via the -L switch. but google tells me that conio.h is a very old msdos library, i doubt it'll work in this environment. try something like "cin.get()" (and #include <iostream>)