Build problem in linux

fenfenshijiefenfenshijie Member Gen luozjOrganization: ifeidao softwareProject: ERP server framework
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

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    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.
  • fenfenshijiefenfenshijie Member Gen luozjOrganization: ifeidao softwareProject: ERP server framework
    thank you very much.

    Now I found the solution by review node-gyp‘s document。
Sign In or Register to comment.