For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Wrong Compiler Option

Rajesh Kishore's picture
Forums: 

Hi all,
I am using Qt 4.2.2 with VC++ 8.0 & OCC 6.1 and getting the folllowing compile time error:
1>c:\OpenCASCADE6.1.0\ros\inc\Standard_values.h(22) : fatal error C1189: #error : "Wrong compiler options has been detected. Add /DWNT option for proper compilation!!!!!"

What could be the probable reason?

Rajesh Kishore's picture

Hi,
I got the answer, i have to use
win32{
DEFINES += WNT
}
in Qt's project file.
Thanks all.

Amit Kumar bedaka's picture

Hi,

I have got the solution for erroe C1189 using below link:

https://github.com/tpaviot/oce/commit/0398fc1b93e4da1b6d2fa4032b62adcdc1...

Forum supervisor's picture

Dear Amir,

I would like to draw you attention that the specified workaround is broken by design.

Related usage issue has been already fixed in OCCT by elimination of redundant macros WNT, LIN (and some others):

http://tracker.dev.opencascade.org/view.php?id=22972

This change will be available in ongoing OCCT 7.0 release.

Best regards

FSR