OpenQNX :: The QNX Community Portal

Jul 06, 2008 - 12:31 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 40 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
andrew_tholt
22 Post subject: POSIX_VERSION error  PostPosted: Oct 11, 2007 - 10:09 AM
New Member


Joined: Feb 25, 2005
Posts: 2

Hi,

I am having a liitle difficulty with QNX, and as I am new to this need a little help.

First a little background. It's QNX 6.3.2 on x86

I have a reasonably sized program that I tend to use as a trial for a new OS, I simply build it. Most of the time it works with little or no adjustment.

However I get this:
In file included from main.c:44:
/usr/qnx632/target/qnx6/usr/include/unistd.h:135: #error _POSIX_VERSION not configured for system
make: *** [main.o] Error 1

Suggestion on a post card to ...... Smile

Thanks,
Andrew
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
mario
Post subject: RE: POSIX_VERSION error  PostPosted: Oct 11, 2007 - 12:10 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2753

How do you build it ? Can you post the first lines (up to 44 ) of main.c?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
andrew_tholt
Post subject: RE: POSIX_VERSION error  PostPosted: Oct 11, 2007 - 12:34 PM
New Member


Joined: Feb 25, 2005
Posts: 2

Lines 1-38 are comments and the rest are:


40: #include <stdio.h>
41: #include <stdlib.h>
42: #include <sys/types.h>
43: #include <sys/stat.h>
44: #include <unistd.h>
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
mario
Post subject: RE: POSIX_VERSION error  PostPosted: Oct 11, 2007 - 05:06 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2753

What command line are you using to compile?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.