Re: [Pixil-devel] Problems compiling PIXIL DT

marquinhos <[email protected]> Tue, 20 Dec 2005 13:16:52 -0200
Newsgroups gmane.comp.web.viewml.devel
Message-ID <[email protected]>
I said:

> >While trying to compile pixil DT, i've run into a problem... if any1
> >could help me out...
> >I get a whole bunch of errors from file included from nxdb.cxx:43
> >for example:
> >../include/nxdb.h:86: error: 'string' does not name a type

You said:
>      I had also faced same problem for fedora core 3 with gcc 3.4.
> Please specify std:: (that is resolve the scope where ever it says does
> not name a type). This will remove almost all
> errors which say "missing ; and or dependent name related errors"
>      Any ways let me know which version of gcc and OS you are using.
> Pls see README file in PixilDT it says:
> 1. RedHat 7.1 or 7.2
> 2. The expect package being present. If this is not installed, you
>    can retrieve and install it from the RedHat installation CDs.
> 3. XFree86 version 4.1 or above

Ok... it seems that the nxdb.h file had the following:

#ifdef WIN32
#ifdef _DEBUG
#define DEBUG
#endif
using namespace std;
#endif

I just removed the ifdefs.. the missing errors are gone now.. thanks...

I havent been able to compile yet..  now theres a new error...

nxdb.cxx: In member function `int NxDb::Close(std::string)':
nxdb.cxx:147: warning: control reaches end of non-void function
nxdb.cxx: In member function `int NxDb::Create(std::string, fildes*,
field*, int, int)':
nxdb.cxx:180: error: `cerr' undeclared (first use this function)
nxdb.cxx:180: error: (Each undeclared identifier is reported only once
for each function it appears in.)
nxdb.cxx:181: error: `endl' undeclared (first use this function)
nxdb.cxx: In member function `void NxDb::Insert(std::string, char*)':
nxdb.cxx:243: error: `cerr' undeclared (first use this function)
nxdb.cxx: In member function `void NxDb::Edit(std::string, int, char*)':
nxdb.cxx:296: error: `cerr' undeclared (first use this function)
nxdb.cxx:296: error: `endl' undeclared (first use this function)

by any chance did u have a similar error as well? :)

anyhow.... Ill look in to it...

We have multiple hosts... at home im using Debian sarge 3.1.. the rest
is exactly as noted in the README... at work we got Red Hat...

home:
arm-linux-gcc -> 2.95.3
gcc -> 3.3.5

work:
arm-linux-gcc -> 2.95.3
gcc -> 3.4

ok...

later...