CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

my problem wuth UDF compiling

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 24, 2011, 03:34
Default my problem wuth UDF compiling
  #1
New Member
 
Join Date: Nov 2010
Posts: 19
Rep Power: 6
m.beh is on a distinguished road
Hi every one
I try to compile my UDF in ansys 13, winxp (both 64 and 32 bit), and I installed visual stdio 2010.net

first I got the nmake error and with the help of this forum I solve the error. (I go to the path at the environment variable and paste the path of nmake file to that.)
but know I get these errors when I try to build my udf files:
Code:
Deleted old libudf\win64\2ddp\libudf.dll
        1 file(s) copied.
(system "copy "E:\behbood\INSTAL~1\64\ansysy13\install\ANSYSI~1\v130\fluent"\fluent13.0.0\src\makefile_nt.udf "libudf\win64\2ddp\makefile" ")
        1 file(s) copied.
(chdir "libudf")()
(chdir "win64\2ddp")()
# Generating ud_io1.h
degassing_source.c
..\..\src\degassing_source.c(1) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\degassing_source.c(1) : fatal error C1021: invalid preprocessor command 'includeے'
Done.
then I search the forum for these errors and I can not find any solution.
I think the error is because the C++ program do not be familiar with inclyde files that may udf has (such as udf.h and any thing that I put in the ".." after include.

can anybody help me?

I try to open fluent from commond prompt but I donot know how.
m.beh is offline   Reply With Quote

Old   November 17, 2011, 23:22
Default
  #2
Senior Member
 
Mohsin Mukhtar
Join Date: Mar 2010
Location: South Korea
Posts: 249
Rep Power: 8
Mohsin is on a distinguished road
Hello

Have you found a solution to this problem?
I have exactly similar problem. Can you recall how did you solve?
Mohsin is offline   Reply With Quote

Old   November 18, 2011, 11:41
Default
  #3
New Member
 
Join Date: Nov 2010
Posts: 19
Rep Power: 6
m.beh is on a distinguished road
hi

I just check what I wrote again. there are some characters that are wrong because I copy some of my codes from some where else.
go to MS word copy your code there then use the show paragraph symbols (crt+*) then you can see the symbols of enter, space and other symbols. if there are other than space or enter delete them.
and you can just check your code there must be a syntax error.
m.beh is offline   Reply With Quote

Old   November 22, 2011, 01:47
Default
  #4
Senior Member
 
Mohsin Mukhtar
Join Date: Mar 2010
Location: South Korea
Posts: 249
Rep Power: 8
Mohsin is on a distinguished road
Thank you very much for your reply. It's so nice of you. You were absoultely right there was some syntax error. The problem is solved however, a new error is created as follows:

udf_name.c(&) : error C2059: syntax error : '}'
udf_names.c (8): warning C4034: sizeof returns 0

there may be some extra "space" or "enter" or some other syntax error. If I send you the udf copied file on your email, could you find what error was giving "build" problem? and could you tell me why the errors are created by extra spaces and enters?
Mohsin is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A problem about 'printf' and 'Message' in UDF. LICH Fluent UDF and Scheme Programming 2 May 2, 2013 02:45
About UDF compiling issues: 'nmake' Haoyin Shan Fluent UDF and Scheme Programming 7 January 2, 2013 11:49
what's the problem with my udf zzyan FLUENT 0 November 4, 2010 04:56
HELP! Problem compiling UDF function Syrakus FLUENT 6 April 7, 2006 10:48
UDF compiling problem for 3D simulation Marijo FLUENT 1 March 28, 2006 03:21


All times are GMT -4. The time now is 01:33.