Mac OSX 10.4.6 C++ compile problems with the VTK library

Posted on 2006-05-12
Last Modified: 2012-05-05
Hi there,

am trying to get the VTK (visualization toolkit) library running on my Mac OSX 10.4.6,

I'm currently getting the following errors:

 mie-13-4:~ siddarthakrishnan$ g++ test.cpp -I/usr/local/include/vtk-5.0
In file included from /usr/include/c++/4.0.0/backward/strstream:51,
                  from /usr/local/include/vtk-5.0/vtkIOStream.h:36,
                  from /usr/local/include/vtk-5.0/vtkSystemIncludes.h:40,
                  from /usr/local/include/vtk-5.0/vtkIndent.h:24,
                  from /usr/local/include/vtk-5.0/vtkObjectBase.h:43,
                  from /usr/local/include/vtk-5.0/vtkObject.h:41,
                  from /usr/local/include/vtk-5.0/vtkProperty.h:31,
                  from test.cpp:1:
 /usr/include/c++/4.0.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated
 or antiquated header. Please consider using one of the 32 headers found in section of the C++ standard.
 Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the
 deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
 /usr/bin/ld: Undefined symbols:
 vtkProperty::SetColor(double, double, double)
 collect2: ld returned 1 exit status

and then in Xcode I get the following error:

 Session started at 2006-05-12 14:06:37 -0400.]
 ZeroLink: unknown symbol '__ZN15vtkSphereSource3NewEv'

 VTKTEST has exited due to signal 6 (SIGABRT).

What do these errors mean? Those functions that are 'undefined symbols' are standard functions, what do you think this is an indication of? Before I was getting errors that it could not find the include files, but now this seems to be resolved; but now I get this!

Please help, I'm new to MacOSX

Thank you kindly,
Question by:lost_bits1110
    1 Comment
    LVL 13

    Accepted Solution

    Try going into the XCode/styles settings and turn off zero link...then you will probably get a better idea of what's missing.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now