构建 veins_inet 时出错:意外标记

error when building veins_inet: unexpected token

我有一台 Windows 10 PC,我按照教程安装了 Veins 5.0,因此我安装了 OMNeT++ 5.6.1。我还有第一次打开 OMNeT IDE 后安装的 INET 4.2.0。我可以成功打开来自 OMNeT++、Veins 和 INET 的模拟。然而,在构建 veins/subprojects 的 veins_project 时,出现以下错误:

10:48:52 **** Incremental Build of configuration gcc-release for project veins_inet ****
make MODE=release all 
make[1]: Entering directory '/c/src/veins-veins-5.0/subprojects/veins_inet/src'
veins_inet/VeinsInetApplicationBase.cc
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `clang++ -c -std=c++11 -O3 -DNDEBUG=1 -MMD -MP -MF ../out/clang-release/src/veins_inet/VeinsInetApplicationBase.o.d    -isystem /usr/include -isystem /mingw64/include -Wno-deprecated-register -Wno-unused-function -fno-omit-frame-pointer  -DXMLPARSER=libxml -DPREFER_QTENV -DWITH_QTENV -DWITH_PARSIM -DWITH_NETBUILDER -DWITH_OSG -DWITH_OSGEARTH -DVEINS_INET_EXPORT  -DINET_IMPORT -DVEINS_IMPORT -DVEINS_INET_EXPORT -I"C:/src/veins-veins-5.0/subprojects/veins_inet/src" -I"C:/src/veins-veins-5.0/src" -I"C:/src/inet4/src" -I. -IC:/Universidad/2019-2020 (Master)/1B - Quadrimestre Primavera/TFM/OMNET/inet/src -IC:/src/veins-veins-5.0/src -I. -IC:/src/omnetpp-5.6.1/include -o ../out/clang-release/src/veins_inet/VeinsInetApplicationBase.o veins_inet/VeinsInetApplicationBase.cc'
make[1]: *** [Makefile:153: ../out/clang-release/src/veins_inet/VeinsInetApplicationBase.o] Error 1
make[1]: Leaving directory '/c/src/veins-veins-5.0/subprojects/veins_inet/src'
make: *** [Makefile:36: all] Error 2
"make MODE=release all" terminated with exit code 2. Build might be incomplete.

10:48:53 Build Failed. 2 errors, 0 warnings. (took 942ms)

有没有人遇到过类似的事情?

很明显问题出在你的命令行

clang++ -c -std=c++11 ... -IC:/Universidad/2019-2020 (Master)/1B  ...

不要在文件夹名称中放置括号或空格。这只会导致混乱。