[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Internal compiler error 108
From: |
Keith Russell |
Subject: |
Internal compiler error 108 |
Date: |
Mon, 4 Feb 2002 07:03:40 -0800 (PST) |
//darray.h :
#ifndef DARRAY_CLASS
#define DARRAY_CLASS
class Darray{
public:
Darray();
template<typename T>
Darray(int initialCapacity);
int size();
template<typename T>
T* resize(int);
template<typename T>
T& operator [] (int);
private:
template<typename T>
T* array;
int arrayCapacity;
};
//darray.cpp
#include<stdlib.h>
#include<iostream.h>
#include"darray.h"
// ...
int Darray::size(){
int arraySize = 0;
for(int i=0; i<arrayCapacity; i++)
if (array[i]!=NULL) arraySize = (i+1);
return arraySize;
}
//The error was on the line in Darraythat holds the "if" statement.
//The entire error box read:
//Compiling c:/programg/djgpp/practice/darray.cpp
//In method 'int Darray::size()':
//../practice/darray.cpp(15) Error: Internal compiler error 108.
//../practice/darray.cpp(15) Error: Please submit a full bug report to
'address@hidden'.
//There were some errors.
//There are syntactical errors with the program, one of which being
that I didn't make Darray::size() a template function.
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Internal compiler error 108,
Keith Russell <=