Did you try changing the search path to the ITK root:<br>
<br>
/Users/saut/thrill/include/InsightToolkit/<br><br>
<br>
Looks like the -x objective-c++ option does the right thing.  From `man gcc`<br>
<br>
&quot;    355        -ObjC<br>
     356        -ObjC++<br>
     357            These are similar in effect to -x objective-c and -x objective-c++, but affect only the choice of<br>
     358            compiler for files already identified as source files.  (APPLE ONLY)<br>
&quot;<br>
<br><br><div class="gmail_quote">On Mon, Oct 26, 2009 at 1:29 PM, Olivier Saut <span dir="ltr">&lt;<a href="mailto:saut.olivier@orange.fr">saut.olivier@orange.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Le 26 oct. 2009 à 20:57, Sean McBride a écrit :<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
On 10/26/09 12:49 PM, Darren Weber said:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Was the ITK lib built with the cocoa option for the render engine?  (The<br>
alternatives are x11 and carbon.)<br>
</blockquote>
<br>
You&#39;re thinking of VTK, not ITK. :)<br>
<br>
Olivier, in your test project, can you include other C++ headers (not<br>
ITK ones) without compiler errors?<br>
</blockquote>
<br>
<br></div>
Yes. For instance starting from a new project (with User Header Search Path minimally set to $HOME/thrill/include/InsightToolkit/Common)  the following code :<br>
---<br>
//  <a href="http://test.mm" target="_blank">test.mm</a><br>
#import &quot;test.h&quot;<br>
#include &lt;iostream&gt;<br>
#include &lt;vector&gt;<br>
<br>
// Compiles and run without the following include<br>
#include &quot;itkSmartPointer.h&quot;<br>
<br>
@implementation test<br>
<br>
- (id) init {<br>
    NSLog(@&quot;test&quot;);<br>
<br>
    std::vector&lt;double&gt; vect;<br>
    vect.push_back(0.0);<br>
    std::cout &lt;&lt; &quot;test&quot; &lt;&lt; std::endl;<br>
    return self;<br>
}<br>
<br>
@end<br>
---<br>
compiles and run when I comment out #include &quot;itkSmartPointer.h&quot;.<br>
With the ITK include, I obtain the following error :<br>
/Users/saut/thrill/include/InsightToolkit/Common/itkSmartPointer.h:129: error: function definition does not declare parameters<br>
<br>
The complete transcript is<br>
Build Untitled of project Untitled with configuration Debug<br>
<br>
CompileC build/Untitled.build/Debug/Untitled.build/Objects-normal/x86_64/test.o <a href="http://test.mm" target="_blank">test.mm</a> normal x86_64 objective-c++ com.apple.compilers.gcc.4_2<br>
cd /Users/saut/Desktop/Untitled<div class="im"><br>
setenv LANG en_US.US-ASCII<br></div>
/Developer/usr/bin/gcc-4.2 -x objective-c++ -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.6.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.6 -gdwarf-2 -iquote /Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Untitled-generated-files.hmap -I/Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Untitled-own-target-headers.hmap -I/Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Untitled-all-target-headers.hmap -iquote /Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Untitled-project-headers.hmap -F/Users/saut/Desktop/Untitled/build/Debug -iquote/Users/saut/thrill/include/InsightToolkit/Common -I/Users/saut/Desktop/Untitled/build/Debug/include -I/Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/DerivedSources/x86_64 -I/Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/DerivedSources -include /var/folders/Wa/WaB1Wzw+HaCPXA71ALf6+++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/Untitled_Prefix-csugzkpcvxzatqfcqgrxlfvlcabr/Untitled_Prefix.pch -c /Users/saut/Desktop/Untitled/<a href="http://test.mm" target="_blank">test.mm</a> -o /Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Objects-normal/x86_64/test.o<br>

<br>
In file included from /Users/saut/Desktop/Untitled/<a href="http://test.mm:8" target="_blank">test.mm:8</a>:<br>
/Users/saut/thrill/include/InsightToolkit/Common/itkSmartPointer.h:129: error: function definition does not declare parameters<br>
<br>
<br>
<br>
Thanks!<br>
<br>
<br>
<br>
<br>
</blockquote></div><br>