|
[Sponsors] |
June 6, 2016, 06:49 |
How to include external packages
|
#1 |
New Member
Anders Simonsen
Join Date: Sep 2013
Posts: 18
Rep Power: 13 |
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 |
|
September 5, 2016, 11:20 |
|
#2 |
New Member
Join Date: Feb 2011
Location: France
Posts: 9
Rep Power: 15 |
Hi Anders,
Have you managed to solve your problem ? I am facing exaclty the same issue... Ghassan |
|
September 5, 2016, 11:42 |
|
#3 |
New Member
Anders Simonsen
Join Date: Sep 2013
Posts: 18
Rep Power: 13 |
||
September 7, 2016, 12:38 |
|
#4 | |
Member
ERMACORA Florian
Join Date: May 2016
Posts: 39
Rep Power: 10 |
Quote:
|
||
Tags |
include |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CGNS Compiling | Diego | Main CFD Forum | 17 | December 21, 2014 02:40 |
cyclic boundary conditions for FSI | kanuk | OpenFOAM Programming & Development | 10 | April 25, 2014 03:52 |
OpenFoam install script Error during paraFoam installation | SePe | OpenFOAM Installation | 10 | June 19, 2010 16:15 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |