tpaviot / oce

OpenCASCADE Community Edition (OCE): a community driven fork of the Open CASCADE library.
http://groups.google.com/group/oce-dev
GNU Lesser General Public License v2.1
820 stars 284 forks source link

Fatal Error RC1102 with MSVC8 64-bit #155

Closed heyuqi closed 10 years ago

heyuqi commented 13 years ago

Hi all,

0.7.0-rc1 compiles failed with Visual Studio 2005 Win64 generator. I Had the following errors:

RC1102: internal error : too many arguments to RCPP

The msdn documentation on this error says it can be caused by too many includes (/I) or too many define symbols (/D).

heyuqi commented 13 years ago

The problem occurs when compiling Version.rc file.

I turn the OCE_NO_LIBRARY_VERSION option on, and the build successfully complete.

tpaviot commented 13 years ago

Thanks for the report. Qb uses to compile OCE with VS2008 and VS2010, you're the first so far to report compilation status with VS2005. We have then two options:

What about the testing suite? Do all the tests pass?

heyuqi commented 13 years ago

Yes, this fatal error also occurs in 32bit mode.

I link turn off OCE_NO_LIBRARY_VERSION if there is no other simple way to fix this issue.

I have no MSVC 2005 at home, so I will run all tests tonight in company. Please wait...

QbProg commented 13 years ago

Hello, could you try to disable version information? pass -DOCE_NO_LIBRARY_VERSION=ON to cmake when configuring. It should disable RC generation Not a solution, just a workaround.

Qb

heyuqi commented 13 years ago

Hi, Qb

I had disable the RC generation and successfully build done.

QbProg commented 13 years ago

Great! Thank you for the feedback.

I'm leaving this open so we can further investigate the RC issue and see if it's worth finding a workaround

heyuqi commented 13 years ago

Hi, tpaviot.

All tests passed except BRepMeshTestSuite.testMeshTorus (both in 32-bit and 64-bit mode).

But TBB dlls are missing while running tests, please have a look at the pull request #156