Re: Wierd compile problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 14, 2013 at 10:50 AM, awsdert <gb2985@xxxxxxxxx> wrote:
> Thank you, unfortunately it does not solve the problem I originally posted
> which is:
>
>>include\zx\window\..\std\vector\dec_fun.h|19|note: #pragma message:
> ZX__INIT( zxVECTOR, void, __attribute__((dllexport)), )|
>
>  is the output I get,
>
> include\zx\window\..\std\vector\dec_fun.h|19|note: #pragma message:
> ZX__INIT( zxVECTOR, void, __attribute__((dllexport)), zxVECTOR__init)|
>
>  is the output I expect,
>
> #define ZXV___INIT(     NAME, T, DLL, FUN  ) DLL void \
>   FUN( NAME *src, T const *cpy, size_t count )
> #define ZXV__INIT(      NAME, T, DLL, CALL ) \
>   ZXV___INIT( NAME, T, DLL, CALL NAME##__init )
>
>  is the code I'm using.
> Am I doing something wrong here or is GCC? In MSC this comes out as expected
> but in GCC  I get a bunch of missing functions due the problem.

It sounds like the Microsoft compiler expands preprocessor macros in
the "#pragma message" output and GCC does not.  As far as I know there
is no standard for how "#pragma message" works.  If you can provide a
standalone self-contained test case, I suggest that you open a GCC bug
report as described at http://gcc.gnu.org/bugs .

Ian




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux