|
[Sponsors] |
January 4, 2022, 10:36 |
wmake Compilation Error
|
#1 |
New Member
mfr
Join Date: Nov 2021
Posts: 13
Rep Power: 5 |
Hi All,
I have changed linearMotion.C in dynamicMesh. When ı try to compile with wmake I got these errors: g++ -std=c++11 -m64 -pthread -DOPENFOAM=2012 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-v2012/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v2012/src/surfMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v2012/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-v2012/src/mesh/extrudeModel/lnInclude -iquote. -IlnInclude -I/opt/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v2012/src/OSspecific/POSIX/lnInclude -fPIC -c attachDetach/attachDetach.C -o /opt/OpenFOAM/OpenFOAM-v2012/build/linux64Gcc63DPInt32Opt/src/dynamicMesh/attachDetach/attachDetach.o In file included from /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/c++config.h:507:0, from /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/cstdint:38, from /opt/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/int16.H:40, from /opt/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/int.H:40, from /opt/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/label.H:42, from lnInclude/polyMeshModifier.H:41, from attachDetach/attachDetach.H:50, from attachDetach/attachDetach.C:29: /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory #include <features.h> ^ compilation terminated. make: *** [/opt/OpenFOAM/OpenFOAM-v2012/wmake/rules/General/transform:35: /opt/OpenFOAM/OpenFOAM-v2012/build/linux64Gcc63DPInt32Opt/src/dynamicMesh/attachDetach/attachDetach.o] Error 1 How can ı solve this? |
|
January 4, 2022, 13:12 |
|
#2 | |
Member
Lorenzo
Join Date: Apr 2020
Location: Italy
Posts: 47
Rep Power: 6 |
Hi,
it is not clear what's the problem, and the information you gave aren't enough. Did you just add some calculation inside linearMotion.C? I'll try to guess: the error is due the following fatal error: Quote:
#calc error: Cant find 'features.h' So, as it's said in #5, maybe the problem it's due to missing libraries. Try with "sudo apt-get install build-essential" and restart the system. If it doesn't solve your problem, please provide more information. Regards, Lorenzo |
||
January 4, 2022, 13:23 |
|
#3 | |
New Member
mfr
Join Date: Nov 2021
Posts: 13
Rep Power: 5 |
Quote:
Thanks |
||
January 4, 2022, 14:01 |
|
#4 | |
New Member
mfr
Join Date: Nov 2021
Posts: 13
Rep Power: 5 |
Quote:
Thank you a lot |
||
Tags |
compile error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 19:00 |
Errors in UDF | shashank312 | Fluent UDF and Scheme Programming | 6 | May 30, 2013 21:30 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
[OpenFOAM] ParaFoam error message | joey | ParaView | 1 | October 2, 2006 14:28 |