Topic: STL and Borland 3.1
Author: krupa <krupa@hdi.kfk.de>
Date: 1995/04/03 Raw View
I try to use the STL with my Borland 3.1
and I get a long list of errors.
#include <vector.h>
#include <algo.h>
int main()
{
return 0;
}
Error ..\ITERATOR.H 43: Expression syntax
Error ..\ITERATOR.H 43: ) expected
Error ..\VECTOR.H 171: Declaration syntax error
Warning ..\VECTOR.H 198: Style of function definition is now obsolete
Error ..\VECTOR.H 198: , expected
Error ..\VECTOR.H 199: Undefined symbol 'x'
Error ..\VECTOR.H 200: Declaration terminated incorrectly
Error ..\VECTOR.H 200: Declaration terminated incorrectly
Error ..\VECTOR.H 201: Unexpected }
Error ..\VECTOR.H 201: Declaration terminated incorrectly
Error ..\VECTOR.H 214: Unexpected }
Error ..\VECTOR.H 219: Declaration terminated incorrectly
Error ..\VECTOR.H 242: Unexpected }
Error ..\VECTOR.H 249: Declaration syntax error
Warning ..\VECTOR.H 250: Style of function definition is now obsolete
Error ..\VECTOR.H 250: Declaration was expected
Error ..\VECTOR.H 251: Declaration was expected
Warning ..\VECTOR.H 274: Function should return a value
Warning ..\VECTOR.H 274: Parameter 'first' is never used
Warning ..\VECTOR.H 274: Parameter 'last' is never used
Warning ..\VECTOR.H 274: Parameter 'n' is never used
Can someone tell me what is the reason for
these errors ?
Richard Krupa
Author: carson@gwis2.circ.gwu.edu (John Carson)
Date: 1995/04/03 Raw View
krupa (krupa@hdi.kfk.de) wrote:
: I try to use the STL with my Borland 3.1
: and I get a long list of errors.
(omitted)
: Can someone tell me what is the reason for
: these errors ?
: Richard Krupa
Try with Borland 4.0 or 4.5 and the errors go away. YOu also may have an
old version of STL. I just downloaded STL from the HP site and had no
problems with Borland 4.5.