On Fri, 2006-02-03 at 09:25 -0500, Mike Adolf wrote: > I made the following simple c++ prog. > > ----------------------------------------------- > #include <iostream> > using namespace std; > int main () > { > cout << "Hello World!"; > return 0; > } > ----------------------------------------------- > Tried to compile and link using > #> g++ helloworld.cpp > > and get the error: > "undefined reference to `main' " > > What is it looking for? > > Mike
Hi Mike, You program seems very fine to me. It should compile , link & run well.. I think there might be some missing development packages in your g++ version. Re-install it try to compile.... - Chamith -- *** Sent from a M$ free PC *** *** Running RedHat Fedora *** ____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________