|
[Sponsors] |
May 24, 2011, 04:34 |
my problem wuth UDF compiling
|
#1 |
New Member
Join Date: Nov 2010
Posts: 19
Rep Power: 16 |
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. 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. |
|
November 17, 2011, 23:22 |
|
#2 |
Senior Member
Mohsin Mukhtar
Join Date: Mar 2010
Location: South Korea
Posts: 249
Rep Power: 17 |
Hello
Have you found a solution to this problem? I have exactly similar problem. Can you recall how did you solve? |
|
November 18, 2011, 11:41 |
|
#3 |
New Member
Join Date: Nov 2010
Posts: 19
Rep Power: 16 |
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. |
|
November 22, 2011, 01:47 |
|
#4 |
Senior Member
Mohsin Mukhtar
Join Date: Mar 2010
Location: South Korea
Posts: 249
Rep Power: 17 |
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? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About UDF compiling issues: 'nmake' | Haoyin Shan | Fluent UDF and Scheme Programming | 15 | November 4, 2019 19:05 |
A problem about 'printf' and 'Message' in UDF. | LICH | Fluent UDF and Scheme Programming | 2 | May 2, 2013 03:45 |
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 11:48 |
UDF compiling problem for 3D simulation | Marijo | FLUENT | 1 | March 28, 2006 04:21 |