Error when using wmake libso
-
请问大家出现这种错误该如何排查
COMMAND:wmake libso . wmakeLnInclude: linking include files to ./lnInclude ln: failed to create symbolic link './TomiyamaLiftForce.C': File exists ln: failed to create symbolic link './TomiyamaLiftForce.H': File exists
-
是的,加了力矩计算
-
@yuhxFoamer 同意楼上,如果说要建立自己的模型,最好是重新再user_src复制一个该模型,改个名字。
-
@yuhxFoamer 那你的炉灶起的太干净了……都是手动的,很容易出问题。
比如wmakeLnInclude的描述# Description # Link all the source files in the <dir> directory into <dir>/lnInclude
应该是 link 到某个 lnInclud 的,wmake是个加壳的make。在foam文件夹下的wmake里有操作过程。wmake调用wmakeLnIncludeAll,wmakeLnIncludeAll调用wmakeLnInclude。硬调也不是不能调。问题可能在option。
植入代码这种事情,如果不是轻车熟路。有个笨方法,但很稳。先把自带的A复制成A1,除了名字什么都不动,基本不会出错。然后再趁计算机不注意,把A1里的东西悄咪咪的、慢慢的换成你的。期间常编译看效果。
-
@yuhxFoamer 这哪里是编译不过去,这都没开始编译。wmake就是腾挪源文件的,g++给的才是编译错误。libso 只是 wmake 的运行参数,这个错误只是bash脚本里写的输出。 不过你的命令提示符真是绝了,才看件那是个命令
-
intermediateNew$ wmake libso wmake libso . g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/lagrangian/basic/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/lagrangian/distributionModels/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/transportModels/compressible/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/thermophysicalModels/specie/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/thermophysicalModels/basic/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/thermophysicalModels/thermophysicalProperties/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/thermophysicalModels/reactionThermo/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/thermophysicalModels/SLGThermo/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/thermophysicalModels/radiation/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/transportModels -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/regionModels/regionModel/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/regionModels/surfaceFilmModels/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/dynamicFvMesh/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/sampling/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude -I/home/hoyu/OpenFOAM/OpenFOAM-5.x/src/OSspecific/POSIX/lnInclude -fPIC -c parcels/derived/basicKinematicParcel/defineBasicKinematicParcel.C -o Make/linux64GccDPInt32Opt/parcels/derived/basicKinematicParcel/defineBasicKinematicParcel.o In file included from lnInclude/KinematicParcel.H:692:0, from parcels/derived/basicKinematicParcel/basicKinematicParcel.H:40, from parcels/derived/basicKinematicParcel/defineBasicKinematicParcel.C:26: lnInclude/KinematicParcelI.H:127:8: error: prototype for ‘Foam::KinematicParcel<ParcelType>::KinematicParcel(const Foam::polyMesh&, const barycentric&, Foam::label, Foam::label, Foam::label, Foam::label, Foam::scalar, Foam::scalar, Foam::scalar, const vector&, const vector&, const Foam::KinematicParcel<ParcelType>::constantProperties&)’ does not match any in class ‘Foam::KinematicParcel<ParcelType>’ inline Foam::KinematicParcel<ParcelType>::KinematicParcel
sorry我看眼花了,多加了个点这下输出真正的编译错误了