> > Has anyone out there done a build of SimGear in Mandrake 10.1?    My
> > Mandrake system is almost nearly "out of the box", and I've succesfully
> > compiled the mm3d CAD application, as well as openal and plib, but I get
> > this with SimGear ( both 0.3.8 and CVS ):
>
> I'm running FG on MDK 10.1 Community Edition (sort of a pre-release)
>
> Was the CAD program a pure C program or C++?
> The reason why I ask is because Mandrake stuffed up the GCC packaging by
> forgetting to include C++ support !!!
> This bit me when I tried to compile a C++ app and had me stumped because C
> apps would compile just fine.  :)

Looks like that's on the right track.  I tried to install that package but it 
said it was already installed, so I forced it, but no change.  Looks like a 
missing library or bad symlink for me, related to c++.


#include <iostream.h>

main()
{
  cout << "Hello World!" << endl;
  double x;
  x = x + x;
  return 0;
}



[EMAIL PROTECTED] Documents]$ gcc -ohello -Wall hello.cpp
In file included 
from 
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/backward/iostream.h:31,
                 from hello.cpp:1:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/backward/backward_warning.h:32:2:
 
warning: #warning This file includes at least one deprecated or antiquated 
header. Please consider using one of the 32 headers found in section 17.4.1.2 
of the C++ standard. Examples include substituting the <X> header for the 
<X.h> header for C++ includes, or <iostream> instead of the deprecated header 
<iostream.h>. To disable this warning use -Wno-deprecated.
hello.cpp:4: warning: ISO C++ forbids declaration of `main' with no type
/home/dave/tmp/cc9UsRbx.o(.text+0xd): In function `std::__verify_grouping(char 
const*, unsigned int, std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::size() const'
/home/dave/tmp/cc9UsRbx.o(.text+0x60): In function 
`std::__verify_grouping(char const*, unsigned int, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::operator[](unsigned int) const'
/home/dave/tmp/cc9UsRbx.o(.text+0x9d): In function 
`std::__verify_grouping(char const*, unsigned int, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::operator[](unsigned int) const'
/home/dave/tmp/cc9UsRbx.o(.text+0xc8): In function 
`std::__verify_grouping(char const*, unsigned int, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::operator[](unsigned int) const'
/home/dave/tmp/cc9UsRbx.o(.text+0x124): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& 
std::endl<char, std::char_traits<char> >(std::basic_ostream<char, 
std::char_traits<char> >&)'
/home/dave/tmp/cc9UsRbx.o(.text+0x131): In function `main':
: undefined reference to `std::cout'
/home/dave/tmp/cc9UsRbx.o(.text+0x136): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& 
std::operator<< <std::char_traits<char> >(std::basic_ostream<char, 
std::char_traits<char> >&, char const*)'
/home/dave/tmp/cc9UsRbx.o(.text+0x13f): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> 
>::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)
(std::basic_ostream<char, std::char_traits<char> >&))'
/home/dave/tmp/cc9UsRbx.o(.text+0x174): In function 
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::Init()'
/home/dave/tmp/cc9UsRbx.o(.text+0x1a3): In function `__tcf_0':
: undefined reference to `std::ios_base::Init::~Init()'
/home/dave/tmp/cc9UsRbx.o(.eh_frame+0x11): undefined reference to 
`__gxx_personality_v0'
collect2: ld returned 1 exit status


Dave

_______________________________________________
Flightgear-users mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-users
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to