<br>Hi Olivier,<br><br>I put your download files into ~/tmp and then modified your command line compile process to the following (note that I&#39;m on OSX 10.5 sdk):<br><br><span style="font-family: courier new,monospace;">/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.5.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote/opt/local/include/InsightToolkit/Common  --verbose  -c <a href="http://test.mm">test.mm</a> -o test.o</span><br>
<br>This worked for me at the terminal command prompt (under bash).  Note that I removed all the precompiled headers and other stuff from the Xcode command line.  Maybe you should run a full project clean?  Also note that I&#39;ve compiled against the MacPorts version of ITK @ 3.16.0, which sits in /opt/local/include/InsightToolkit/ (but that should be equivalent to your local install).<br>
<br><br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[ dweber@XXX ~/tmp ]$ /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.5.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote/opt/local/include/InsightToolkit/Common  --verbose  -c <a href="http://test.mm">test.mm</a> -o test.o</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Using built-in specs.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Target: i686-apple-darwin9</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Configured with: /var/tmp/gcc_42/gcc_42-5574~1/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/usr/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-gxx-include-dir=/usr/include/c++/4.0.0 --host=i686-apple-darwin9 --target=i686-apple-darwin9</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Thread model: posix</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">gcc version 4.2.1 (Apple Inc. build 5574)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> /Developer/usr/bin/../libexec/gcc/i686-apple-darwin9/4.2.1/cc1objplus -quiet -v -imultilib x86_64 -iprefix /Developer/usr/bin/../lib/gcc/i686-apple-darwin9/4.2.1/ -D__DYNAMIC__ -isysroot /Developer/SDKs/MacOSX10.5.sdk -iquote/opt/local/include/InsightToolkit/Common <a href="http://test.mm">test.mm</a> -fPIC -quiet -dumpbase <a href="http://test.mm">test.mm</a> -mpascal-strings -mfix-and-continue -mmacosx-version-min=10.5 -m64 -mtune=core2 -auxbase-strip test.o -gdwarf-2 -O0 -Wno-trigraphs -Wreturn-type -Wunused-variable -version -fmessage-length=0 -fasm-blocks -fvisibility-inlines-hidden -D__private_extern__=extern -o - |</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> /Developer/usr/bin/../libexec/gcc/i686-apple-darwin9/4.2.1/as -arch x86_64 -force_cpusubtype_ALL -o test.o</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ignoring nonexistent directory &quot;/Developer/SDKs/MacOSX10.5.sdk/usr/local/include&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">ignoring nonexistent directory &quot;/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin9/4.2.1/../../../../i686-apple-darwin9/include&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#include &quot;...&quot; search starts here:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> /opt/local/include/InsightToolkit/Common</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#include &lt;...&gt; search starts here:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/i686-apple-darwin9/x86_64</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/backward</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> /Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin9/4.2.1/include</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> /Developer/SDKs/MacOSX10.5.sdk/usr/include</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks (framework directory)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> /Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks (framework directory)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">End of search list.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">GNU Objective-C++ version 4.2.1 (Apple Inc. build 5574) (i686-apple-darwin9)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    compiled by GNU C version 4.2.1 (Apple Inc. build 5574).</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Compiler executable checksum: fe31312d751b818d0b05f1519c5a5714</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"><br>
[ dweber@XXX ~/tmp ]$ ll</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">total 128K</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-rw-r--r--+ 1 dweber staff  212 2009-10-29 11:36 test.h</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">-rw-r--r--+ 1 dweber staff  295 2009-10-29 11:36 <a href="http://test.mm">test.mm</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-rw-r--r--+ 1 dweber staff 118K 2009-10-29 11:45 test.o</span><br style="font-family: courier new,monospace;">
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><div class="gmail_quote">On Thu, Oct 29, 2009 at 6:25 AM, 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;">Dear Darren,<br>
<br>
sorry for the late answer, I was on a  trip for work. I appreciate very much your help.<br>
I am using ITK in C++ and was hoping to use Cocoa to build a user friendly interface around it.<br>
I have attached my mm file to this mail.<br>
<br>
Thanks again!<br>
<br>
<br>
The verbose output for the compilation on my system is<br>
/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 --verbose  -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>

Using built-in specs.<br>
Target: i686-apple-darwin10<br>
Configured with: /var/tmp/gcc/gcc-5646.1~2/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10<br>

Thread model: posix<br>
gcc version 4.2.1 (Apple Inc. build 5646) (dot 1)<br>
 /Developer/usr/bin/../libexec/gcc/i686-apple-darwin10/4.2.1/cc1objplus -quiet -v -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 -F/Users/saut/Desktop/Untitled/build/Debug -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 -imultilib x86_64 -iprefix /Developer/usr/bin/../lib/gcc/i686-apple-darwin10/4.2.1/ -D__DYNAMIC__ -isysroot /Developer/SDKs/MacOSX10.6.sdk -iquote /Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Untitled-generated-files.hmap -iquote /Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Untitled-project-headers.hmap -iquote/Users/saut/thrill/include/InsightToolkit/Common -include /var/folders/Wa/WaB1Wzw+HaCPXA71ALf6+++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/Untitled_Prefix-csugzkpcvxzatqfcqgrxlfvlcabr/Untitled_Prefix.pch /Users/saut/Desktop/Untitled/<a href="http://test.mm" target="_blank">test.mm</a> -fPIC -quiet -dumpbase <a href="http://test.mm" target="_blank">test.mm</a> -mpascal-strings -mfix-and-continue -mmacosx-version-min=10.6 -m64 -mtune=core2 -auxbase-strip /Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Objects-normal/x86_64/test.o -gdwarf-2 -O0 -Wno-trigraphs -Wreturn-type -Wunused-variable -version -fmessage-length=0 -fasm-blocks -fvisibility-inlines-hidden -D__private_extern__=extern -o - |<br>

 /Developer/usr/bin/../libexec/gcc/i686-apple-darwin10/4.2.1/as -arch x86_64 -force_cpusubtype_ALL -o /Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Objects-normal/x86_64/test.o<br>
ignoring nonexistent directory &quot;/Developer/SDKs/MacOSX10.6.sdk/usr/local/include&quot;<br>
ignoring nonexistent directory &quot;/Developer/SDKs/MacOSX10.6.sdk/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../../i686-apple-darwin10/include&quot;<br>
ignoring nonexistent directory &quot;/Users/saut/Desktop/Untitled/build/Debug/include&quot;<br>
ignoring nonexistent directory &quot;/Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/DerivedSources/x86_64&quot;<br>
ignoring nonexistent directory &quot;/Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/DerivedSources&quot;<br>
#include &quot;...&quot; search starts here:<br>
 /Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Untitled-generated-files.hmap (headermap)<br>
 /Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Untitled-project-headers.hmap (headermap)<br>
 /Users/saut/thrill/include/InsightToolkit/Common<br>
#include &lt;...&gt; search starts here:<br>
 /Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Untitled-own-target-headers.hmap (headermap)<br>
 /Users/saut/Desktop/Untitled/build/Untitled.build/Debug/Untitled.build/Untitled-all-target-headers.hmap (headermap)<br>
 /Users/saut/Desktop/Untitled/build/Debug (framework directory)<br>
 /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1<br>
 /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/i686-apple-darwin10/x86_64<br>
 /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/backward<br>
 /Developer/SDKs/MacOSX10.6.sdk/usr/lib/gcc/i686-apple-darwin10/4.2.1/include<br>
 /Developer/SDKs/MacOSX10.6.sdk/usr/include<br>
 /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks (framework directory)<br>
 /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks (framework directory)<br>
End of search list.<br>
GNU Objective-C++ version 4.2.1 (Apple Inc. build 5646) (dot 1) (i686-apple-darwin10)<br>
        compiled by GNU C version 4.2.1 (Apple Inc. build 5646) (dot 1).<br>
GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=131072<br>
Compiler executable checksum: 49e3775622e3f2330b547374d96176ff<div class="im"><br>
In file included from /Users/saut/Desktop/Untitled/<a href="http://test.mm:8" target="_blank">test.mm:8</a>:<br></div><div class="im">
/Users/saut/thrill/include/InsightToolkit/Common/itkSmartPointer.h:129: error: function definition does not declare parameters<br>
<br>
<br></div>
Le 27 oct. 2009 à 21:29, Darren Weber a écrit :<div><div></div><div class="h5"><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>
Try to copy the gcc command line and run it manually, with the addition of some more verbose output.  Try to identify where it really gets the libraries from.  Could you send me a copy of your .mm file, I might try to compile it on my system (Leopard server).<br>

<br>
<br>
<br>
On Tue, Oct 27, 2009 at 7:07 AM, Olivier Saut &lt;<a href="mailto:saut.olivier@orange.fr" target="_blank">saut.olivier@orange.fr</a>&gt; wrote:<br>
<br>
Le 26 oct. 2009 à 22:27, Darren Weber a écrit :<br>
<br>
<br>
Did you try changing the search path to the ITK root:<br>
<br>
/Users/saut/thrill/include/InsightToolkit/<br>
<br>
<br>
<br>
Yes, unfortunately it does not change the result. I have also tried including recursively all the headers from the include root directory.<br>
<br>
Thanks,<br>
                                                                                               - Olivier<br>
<br>
</blockquote>
</div></div></blockquote></div><br>