473,320 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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.
Mar 31 '08 #1
3 1494
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
ta*******@rocketmail.com
Mar 31 '08 #2
On 31 Mar, 13:08, "Jim Langston" <tazmas...@rocketmail.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...@rocketmail.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...
Mar 31 '08 #3
algatt wrote:
On 31 Mar, 13:08, "Jim Langston" <tazmas...@rocketmail.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...@rocketmail.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
ta*******@rocketmail.com
Mar 31 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andres Rosado-Sepulveda | last post by:
Hello, I'm having trouble compiling PHP 4.3.4 on Solaris 8. This is the error message it is showing: -- start -- Undefined first referenced symbol ...
0
by: yzzzzz | last post by:
Hi, I am compiling PHP 5.0.2 myself with MySQL support. I did a ./configure --with-mysqli=/usr/local/mysql/bin/mysql_config (see end of post for complete configure) Note: I also have...
0
by: Joonas Paalasmaa | last post by:
Hi, When compiling Sketch's streamfilter C extension the errors below are raised during linking. What could cause the errors? (Python 2.3, MinGw 1.1 with GCC 2.95.3-6, Windows 98) Here are...
0
by: tyousaf | last post by:
Hi i am new to mysql and mysql++, i have installed mysql server, it is running fine. i also installed "mysql++-1.7.9gcc3.2-2.i386.rpm" (i have gcc 3.3) , first of all as the readme file says to do...
4
by: Aaron Queenan | last post by:
When I build a C++ library to .NET using the managed C++ compiler, I get the following error message: Linking... LINK : error LNK2020: unresolved token (0A000005) _CrtDbgReport LINK : error...
8
by: WebSnozz | last post by:
I have an application written in C that does a lot of low level stuff. It does a lot of things like casting from void*'s. I want to create a new GUI for it in either C# or MC++, but reuse the...
6
by: Cybex | last post by:
I am taking a C++ class and would like to use a Linux based IDE vs C+ + .Net but I am a little lost in how to go about this. I think that the IDE and compilation tools are separate under Linux. I...
2
by: renagade629 | last post by:
Can anybody help me understand what i'm doing wrong or what I'm missing? Is there anyother good and commendable C++ program I can use (free) from the internet like Dev C++? I'm having trouble doing...
2
by: Manikandan | last post by:
Hi, I have a program written in .Net Framework 1.1 using Visual studio enterprise edition 2003. I tried compiling the same program in visual c# express edition 2005. I'm getting following...
4
by: betalpha | last post by:
I'm having trouble compiling my program in Unix. I initially developed it on Windows in Eclipse. I have two files: Tokenizer.java and TokenizerMain.java. They are both in a directory called...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.