[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Porting CommonC++ on QNX
From: |
Mukesh Kohli |
Subject: |
RE: Porting CommonC++ on QNX |
Date: |
Tue, 11 Mar 2003 09:09:56 -0800 |
Hello Federico,
I just got a reply from QNX guys saying that they do support POSIX
P1003.1b standard. So could you please help me out figuring out how can
I resolve the following compilation error "#error POSIX Semaphores needs
P1003.1b-1993 or later".
Regards,
Mukesh Kohli
Infinera tel: 408-572-5318
1322 Bordeaux Dr fax: 408-572-5343
Sunnyvale, CA 94089 email: address@hidden
-----Original Message-----
From: Federico Montesino Pouzols [mailto:address@hidden
Sent: Monday, March 10, 2003 11:23 AM
To: Mukesh Kohli
Cc: address@hidden
Subject: Re: Porting CommonC++ on QNX
Hi,
as for the `#error "XML support is not available."', it
happens because of a bug in 1.0.8. It has been already fixed in CVS
for the next release. You can fix it replacing, in cc++/common.h, the
line "#include <cc++/xml.h>" with the following three lines:
#ifdef COMMON_XML_PARSING
#include <cc++/xml.h>
#endif
Note that this probably means that your system does not have
libxml, so the xml stuff will not be compiled.
As for the posix issue, I am not sure what may be
happening. Do you know if QNX implements the POSIX P1003.1b standard?
In case not, it may be a really difficult to solve issue. In case yes,
it may require defining some constant.
On Sat, Mar 08, 2003 at 09:05:30AM -0800, Mukesh Kohli wrote:
> Hi,
>
>
>
> Can anybody help me with the following problem ????
>
>
>
> I am trying to port CommonC++ on QNX. My main objective is to use
> FTPSocket class. I am able to build the library using -with-ftp. But I
> am not able to compile the demo directory.
>
>
>
> I am getting following error if I try to build demos directory. Kindly
> give some insight to it. Here is the dump of errors I am getting. In
> first command I am trying to build whole directory using make. In
second
> I am trying to build just ftptest.cpp.
>
>
>
>
------------------------------------------------------------------------
> --
>
> bash-2.05a# make
>
> g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include
> -I/usr/local/include -D_GNU_SOURCE -Wall -ansi -pedantic -c tcp.cpp
>
> In file included from ../include/cc++/config.h:466,
>
> from ../include/cc++/socket.h:50,
>
> from tcp.cpp:42:
>
> /usr/include/pthread.h:22: #error POSIX Threads needs P1003.1b-1993 or
> later
>
> In file included from /usr/include/pthread.h:30,
>
> from ../include/cc++/config.h:466,
>
> from ../include/cc++/socket.h:50,
>
> from tcp.cpp:42:
>
> /usr/include/sched.h:26: #error POSIX Scheduling needs P1003.1b-1993
or
> later
>
> In file included from ../include/cc++/config.h:473,
>
> from ../include/cc++/socket.h:50,
>
> from tcp.cpp:42:
>
> /usr/include/semaphore.h:28: #error POSIX Semaphores needs
P1003.1b-1993
> or later
>
> make: *** [tcp.o] Error 1
>
>
>
>
>
> bash-2.05a# g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include
> -I/usr/local/include -D_GNU_SOURCE -Wall -ansi -pedantic -c
ftptest.cpp
>
> In file included from ../include/cc++/common.h:68,
>
> from ftptest.cpp:25:
>
> ../include/cc++/xml.h:323: #error "XML support is not available."
>
>
------------------------------------------------------------------------
> --
>
>
>
>
>
>
>
> Regards,
>
> Mukesh Kohli
>
> Infinera tel: 408-572-5318
> 1322 Bordeaux Dr fax: 408-572-5343
> Sunnyvale, CA 94089 email: address@hidden
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp