Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2003-10-20 17:57:05


"Ray Hilton" <RayHilton_64_at_[hidden]> writes:

> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:un0bw4891.fsf_at_boost-consulting.com...
>> "Ray" <RayHilton_64_at_[hidden]> writes:
>>
>> > How do i get theese three things to work together nicely? I cannot find
> any
>> > help for this (and i know it had to be asked before).
>> >
>> > //#include <iostream>
>> > #include <boost\spirit.hpp>
>> > int main ()
>> > {
>> > boost::spirit::rule<> p = *(boost::spirit::real_p);
>> > return 0;
>> > }
>> > I get linker errors if i uncomment the iostream include
>> >
>> > STL Port is built to use its own streams. Works fine in other examples
> not
>> > using boost.
>> > I looked through the boost user config but didnt see anything relavant
> to
>> > throw boost a bone that im using STL Port.
>> >
>> >
>> > Any help would greatly be appreciated!
>>
>> Perhaps you need to link to an STLPort library?
>>
>> If you want more than a guess, you should post one or two of the link
>> errors you're getting.
>>
>> --
>> Dave Abrahams
>> Boost Consulting
>> www.boost-consulting.com
>
>
> Actually, linker errors was incorrect.
> I get
> c:\Documents and Settings\Ray Hilton\My
> Documents\Development\boost_1_30_0\boost_1_30_0\boost_1_30_0\boost\shared_pt
> r.hpp(284): error C2039: 'type_info' : is not a member of '_STL'
>
> Thats with all the default settings for a empty console program, except
> multi-threaded debug runtime library and using the code above.

Someone recently had this problem who was mixing old-style
(e.g. <iostream.h>) and new-style (e.g. <iostream>) headers in the
same project. You might try preprocessing your code and looking for
suspicious #includes.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net