Compiling Errors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • algatt

    Compiling Errors

    Hello, I am trying to compile some source code from http://www.cse.ust.hk/~yike/prtree/
    (source code: http://www.cse.ust.hk/~yike/prtree/prtree.tgz) but it
    will result from many errors ~365. Can this happen due to difference
    in compilers? I am using gcc latest version and the original source
    code was created in 2002. Any help?

    Thanks.
  • Jim Langston

    #2
    Re: Compiling Errors

    algatt wrote:
    Hello, I am trying to compile some source code from
    http://www.cse.ust.hk/~yike/prtree/ (source code:
    http://www.cse.ust.hk/~yike/prtree/prtree.tgz) but it
    will result from many errors ~365. Can this happen due to difference
    in compilers? I am using gcc latest version and the original source
    code was created in 2002. Any help?
    Since you're not telling us what the errors are, how can we tell?




    --
    Jim Langston
    tazmaster@rocke tmail.com


    Comment

    • algatt

      #3
      Re: Compiling Errors

      On 31 Mar, 13:08, "Jim Langston" <tazmas...@rock etmail.comwrote :
      algatt wrote:
      Hello, I am trying to compile some source code from
      http://www.cse.ust.hk/~yike/prtree/(source code:
      http://www.cse.ust.hk/~yike/prtree/prtree.tgz) but it
      will result from many errors ~365. Can this happen due to difference
      in compilers? I am using gcc latest version and the original source
      code was created in 2002. Any help?
      >
      Since you're not telling us what the errors are, how can we tell?
      >
      --
      Jim Langston
      tazmas...@rocke tmail.com
      Ok, here's the first few:

      .../include/vararray.H: In member function 'VarArray2D<T>&
      VarArray2D<T>:: operator=(const VarArray2D<T>&) ':
      .../include/vararray.H:205: error: invalid types 'int[int]' for array
      subscript
      .../include/vararray.H:205: error: invalid types 'int[int]' for array
      subscript
      .../include/vararray.H: In member function 'VarArray3D<T>&
      VarArray3D<T>:: operator=(const VarArray3D<T>&) ':
      .../include/vararray.H:288: error: invalid types 'int[int]' for array
      subscript
      .../include/vararray.H:288: error: invalid types 'int[int]' for array
      subscript
      .../include/vararray.H:288: error: invalid types 'int[int]' for array
      subscript
      .../include/logstream.H: At global scope:
      .../include/logstream.H:66: error: declaration of 'operator<<' as non-
      function
      .../include/logstream.H:66: error: expected ';' before '<' token
      .../include/bte_stream_ufs. H: In constructor
      'BTE_stream_ufs <T>::BTE_stream _ufs(const char*, BTE_stream_type ,
      size_t)':

      and the list continues...

      Thanks...

      Comment

      • Jim Langston

        #4
        Re: Compiling Errors

        algatt wrote:
        On 31 Mar, 13:08, "Jim Langston" <tazmas...@rock etmail.comwrote :
        >algatt wrote:
        >>Hello, I am trying to compile some source code from
        >>http://www.cse.ust.hk/~yike/prtree/(source code:
        >>http://www.cse.ust.hk/~yike/prtree/prtree.tgz) but it
        >>will result from many errors ~365. Can this happen due to difference
        >>in compilers? I am using gcc latest version and the original source
        >>code was created in 2002. Any help?
        >>
        >Since you're not telling us what the errors are, how can we tell?
        >>
        >--
        >Jim Langston
        >tazmas...@rock etmail.com
        >
        Ok, here's the first few:
        >
        ../include/vararray.H: In member function 'VarArray2D<T>&
        VarArray2D<T>:: operator=(const VarArray2D<T>&) ':
        ../include/vararray.H:205: error: invalid types 'int[int]' for array
        subscript
        ../include/vararray.H:205: error: invalid types 'int[int]' for array
        subscript
        ../include/vararray.H: In member function 'VarArray3D<T>&
        VarArray3D<T>:: operator=(const VarArray3D<T>&) ':
        ../include/vararray.H:288: error: invalid types 'int[int]' for array
        subscript
        ../include/vararray.H:288: error: invalid types 'int[int]' for array
        subscript
        ../include/vararray.H:288: error: invalid types 'int[int]' for array
        subscript
        ../include/logstream.H: At global scope:
        ../include/logstream.H:66: error: declaration of 'operator<<' as non-
        function
        ../include/logstream.H:66: error: expected ';' before '<' token
        ../include/bte_stream_ufs. H: In constructor
        'BTE_stream_ufs <T>::BTE_stream _ufs(const char*, BTE_stream_type ,
        size_t)':
        >
        and the list continues...
        >
        Thanks...
        Okay, looking at the files they are ending in .C instead of .cpp. Make sure
        your compiler is compiling them as C++ code and not C code. What compiler
        and settings are you using?
        --
        Jim Langston
        tazmaster@rocke tmail.com


        Comment

        Working...