|
Boost Users : |
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2006-12-01 19:49:54
mosfet wrote:
> My wave version : 1.2.1.1813 (20050312)
> My command line :
>
> Wave.exe -D_M_IX86 -D_WIN32 -D_DEBUG -D_WINDOWS -D_MBCS
> -S"D:\Logiciels\Microsoft Platform SDK\Include"
> -S"D:\Logiciels\Microsoft Visual Studio\VC98\INCLUDE"
> -S"D:\Logiciels\Microsoft Visual Studio\VC98\MFC\INCLUDE"
> -S"D:\Logiciels\Microsoft Visual Studio\VC98\ATL\INCLUDE"
> --c99 -o foo_pre.h foo.h
>
> and I get the following :
>
> #line 47 "D:\\Logiciels\\Microsoft Platform SDK\\Include\\windef.h"
> typedef unsigned long ULONG;
> typedef ULONG *PULONG;
> typedef unsigned short USHORT;
> typedef USHORT *PUSHORT;
> typedef unsigned char UCHAR;
> typedef UCHAR *PUCHAR;
> typedef char *PSZ;
> #line 151 "D:\\Logiciels\\Microsoft Platform SDK\\Include\\windef.h"
> typedef unsigned long DWORD;
> typedef int BOOL;
> ...
>
> I don't care about windef.h, I am only intereted in replacing
> my values by these definitions.
The problem is, that a preprocessor does not replace typedef's, but only
macro definitions. So Wave is simply the wrong tool for the task.
[snip]
> #
> # add system include search paths
> #
> #-S"D:\Logiciels\Microsoft Platform SDK\Include"
> #-S"D:\Logiciels\Microsoft Visual Studio\VC98\INCLUDE"
> #-S"D:\Logiciels\Microsoft Visual Studio\VC98\MFC\INCLUDE"
> #-S"D:\Logiciels\Microsoft Visual Studio\VC98\ATL\INCLUDE"
You need to specify the paths without the quotes, otherwise Wave doesn't
recognize these. That's a known issue, which will be fixed in the upcoming
Boost release.
Regards Hartmut
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net