Hi,
there is a compilation error using PNL from CVS (3/4/05):
g++ -DPACKAGE_NAME=\"pnl\" -DPACKAGE_TARNAME=\"pnl\"
-DPACKAGE_VERSION=\"0.2.23\" "-DPACKAGE_STRING=\"pnl
0.2.23\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pnl\"
-DVERSION=\"0.2.23\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-I. -I. -I../../cxcore/cxcore/include
-I../../c_pgmtk/include
-I../../c_pgmtk/src/include/cart
-I../../c_pgmtk/src/include -I./../include -x c++ -g
-O2 -c MRF.cpp -fPIC -DPIC -o .libs/MRF.o
MRF.cpp: In member function `void
pnlw::MRF::SetPTabular(pnlw::TokArr,
pnlw::TokArr)':
MRF.cpp:211: error: `cout' undeclared (first use this
function)
MRF.cpp:211: error: (Each undeclared identifier is
reported only once for each
function it appears in.)
MRF.cpp:211: error: `endl' undeclared (first use this
function)
make[2]: *** [MRF.lo] Error 1
make[2]: Leaving directory
`/opt/CVS/PNL/openpnl/PNL/high/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/CVS/PNL/openpnl/PNL/high'
make: *** [all-recursive] Error 1
To correct it, edit high/include/MRF.hpp and include:
#include <iostream>
using namespace std;
Bye,
Alvaro.