C ++中对.so文件的未定义引用

时间:2014-07-15 18:45:32

标签: c++ linker linker-errors openfoam

使用Open Foam,创建我的模型和子模型,库已成功编译但是当我尝试使用相同的库编译求解器时链接器给我这个错误

/home/bilal/OpenFOAM/bilal-2.1.0/platforms/linux64GccDPOpt/lib/liblagrangianIntermediate_splash_new.so: undefined reference to `Foam::KinematicCloud<Foam::Cloud<Foam::KinematicParcel<Foam::particle> > >::splashDirection(Foam::Vector<double> const&, Foam::Vector<double> const&, Foam::Vector<double> const&) const' 
collect2: ld returned 1 exit status
make: *** [/home/bilal/OpenFOAM/bilal-2.1.0/platforms/linux64GccDPOpt/bin/reactingParcelFilmFoam_neu_splash] Error 1

有谁知道这个错误是什么?我在Ubuntu 12.04 LTS上使用GCC

0 个答案:

没有答案