CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Error compiling in Ubuntu for Windows

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 19, 2021, 09:02
Default Error compiling in Ubuntu for Windows
  #1
New Member
 
Tobias
Join Date: Oct 2020
Posts: 4
Rep Power: 5
Tibbz2 is on a distinguished road
Hi,

I have recently switched from using OpenFoam on my native linux laptop to running on a Windows PC.

I have installed OF through Ubuntu for Windows, but upon trying to compile my own fvOptions source (a modified actuation disk source) I get an error:

Code:
In file included from /home/pmxtl3/OpenFOAM/ThirdParty-v1812/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/c++config.h:507:0,
                 from /home/pmxtl3/OpenFOAM/ThirdParty-v1812/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/cstdint:38,
                 from /home/pmxtl3/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/int16.H:38,
                 from /home/pmxtl3/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/int.H:38,
                 from /home/pmxtl3/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/label.H:39,
                 from /home/pmxtl3/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude/fieldTypes.H:32,
                 from /home/pmxtl3/OpenFOAM/OpenFOAM-v1812/src/finiteVolume/lnInclude/fvMatricesFwd.H:32,
                 from /home/pmxtl3/OpenFOAM/OpenFOAM-v1812/src/finiteVolume/lnInclude/fvOption.H:47,
                 from cellSetOption/cellSetOption.H:54,
                 from cellSetOption/cellSetOption.C:26:
/home/pmxtl3/OpenFOAM/ThirdParty-v1812/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>
                      ^
Does anyone know how I can get around this?

Thanks!
Tibbz2 is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu instabilities and hardware settings Andrew2 Hardware 5 May 6, 2020 23:19
[OpenFOAM.org] Can't find installation instruction for Openfoam 2.4.x , on Ubuntu 16.04 titanium OpenFOAM Installation 14 February 20, 2020 11:46
openfoam-2.3.0 on ubuntu natty 11.04 mickjazz OpenFOAM Installation 1 August 5, 2014 13:01
Ansys 13 - License problem on Ubuntu MarTar ANSYS 4 February 3, 2012 02:13
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 06:07.