Can't Compile A Program :(

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Niekas
    New Member
    • Nov 2007
    • 4

    Can't Compile A Program :(

    I dowloaded a program form:

    http://www.rtreeportal .org/code.html

    Its the X-tree program... I tried to compile it, but there is a lot of errors... can anyone help me to compile this program.

    Thank you very much.
    Niekas
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Well, you're going to tell us what your setup is (OS, compiler & version), and some of the errors you are getting.

    Comment

    • Niekas
      New Member
      • Nov 2007
      • 4

      #3
      my soft is OS, but it would not be a problem if you compile on Linux.. Thank you

      Comment

      • Niekas
        New Member
        • Nov 2007
        • 4

        #4
        I am uzing dev-cpp (latest version) and visual studio 2005. Both of them shows the same problems.

        Comment

        • sicarie
          Recognized Expert Specialist
          • Nov 2006
          • 4677

          #5
          Originally posted by Niekas
          my soft is OS, but it would not be a problem if you compile on Linux.. Thank you
          I'm not compiling it for you, I'm helping you compile it. That's why I asked what errors you were getting. It's a .tar.gz with a makefile - it looks like it has to be done either with Linux, or something like Cygwin.

          Otherwise, you can read their paper and try to recreate it yourself.

          I should clarify - I'm not sure of a way to run a makefile on a Windows machine. That does not mean it is not possible. You could also look at the code that the tar file unzips to - it's in German, but the functions are the same. That's the implementation of the tree, you should be able to include a few of those and be able to call what you need.
          Last edited by sicarie; Nov 6 '07, 07:12 PM. Reason: Clarify

          Comment

          • Niekas
            New Member
            • Nov 2007
            • 4

            #6
            I tried to compile in Linux... but the problems are the same... Can you suggest something? maybe I have to use some parameters when I am compiling ? Or download some includes?

            Comment

            • sicarie
              Recognized Expert Specialist
              • Nov 2006
              • 4677

              #7
              Originally posted by Niekas
              I tried to compile in Linux... but the problems are the same... Can you suggest something? maybe I have to use some parameters when I am compiling ? Or download some includes?
              Have you looked at the x_tree.cc and x_tree.h? I imagine those are the x_tree implementations . You need to sit down with that code in the tar file and see what it all does, how it works. Then you'll see how to include it. My guess is that their code either compiles and doesn't do anything (as it's never instantiated by a main()) or it's just an example of an x_tree implementation.

              Comment

              Working...