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

How to fix invalid conversion from LRESUT to Standard_Address for WindowPorc

yokoyamy jacic's picture


I took following error messages when building process has reached at 97%.

c:/oce/oce/src/ViewerTest/ViewerTest_ViewerCommands.cxx:248:37: error: invalid c
onversion from 'LRESULT (__attribute__((__stdcall__)) *)(HWND, UINT, WPARAM, LPARAM) {aka long int (__attribute__((__stdcall__)) *)(HWND__*, unsigned int, unsig
ned int, long int)}' to 'Standard_Address {aka void*}' [-fpermissive]
       ::LoadCursor (NULL, IDC_ARROW));

I use Windows7 32bit and MinGW4.8 + msys1.0.

Does anyone know how to fix this ?

yokoyamy jacic's picture

I fixed it by my own.

I use cast from `LRESULT` to `Standard_Address` .

German Filippov's picture

Hello, i tryed to build OCC library and get same error. Could you tell us more about how you solved the problem?

Kirill Gavrilov's picture

Which version of OCCT and building toolchains you are using?

German Filippov's picture

I used: Windows 10 x64, mingw 5.3, VTK 7.1 builded with QT 5.8, OCCT 7.2.0. 

Kirill Gavrilov's picture

mingw 5.3 is quite old, though I'm unable finding exact information about this release.
Have you tried up-to-date version of Mingw-w64?

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.