Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    undefined symbol

    OpenFOAM
    1
    1
    347
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 李东岳
      李东岳 管理员 last edited by 李东岳

      dyfluid@dyfluid:~/twoWayHyQMOMFoam/tutorials/PTC_2D/testCase2$ oneWayHyQMOMFoam 
      oneWayHyQMOMFoam: symbol lookup error: oneWayHyQMOMFoam: undefined symbol: _ZN4Foam6HyQMOMC1ERKNS_7PtrListINS1_INS_14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEEEEEE
      

      原因:当时调整了src下的的构造函数,紧跟着solver那面的构造函数也加了一个参数进去。然后重新编译了src,忘记了编译solver,出错。
      方案:重新编译solver后解决。


      #0  Foam::error::printStack(Foam::Ostream&) at ??:?
      #1  Foam::sigSegv::sigHandler(int) at ??:?
      #2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
      

      原因:在class里面增加了一个私有成员,编译库之后,求解器可以对类进行初始化,随即报错。报错只有3行,没有任何其他信息
      方案:编译class之后,尤其这种增加私有成员的时候,记得重新编译solver一下就可以解决

      CFD高性能服务器 http://dyfluid.com/servers.html

      1 Reply Last reply Reply Quote
      • First post
        Last post

      CFD中文网 | 东岳流体 | 京ICP备15017992号-2
      论坛登录问题反馈可联系 li.dy@dyfluid.com