Mail Archives: djgpp/1994/10/31/08:11:04
Have anyone in this list compile NEWMAT using DJGPP?
NEWMAT is a package of matrices operation, written in C++,
intended to be compiled using BC++ 3.1. I got some bugs
compiling with DJGPP, which have been corrected, but now
I can't run the Cholesky factorization. Basically the bug
is that you have something like this:
<newmat.h> :
class MatrixType {
private:
.
. Private data elements
.
protected:
.
. Some protected stuff
.
public:
.
. Some public methods
friend Boolean Rectangular (MatrixType a, MatrixType b, MatrixType c)
{ return (Some_comparisions); }
friend Boolean Compare (MatrixType, MatrixType);
}
Well, this header file is included by every module of the package
and then the loader say:
Multiple definition of symbol: Rectangular
For each module he links... Well, I thought, "Why not take the code
of Rectangular out of the class, since it's a friend method?" It
compiled... But the modules that uses this method cause a General
Protection Fault...
Can anyoune help me??
Rafael Pinto
----------------------------------------------------------------------------
Rafael Gustavo C. P. Pinto | Phone: 55-21-598-2454
Software Engineer - CEPEL | Fax: 55-21-260-1340
Electric Power Research Center |
P.O. Box 2754 | E-Mail:rafael AT acsi DOT cepel DOT br
Rio de Janeiro, RJ 20.001 - Brasil | rafael AT fund DOT cepel DOT br
----------------------------------------------------------------------------
- Raw text -