libftdi Archives

Subject: Re: [patch] fix compile with boost

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 28 May 2013 14:45:06 +0200
Hi John,

On Tuesday, 28. May 2013 05:43:33 John Hein wrote:
> When building examples/find_all_cpp.o, the attached patch will add
> -I flags for boost header files.
> 
> Without it, you can get this when building examples/find_all_pp...
> 
> In file included from find_all_pp.cpp:8:
> .../ftdipp/ftdi.hpp:34:32: error: boost/shared_ptr.hpp: No such file or
> directory In file included from find_all_pp.cpp:8:
> .../ftdipp/ftdi.hpp:144: error: 'boost' has not been declared
> .../ftdipp/ftdi.hpp:144: error: ISO C++ forbids declaration of
> 'shared_ptr' with no type

thanks for you patch. I'm not sure this is the correct fix:
The pkgconfig stuff for libftdipp should provide the boost includes
automatically. Otherwise every program using it
must manually specify the BOOST_CFLAGS...

What do you think?

Thomas


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread