Paul Burba wrote:
> On Mon, Nov 23, 2009 at 2:44 PM, Branko Čibej <br...@xbc.nu> wrote:
>   
>> I can at least explain the last bit -- MSC doesn't generate object files
>> when also generating preprocessed source. I've always been frustrated by
>> that.
>>     
>
> Thanks for that bit of info! It's quite comical as the output states
> that it *is* compiling, when it clearly is not.
>   

Never trust IDEs. "compiing" in IDE-speak usually means "invoking the
compiler" which is not quite the same. :)

>> Which implicitly explains why config_win.c now "compiles" -- it doesn't
>> compile, it's just preprocessed, and the preprocessor doesn't worry
>> about seeing tokens it can't understand.
>>
>> But really -- the /correct/ answer is to include apr.h (or svn_config.h)
>> from svn_debug.h, if you want to use the __attribute__ macro in that
>> header. Headers should always explicitly include their dependencies.
>>     
>
> Which gets us right back to my original problem: Including apr.h in
> svn_debug.h causes those cryptic errors.  Ugh. :-(
>   


I went back to look at them ... and they're not all that cryptic.
Clearly some types are not defined, it looks like a conflict between
some defines (e.g., WIN32_LEAN_AND_MEAN or_WIN32_WINNT) and the order of
includes.

Not having a Windows dev box handy, I can't dig any deeper.

-- Brane

Reply via email to