udoprog/c10t — Issue #241: Compile error with image_operations.hpp - missing explicit include
Author: jheiv
Created: 2012-02-06 02:14:48+00:00
State: open

When I try to make, I get the error:

`.../build/c10t/udoprog-c10t-8e9f550/src/image/image_operations.hpp:17: error: expected initializer before ‘<’ token`

because line 17 refers to a `boost::shared_ptr` which isn't yet defined.

Adding `#include ` fixes the error.

I'm using an older build of Centos:

[jheiv@main build]# g++ -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)

[jheiv@main build]# uname -a
Linux main 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux