This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: what i need to compile c++/std programs?


On 9/25/07, Dave Korn <dave.korn@artimi.com> wrote:
> On 24 September 2007 17:37, Steven Woody wrote:
>
> > hi,
> >
> > i am compiling a program which used std stuffs, but results in a lot
> > of error messages, such as  below:
> >
> > /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc:2498:
> > undefined reference to `std::basic_string<cha
> > r, std::char_traits<char>, std::allocator<char> >::size() const'
> > /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc:2507:
> > undefined reference to `std::basic_string<cha
> > r, std::char_traits<char>, std::allocator<char> >::operator[](unsigned
> > int) const'
> > /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc:2509:
> > undefined reference to `std::basic_string<cha
> > r, std::char_traits<char>, std::allocator<char> >::operator[](unsigned
> > int) const'
> > /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc:2512:
> > undefined reference to `std::basic_string<cha
> > r, std::char_traits<char>, std::allocator<char> >::operator[](unsigned
> > int) const'
> >
> > i think some std library was not linked in, but i dont know how to :-(
>
>
>   Heh, didn't we just do this one?  You need to invoke the compiler as "g++",
> not "gcc", which tells it to link in the C++ support by default.
>

thank you! i actually did a typo in my Makefile :-)

-- 
woody

then sun rose thinly from the sea and the old man could see the other
boats, low on the water and well in toward the shore, spread out
across the current.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]