CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   my problem wuth UDF compiling (http://www.cfd-online.com/Forums/fluent/88698-my-problem-wuth-udf-compiling.html)

m.beh May 24, 2011 03:34

my problem wuth UDF compiling
 
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.

Mohsin November 17, 2011 23:22

Hello

Have you found a solution to this problem?
I have exactly similar problem. Can you recall how did you solve?

m.beh November 18, 2011 11:41

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.

Mohsin November 22, 2011 01:47

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?


All times are GMT -4. The time now is 17:31.