[vtkusers] Problem building VTK-Java wrappers under OS X

Martin Costabel costabel at wanadoo.fr
Mon Mar 22 14:02:08 EST 2004


On 22 mars 2004, at 17:43, Michael Marti wrote:

> Dear list members
>
> I'm trying to compile VTK-4.2 with the Java wrappers under OS X  
> (10.3.3).
> I'm using Apple's Java 1.4.2.
>
> The compilation breaks with the following message:
>
> Building object file vtkRenderWindowJava.o...
> c++ -o vtkRenderWindowJava.o -DvtkRenderingJava_EXPORTS      
> -Wno-deprecated
> -no-cpp-precomp -fpascal-strings -O3 -fPIC
> -I/Users/michael/WORK/SPINE/3.party/VTK/Rendering
[]
> /System/Library/Frameworks/Foundation.framework/Headers/ 
> NSObjCRuntime.h:56:
> error: parse
>    error before `@' token

You can get rid of this error by using the compiler flag "-ObjC++".

-- 
Martin




More information about the vtkusers mailing list