New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HashCode() and IsEqual() redifinitions (Standard_Size.hxx & Standard_Integer.hxx) #478
Comments
Indeed, you have to pass -DHAVE_CONFIG_H flag to your compiler, this is a bug in OCE. |
Wow, that was quick!!! |
Hmmm.... still getting the same error message. SET(GCC_COMPILE_FLAGS "-DHAVE_CONFIG_H") I have also double checked that the flag is correctly passed to g++. |
I added this line in Standard_Integer.hxx to make the problem go away: |
I do not understand why -DHAVE_CONFIG_H did not fix your issue. Is your oce-config.h file empty? Does it define OCE_IS_DUPLICATE_UINT32_T? |
It only contains 3 lines of comment (source: tarball for OCE 0.14.1): // This is an empty header file which is a placeholder |
And how did you build OCE? It looks like you did not use CMake. |
I am using CMake together with MinGW. |
This is weird. I see two reasons why this may happen:
Can you please check that |
Aaaaaah, I understand the problem!!! |
Okay, but this is still not fully clear; since OCE 0.13, some header files have been moved away from inc/, in particular the ones mentioned on the bug title. |
A simpler option is to modify |
Hello, I believe that this issue has been fixed, please reopen if you still have trouble. |
I am trying to compile GEOM and SMESH in windows, using the Headers from OCE.
I have tried with both MinGW and MSVC10, and I get error messages in both saying that HashCode() and IsEqual() are redefined (in Standard_Size.hxx & Standard_Integer.hxx).
Very strangely, I encountered no such issue when compiling OCE itself!
Has anyone got a helpful pointer for me?
The text was updated successfully, but these errors were encountered: