2009年8月30日星期日

fatal error C1001 when compiling OpenCV for x64

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=363375

There is a problem with the latest Visual Studio 2008 SP1. The compiler, cl.exe may crash when compiling a particular project, OpenCV to be specific. It is reproducable. I'll provide steps in the "Steps to Reproduce" section.

In addition to the system information I filled in,
+ I'm using Windows Vista Premium x64 on an Intel Conroe E6300 processor
+ I've got 4GB of RAM
+ I used the visual studio service pack preparation tool to remove my previously installed hotfixes, this process and the SP1 installation process were both reported to be successful by the installer.

Thanks for your feedback. We are escalating this bug to the product unit who works on that specific feature area. The team will review this issue and make a decision on whether they will fix it or not for the next release.

Thank you,
Visual Studio Product Team


We are aware of and have fixed this problem. Unfortunately the fix is not included in VS2008 SP1 release. If you need a patch for it, please contact Microsoft PSS.

Without the patch, the workaround would be to turn off the optimization of the fuction by putting pragma in the source like:

#pragma optimize("", off)

#pragma optimize("", on)

没有评论:

发表评论