libftdi Archives

Subject: [patch] fix compile with boost

From: "John Hein" <47vzntyus9@xxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 28 May 2013 05:43:33 -0600
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




--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   
--- examples/Makefile.am.orig   2013-05-28 05:13:50.792520286 -0600
+++ examples/Makefile.am        2013-05-28 05:13:29.462746567 -0600
@@ -39,6 +39,7 @@
 
 if HAVE_LIBFTDIPP
 find_all_pp_SOURCES = find_all_pp.cpp
+find_all_pp_CPPFLAGS = $(BOOST_CPPFLAGS)
 find_all_pp_LDADD = $(top_builddir)/ftdipp/libftdipp.la $(LDADD)
 endif
 
Current Thread