CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF compilation error

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   August 6, 2015, 07:45
Default UDF compilation error
New Member
Martin Vymazal
Join Date: Dec 2009
Posts: 16
Rep Power: 16
Martin_ is on a distinguished road

I have a legally obtained and installed copy of Fluent, that I'm trying to make run on unsupported Linux distribution (Arch Linux in my case). A compilation of a simple udf file (which works fine under Windows) results in an error on Linux. The error message is:

cpp -I"/opt/ansys_inc/v145/fluent/fluent14.5.7/src"  -I"/opt/ansys_inc/v145/fluent/fluent14.5.7/cortex/src"  -I"/opt/ansys_inc/v145/fluent/fluent14.5.7/client/src"  -I"/opt/ansys_inc/v145/fluent/fluent14.5.7/multiport/src" -I.  -DUDFCONFIG_H="<udfconfig.h>"  "/home/martin/Work/TestSimulationAnsys/Elbow_TestCase/ParabolicSteadyVelocity_ElbowPipe.c"
In file included from /home/martin/Work/TestSimulationAnsys/Elbow_TestCase/ParabolicSteadyVelocity_ElbowPipe.c:7:
/usr/include/math.h:379: warning: `M_SQRT2' redefined
/opt/ansys_inc/v145/fluent/fluent14.5.7/src/global.h:99: warning: this is the location of the previous definition
Error: /usr/include/bits/types.h: line 31: syntax error.
Besides the warnings about redefined sqrt, the only clue is 'line 31 in types.h', but this line is a typedef for unsigned short int:
typedef unsigned short int __u_short;
I have found another post with a similar problem and the solution proposed was to check the line endings to make sure that the carriage returns are in Linux format and not Windows format (i.e. use dos2unix or similar on the udf file). I tried that, but this did not fix my problem. Does anybody have a suggestion what to do? Thank you.
Martin_ is offline   Reply With Quote


compilation error, linux, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Pressure outlet boundary condition rolando OpenFOAM Running, Solving & CFD 62 September 18, 2017 06:45
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 18:54
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 09:30
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 05:07

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