On Friday 03 February 2006 09:25 am, 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

Thanks to all who replied.  As it turns out it was a configuration problem.  I 
ran mcc and found the package gcc3.3-3.3.6-2mdk.  The description said it was 
required for several gnu compliers including c++.  I installed it and the 
above ran fine.  Thing is, I don't know why the mandriva 2006 installer left 
it out!

Mike
> ____________________________________________________
> Want to buy your Pack or Services from Mandriva?
> Go to http://store.mandriva.com
> Join the Club : http://www.mandrivaclub.com
> ____________________________________________________
____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to