T
TheDD
Hello all,
i've downloaded the source code of a GPL project but i don't manage to
compile it.
It have been written with an old g++ (<3) since there are #include <xxx.h>
and no std:: at all... In addition, all the C++ file extensions are '.C'
and '.h', makefile c++ compiler variable is "CC" with "CC-FLAGS"...
But others problems are harder to solve. For example, i have:
src/rec/Train.C: In member function `void Train::WriteTrainingFile(const
char*)':
src/rec/Train.C:272: aggregate `std::filebuf fbuff' has incomplete type and
cannot be defined
with:
272 filebuf fbuff;
273 fbuff.open( path, ios:ut );
274 ostream out( &fbuff );
I don't see any problem...
Also, a g++ extension seems to be used: the "form()" function wich is used
like that:
out << form( TD_VersionFormat, TD_Version )
Do you know a macro i could define using ansi c++ so that the code can
compile?
I would like to correct the code and submit a path to these great searchers
but really poor programmers...
Thx by advance
i've downloaded the source code of a GPL project but i don't manage to
compile it.
It have been written with an old g++ (<3) since there are #include <xxx.h>
and no std:: at all... In addition, all the C++ file extensions are '.C'
and '.h', makefile c++ compiler variable is "CC" with "CC-FLAGS"...
But others problems are harder to solve. For example, i have:
src/rec/Train.C: In member function `void Train::WriteTrainingFile(const
char*)':
src/rec/Train.C:272: aggregate `std::filebuf fbuff' has incomplete type and
cannot be defined
with:
272 filebuf fbuff;
273 fbuff.open( path, ios:ut );
274 ostream out( &fbuff );
I don't see any problem...
Also, a g++ extension seems to be used: the "form()" function wich is used
like that:
out << form( TD_VersionFormat, TD_Version )
Do you know a macro i could define using ansi c++ so that the code can
compile?
I would like to correct the code and submit a path to these great searchers
but really poor programmers...
Thx by advance