Compiling Errors

A

algatt

Since you're not telling us what the errors are, how can we tell?

Ok, here's the first few:

.../include/vararray.H: In member function 'VarArray2D<T>&
VarArray2D<T>::eek:perator=(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>::eek:perator=(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...
 
J

Jim Langston

algatt said:
Since you're not telling us what the errors are, how can we tell?

Ok, here's the first few:

../include/vararray.H: In member function 'VarArray2D<T>&
VarArray2D<T>::eek:perator=(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>::eek:perator=(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?
 
A

algatt

Ok, here's the first few:
../include/vararray.H: In member function 'VarArray2D<T>&
VarArray2D<T>::eek:perator=(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>::eek:perator=(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?

In order to be on the safe side, I rename the *.c files to *.cpp, and
I made sure to compile using both g++ and gcc to try them but with the
same results.

I am using gcc 4.1.3 on Ubuntu.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top