div.c and other questions
brg at gladman.plus.com
Tue Sep 28 15:39:30 CEST 2004
Vincent Lefevre wrote:
> On 2004-09-28 13:50:28 +0200, Michel Bardiaux wrote:
>>Do you see any reason not to take this back to the list? If yes,
>>please forward this to the list.
> You sent me a private copy (I was the only one in the To|Cc headers).
> So, back to the lists...
>>* "near" and "far" have to be considered reserved as far as 'exported'
>>headers are concerned, since those headers might be included by
>>application code that also includes windows.h
>>* Why MSVC++ complains when compiling div.c is still mysterious; I cant
>>look into that without knowing exactly how the OP tried to compile.
> You could try on a simple example:
> int test(void)
> int near = 0;
> return near;
> (just compile it, do not link it). Then, you can try with various
> standard headers to see which one is the problem...
Please note, however, that this is only a problem with the Microsoft VC6
compiler - VC7.0, VC7.1 and VC8 have no problems with it. Moreover, I
don't think it is a header problem (but I may be wrong since I don't run
VC6 these days).
More information about the gmp-discuss