Archived

This forum has been archived. Please start a new discussion on GitHub.

Build problem in linux

I complie C++ pulgin for NodeJs, to Make NodeJs as Server in IceGrid.
I have done in windows, now I try to do it in Lunix(centeros6.5) but get stuck in building.

It trun out many errors in building,here are 3 types in usual:

1. error: ‘dynamic_cast’ not permitted with -fno-rtti
2. error: ‘__ex’ was not declared in this scope
__exception(__ex);
3. error: ‘...’ handler must be the last handler for its try block [-fpermissive]
catch(const ::std::exception& __ex)

Thanks for any suggestions.

env:
ice3.6.0 centeros6.5 gcc4.9.3 python2.7

Comments

  • xdm
    xdm La Coruña, Spain
    Hi,
    1. error: ‘dynamic_cast’ not permitted with -fno-rtti

    You cannot build Ice with -fno-rtti, run time type info is required for C++ dynamic_cast and exception handling used by Ice.

    For 2 and 3 we will need a bit more info, can you show us the code that is giving you this errors, can you also include the whole compile command, and error output.
  • thank you very much.

    Now I found the solution by review node-gyp‘s document。