Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Dr Nick <3-nospam@temporary-address.org.uk> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Compilation issues while including header stddef.h |
| Date | 2012-01-03 07:44 +0000 |
| Message-ID | <87aa656xj0.fsf@temporary-address.org.uk> (permalink) |
| References | <26734ef5-7787-4bf4-86d4-505e6de16d8b@k22g2000prb.googlegroups.com> |
Arun <abarun22@gmail.com> writes:
[much snipping]
> Compiling file hal_adf_c.c
> "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin
> \amd64\cl" /c
> hal_adf_c.c
> ..\..\include\jm72\stddef.h(5) : error C2054: expected '(' to follow
> '__SIZE_TYP
> E__'
> ..\..\include\jm72\stddef.h(6) : error C2085: '__WCHAR_TYPE__' : not
> in formal p
> arameter list
>
> The file stddef.h reads as follows.
>
> #ifndef _STDDEF_H
> #define _STDDEF_H
>
> #define NULL ((void *)0)
> typedef __SIZE_TYPE__ size_t;
> typedef __WCHAR_TYPE__ wchar_t;
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
The problem is almost certainly in hal_adf_c.c before you #include
stddef.h. Or in another .h file #included immediately before stddef.h
I usually get this sort of thing by forgetting the semicolon on the end
of a structure definition.
--
Online waterways route planner | http://canalplan.eu
Plan trips, see photos, check facilities | http://canalplan.org.uk
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Compilation issues while including header stddef.h Arun <abarun22@gmail.com> - 2012-01-02 23:25 -0800
Re: Compilation issues while including header stddef.h Dr Nick <3-nospam@temporary-address.org.uk> - 2012-01-03 07:44 +0000
Re: Compilation issues while including header stddef.h Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-01-03 07:57 -0500
csiph-web