When specifying include directories for windres via the "-I" or "--include-dir=" options that also happen to match input formats (i.e. a directory named "res"), windres assumes they are the latter and outputs a warning. This obscure backwards-compatibility reference causes confusion and is only briefly mentioned in the windres manual which still does not explain the following problems:
1) The warning is emitted even if including a -J option which explicitly specifies the input format. I.E. "windres -J res -I res" should make it obvious that the -I option refers to an input directory and not an input format. 2) Using the "--include-dir=" should also make it explicit that "--include-dir=res" is specifying an include dir named "res" and not an input format. 3) Quoting the the input directory as in "-I "res"" should also make it explicit that a directory is being provided rather than an input format. 4) Any gains in backwards-compat. surely out-weigh those lost in forwards- and cross-compatibility (i.e. see the "/I" option in RC: http://msdn.microsoft.com/en-us/library/aa381055%28VS.85%29.aspx) If it's the case that backwards-compat. trumps all, then in the least, problem #2 should be fixed (i.e. "--include-dir=res" should include directory "res"). Another developer from the mailing list has notified that he has a patch ready to address this issue. -- Summary: directory names conflict with windres include directories Product: binutils Version: 2.21 (HEAD) Status: NEW Severity: minor Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: anthony dot penniston at hotmail dot com CC: anthony dot penniston at hotmail dot com,bug-binutils at gnu dot org,nickc at redhat dot com GCC build triplet: all GCC host triplet: all GCC target triplet: all http://sourceware.org/bugzilla/show_bug.cgi?id=11711 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils