Ryan Mansfield(deleted)
|
Re: Compilation error with compiler option '-Wc,-std=c99'
|
Ryan Mansfield(deleted)
02/14/2011 9:13 AM
post83143
|
Re: Compilation error with compiler option '-Wc,-std=c99'
On 11-02-14 08:45 AM, Girisha SG wrote:
> When I use the compiler option '-Wc,-std=c99' I am getting the following
> errors ...
>
> error: 'PROT_NOCACHE' undeclared (first use in this function)
> error: (Each undeclared identifier is reported only once for each
> function it appears in.)
> error: 'MAP_PHYS' undeclared (first use in this function)
> error: 'MAP_ANON' undeclared (first use in this function)
> error: 'NOFD' undeclared (first use in this fun ction)
>
> Can I know why and how can I resolve the same ?
-std=c99 defines __STRICT_ANSI__ which shuts off the __EXT_QNX
extensions in the headers. You should be able to compile with
-Wc,-std=gnu99.
Please avoid the multiple cross posts.
Regards,
Ryan Mansfield
|
|
|