在项目文件夹中运行“wmake”时编译错误

时间:2014-02-28 10:46:25

标签: c++ linux compiler-errors

当我打开终端时,切换到我的项目目录(在我的主文件夹中)并运行命令“wmake”我收到错误:

g ++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IphaseModel / lnInclude -ImultiseseSystem / lnInclude -ImultiphaseFixedFluxPressure -IinterfacialModels / lnInclude -I / opt / openfoam221 / src / transportModels -I / opt / openfoam221 / src / transportModels / incompressible / lnInclude -I / opt / openfoam221 / src / transportModels / interfaceProperties / lnInclude -I / opt / openfoam221 / src / transportModels / incompressible / lnInclude -I / opt / openfoam221 / src / transportModels / incompressible / singlePhaseTransportModel -I / opt / openfoam221 / src / turbulenceModels -I / opt / openfoam221 / src / turbulenceModels / incompressible / LES / LESModel -I / opt / openfoam221 / src / turbulenceModels / LES / LESdeltas / lnInclude -I / opt / openfoam221 / src / finiteVolume / lnInclude -IlnInclude -I。 -I / opt / openfoam221 / src / OpenFOAM / lnInclude -I / opt / openfoam221 / src / OSspecific / POSIX / lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make / linuxGccDPOpt / multiphaseEulerFoam。 Ø -L / opt / openfoam221 / platforms / linuxGccDPOpt / lib \          -lmultiphaseSystem -lcompressibleMultiPhaseModel -linterfaceProperties -lincompressibleTransportModels -lcompressibleMultiphaseEulerianInterfacialModels -lincompressibleLESModels -lincompressibleRASModels -lfiniteVolume -lOpenFOAM -ldl -lm -o / opt / openfoam221 / platforms / linuxGccDPOpt / bin / multiphaseEulerFoam / usr / bin / ld:无法打开输出文件/ opt / openfoam221 / platforms / linuxGccDPOpt / bin / multiphaseEulerFoam:权限被拒绝collect2:ld返回1退出状态make: * [/ opt / openfoam221 / platforms / linuxGccDPOpt / bin / multiphaseEulerFoam]错误1

这个错误今天第一次发生,昨天一切都编好了。 我该如何解决这个问题?

0 个答案:

没有答案