|
[Sponsors] |
June 6, 2016, 05:49 |
How to include external packages
|
#1 |
New Member
Anders Simonsen
Join Date: Sep 2013
Posts: 18
Rep Power: 12 |
Hi
I'm facing a problem with including some packages in a UDF. I'm looking for a general way or description of how the packages are found and how to include them in the UDF. All UDF start with: #include "udf.h" However, if I want to include other packages such as iostream, I've tried: #include "iostream" #include <iostream> #include "iostream.h" #include <iostream.h> , but everytime I try to compile the UDF within Fluent, I get the following errors: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\xtgmath.h(214) : warning C4602: #pragma pop_macro : 'new' no previous #pragma push_macro for this identifier C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\cmath(23) : error C2061: syntax error : identifier 'abs' C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\cmath(23) : error C2059: syntax error : ';' C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\cmath(23) : error C2061: syntax error : identifier 'acos' ... C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\cmath(53) : error C2061: syntax error : identifier 'erf' C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\cmath(53) : error C2061: syntax error : identifier 'erfc' C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\cmath(53) : fatal error C1003: error count exceeds 100; stopping compilation It seems like a problem with cmath. I'm using Fluent v. 17.1. Best regards Anders |
|
Tags |
include |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CGNS Compiling | Diego | Main CFD Forum | 17 | December 21, 2014 01:40 |
cyclic boundary conditions for FSI | kanuk | OpenFOAM Programming & Development | 10 | April 25, 2014 02:52 |
OpenFoam install script Error during paraFoam installation | SePe | OpenFOAM Installation | 10 | June 19, 2010 15:15 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 03:01 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 07:21 |