Discussion:
[Pixil-devel] Problems compiling PIXIL DT
marquinhos
2005-12-19 15:41:22 UTC
Permalink
Hi,

While trying to compile pixil DT, i've run into a problem... if any1
could help me out...

In pixil_source_dir/pixilDT/NxDb

I get a whole bunch of errors from file included from nxdb.cxx:43

for example:

../include/nxdb.h:62: error: expected init-declarator before '<' token

or even:

../include/nxdb.h:86: error: 'string' does not name a type
../include/nxdb.h:91: error: 'string' has not been declared

Can any1 help me out?

thnks
Greg Haerr
2005-12-20 04:05:06 UTC
Permalink
What compiler version are you using? I think there
are some issues if you don't use the compiler version
stated in the pixil/docs info.

Regards,

Greg




While trying to compile pixil DT, i've run into a problem... if any1
could help me out...

In pixil_source_dir/pixilDT/NxDb

I get a whole bunch of errors from file included from nxdb.cxx:43

for example:

../include/nxdb.h:62: error: expected init-declarator before '<' token

or even:

../include/nxdb.h:86: error: 'string' does not name a type
../include/nxdb.h:91: error: 'string' has not been declared

Can any1 help me out?

thnks
marquinhos
2005-12-20 15:16:52 UTC
Permalink
Post by marquinhos
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
../include/nxdb.h:86: error: 'string' does not name a type
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.
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...
Greg Haerr
2005-12-20 16:08:56 UTC
Permalink
home:
arm-linux-gcc -> 2.95.3
gcc -> 3.3.5

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


I think PIXIL DT needs to be compiled with 2.95,
of course, it only runs on the desktop. (and hasn't
been updated for the newer [in]compatible C++
versions.

Regards,

Greg
Atul
2005-12-21 08:29:13 UTC
Permalink
Send Pixil-devel mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
http://www.pixil.org/cgi-bin/mailman/listinfo/pixil-devel
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Pixil-devel digest..."
1. Re: Problems compiling PIXIL DT (Greg Haerr)
2. Re: Pixil-devel Digest, Vol 15, Issue 5 (Atul)
3. Re: Problems compiling PIXIL DT (marquinhos)
4. Re: Problems compiling PIXIL DT (Greg Haerr)
----------------------------------------------------------------------
Message: 1
Date: Mon, 19 Dec 2005 21:05:06 -0700
Subject: Re: [Pixil-devel] Problems compiling PIXIL DT
Content-Type: text/plain; charset="iso-8859-1"
What compiler version are you using? I think there
are some issues if you don't use the compiler version
stated in the pixil/docs info.
Regards,
Greg
While trying to compile pixil DT, i've run into a problem... if any1
could help me out...
In pixil_source_dir/pixilDT/NxDb
I get a whole bunch of errors from file included from nxdb.cxx:43
../include/nxdb.h:62: error: expected init-declarator before '<' token
../include/nxdb.h:86: error: 'string' does not name a type
../include/nxdb.h:91: error: 'string' has not been declared
Can any1 help me out?
thnks
_______________________________________________
Pixil-devel mailing list
http://www.pixil.org/cgi-bin/mailman/listinfo/pixil-devel
------------------------------
Message: 2
Date: Tue, 20 Dec 2005 16:10:44 +0530
Subject: [Pixil-devel] Re: Pixil-devel Digest, Vol 15, Issue 5
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Send Pixil-devel mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
http://www.pixil.org/cgi-bin/mailman/listinfo/pixil-devel
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Pixil-devel digest..."
1. Problems compiling PIXIL DT (marquinhos)
----------------------------------------------------------------------
Message: 1
Date: Mon, 19 Dec 2005 13:41:22 -0200
Subject: [Pixil-devel] Problems compiling PIXIL DT
Content-Type: text/plain; charset=ISO-8859-1
Hi,
While trying to compile pixil DT, i've run into a problem... if any1
could help me out...
In pixil_source_dir/pixilDT/NxDb
I get a whole bunch of errors from file included from nxdb.cxx:43
../include/nxdb.h:62: error: expected init-declarator before '<' token
../include/nxdb.h:86: error: 'string' does not name a type
../include/nxdb.h:91: error: 'string' has not been declared
Can any1 help me out?
thnks
------------------------------
_______________________________________________
Pixil-devel mailing list
http://www.pixil.org/cgi-bin/mailman/listinfo/pixil-devel
End of Pixil-devel Digest, Vol 15, Issue 5
******************************************
Hi,
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) ....If it also doesn't work you might have seen note
form gcc to use typename. So go with that and specify typename whereever
appropriate (eg. typename std::string) . 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.
PIXIL 1.2 for the desktop is dependent on the following Linux features
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
Please see the README.Desktop file for more information on obtaining and
installing dependent packages.
Best of luck.
Atul
***********************Confidentiality Notice***************************
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information. If you are not
the intended recipient, please notify the sender at Divinet or
message and any attachments.
************************************************************************
------------------------------
Message: 3
Date: Tue, 20 Dec 2005 13:16:52 -0200
Subject: Re: [Pixil-devel] Problems compiling PIXIL DT
Content-Type: text/plain; charset=ISO-8859-1
Post by marquinhos
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
../include/nxdb.h:86: error: 'string' does not name a type
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.
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
#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:147: warning: control reaches end of non-void function
nxdb.cxx: In member function `int NxDb::Create(std::string, fildes*,
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:243: error: `cerr' undeclared (first use this function)
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...
arm-linux-gcc -> 2.95.3
gcc -> 3.3.5
arm-linux-gcc -> 2.95.3
gcc -> 3.4
ok...
later...
------------------------------
Message: 4
Date: Tue, 20 Dec 2005 09:08:56 -0700
Subject: Re: [Pixil-devel] Problems compiling PIXIL DT
Content-Type: text/plain; charset="iso-8859-1"
arm-linux-gcc -> 2.95.3
gcc -> 3.3.5
arm-linux-gcc -> 2.95.3
gcc -> 3.4
I think PIXIL DT needs to be compiled with 2.95,
of course, it only runs on the desktop. (and hasn't
been updated for the newer [in]compatible C++
versions.
Regards,
Greg
------------------------------
_______________________________________________
Pixil-devel mailing list
http://www.pixil.org/cgi-bin/mailman/listinfo/pixil-devel
End of Pixil-devel Digest, Vol 15, Issue 6
******************************************
Hi,
Checkout whether standard iostream file is included...include
it...These Errors will go.

Bye
Atul















***********************Confidentiality Notice***************************

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information. If you are not
the intended recipient, please notify the sender at Divinet or
***@divinetaccess.com immediately and destroy all copies of this
message and any attachments.

************************************************************************
Loading...