locked
Case sensitivity in source files and object files? RRS feed

  • Question

  • In C documentation from MSDN it says the following:

    Although identifiers in source files are case sensitive by default, symbols in object files are not. Microsoft C treats identifiers within a compilation unit as case sensitive. The Microsoft linker is case sensitive. You must specify all identifiers consistently according to case.

    My question: How can linker be case sensitive if symbols in object files it links are not? How does it recognize case sensitivity?

    http://msdn.microsoft.com/en-us/library/e7f8y25b.aspx

    Saturday, October 30, 2010 4:12 AM

Answers

  • http://msdn.microsoft.com/en-us/library/e7f8y25b.aspx
    My question: How can linker be case sensitive if symbols in object files it links are not? How does it recognize case sensitivity?

    The statement about the object file in that document seems to be
    conflicting with the other ones. Since 'C' is case sensitive, I'd
    always expected that to be preserved throughout.

    Dave

    • Marked as answer by Victor Stout Saturday, October 30, 2010 3:35 PM
    Saturday, October 30, 2010 8:55 AM