Re: The case insensitive #include statement horror...



I've found the whole thing of Windows not understanding case in filenames to
be challenging from the beginning having come from a Unix background.

I don't know if this is useful to you or not, but have you seen the MainWin
toolkit?

http://www.ddj.com/184410913

Also, you can use a #pragma comment to warn the developer at run time or,
perhaps add a pre-build step that renames the .h files to what you would
expect them to be?

I know this doesn't directly answer the question. The real answer is I
don't think there is a #pragma to do what you'd like, although I think it
would be very useful. The real answer is for Windows programmers to become
more disciplined in how they type in filenames, but, um, like that's going
to happen.

tom

"Stephan Kuhagen" <nospam@xxxxxxxxxx> wrote in message
news:ekk55m$2b4$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello

Sorry for crossposting. I'm not really sure, what is the right place for
the
question I have:

I'm managing a huge build system for multiple platforms (Win*, Linux,
MacOSX). Most of our programmers work on Windows and seem to be unable to
learn the difference between upper and lower case characters in #include.
So most time the thing works on Windows, but fails on the others. Although
they get mails when a project fails, the errors either do not get fixed or
they re-appear after every change... This is _really annoying_ ! - Does
anyone here know a switch, pragma or other trick to make the
Microsoft-Compilers (VC6 and up) case-sensitive in #include-statements and
throw an error on wrong case?

"Thanks for not shooting me"
Regards
Stephan Kuhagen


.



Relevant Pages

  • Re: The case insensitive #include statement horror...
    ... like the case-insensitivity of the Windows file system, ... it's more like asking the programmer switching case sensitivity in their ... It enlarges the namespace of possible filenames... ... If there really were no reason to have upper ...
    (microsoft.public.vc.language)
  • Re: Got it working, kind of. was Re: Adding network and internet to Warp 4
    ... Windows Explorer and I see long filenames. ... from an OS/2 window, ... Advanced install when I installed it, and I don't remember there being ...
    (comp.os.os2.misc)
  • Re: Got it working, kind of. was Re: Adding network and internet to Warp 4
    ... Windows Explorer and I see long filenames. ... Firefox ver 3 shows up as Firefox_.zip. ... Advanced install when I installed it, and I don't remember there being ...
    (comp.os.os2.misc)
  • Re: Finding short file names?
    ... >Windows XP has migrated well past "short filenames". ... When someone does a copy or xcopy of the system partition, the SFNs ... "Shell Extensions" if you have some programming chops and patience. ...
    (microsoft.public.windowsxp.general)
  • Re: The case insensitive #include statement horror...
    ... As an alternate solution I would suggest to run a script that will. ... So most time the thing works on Windows, ... they get mails when a project fails, the errors either do not get fixed or ... pragma or other trick to make the ...
    (microsoft.public.vc.language)