Loading...
Home / Problem while building swig

Home Forums General Problem while building swig

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6796
    SundarJ
    Participant

    Hi,
    I cloned latest version of ORE and ORE-SWIG.

    My build of ORE completed. I am using Visual Studio 2017 x64.
    When I do build of ORE-SWIG, I am facing errors. The error I get:

    dendAmericanEngine<QuantLib::CrankNicolson>’
    C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\CMakeFiles\_OREAnalytics.dir\oreanalyticsPYTHON_wrap.cxx(697188): error C2143: syntax error: missing ‘;’ befor
    e ‘-‘ [C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\_OREAnalytics.vcxproj]
    C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\CMakeFiles\_OREAnalytics.dir\oreanalyticsPYTHON_wrap.cxx(697188): error C2182: ‘init_OREAnalytics’: illegal us
    e of type ‘void’ [C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\_OREAnalytics.vcxproj]
    C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\CMakeFiles\_OREAnalytics.dir\oreanalyticsPYTHON_wrap.cxx(697188): error C2143: syntax error: missing ‘;’ befor
    e ‘{‘ [C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\_OREAnalytics.vcxproj]
    C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\CMakeFiles\_OREAnalytics.dir\oreanalyticsPYTHON_wrap.cxx(697188): error C2447: ‘{‘: missing function header (o
    ld-style formal list?) [C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\_OREAnalytics.vcxproj]

    #6797
    SundarJ
    Participant

    I am able run the following:
    mkdir build \
    cmake -G “Visual Studio 15 2017” \
    -A x64 \
    -D SWIG DIR= <SWIG_DIR> \
    -D SWIG EXECUTABLE= <PATH_TO_swig.exe> \
    -D ORE:PATHNAME= <PATH_TO_ORE_ROOT> \
    -D BOOST ROOT= <PATH_TO_BOOST> \
    -S OREAnalytics-SWIG/Python \
    -B build \

    The failure happens when I run the following:
    cmake –build build

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.