From: Yusuke Endoh Date: 2010-06-17T04:12:52+09:00 Subject: [ruby-core:30781] [Bug #3231] Digest Does Not Build Issue #3231 has been updated by Yusuke Endoh. Target version changed from 1.9.2 to 1.9.x Hi, 2010/6/15 Akinori MUSHA : > Thanks so much for the detailed explanation. ?Can I ask you something? ?Does VC++ search directories in random order, or does it work under any specific rules that changed in VC++ 2010? > > In Unix, there is a spec in SUS that the order of specifying -I/-L options is significant for the compiler commands, and they shall search directories named in those options in the order specified. http://msdn.microsoft.com/ja-jp/library/36k2cdd4.aspx The preprocessor searches for include files in the following order: 1. In the same directory as the file that contains the #include statement. 2. In the directories of any previously opened include files in the reverse order in which they were opened. The search starts from the directory of the include file that was opened last and continues through the directory of the include file that was opened first. 3. Along the path specified by each /I compiler option. 4. Along the paths specified by the INCLUDE environment variable. The 2 seems to cause this issue. BTW, knu seemed to apply Usaku's patch at r28341 to ruby_1_9_2 branch, so this issue would not occur in ruby_1_9_2. I set this ticket to 1.9.x. -- Yusuke Endoh ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3231 ---------------------------------------- http://redmine.ruby-lang.org