|
[Sponsors] |
February 15, 2012, 10:32 |
Strange error building UDF
|
#1 |
New Member
Join Date: Jan 2012
Posts: 5
Rep Power: 14 |
Hi!
I'm trying to build an UDF with Fluent, but when I want to build it, it appears a strange error : 1 file(s) copied. 1 file(s) copied. (system "copy "C:\PROGRAMS\FLUENT_121\v121\fluent"\fluent12.1.4\ src\makefile_nt.udf libudf\win64\3d\makefile") 1 file(s) copied. (chdir "libudf")() (chdir "win64\3d")() # Generating ud_io1.h transfert_temp.c c:\programs\fluent_121\v121\fluent\fluent12.1.4\sr c\config.h(110) : error C2143: syntax error : missing '{' before ':' c:\programs\fluent_121\v121\fluent\fluent12.1.4\sr c\config.h(110) : error C2059: syntax error : ':' C:\PROGRAMS\FLUENT_121\v121\fluent\fluent12.1.4\co rtex\src\dll.h(68) : error C2061: syntax error : identifier 'CX_DLL_GetProc' C:\PROGRAMS\FLUENT_121\v121\fluent\fluent12.1.4\co rtex\src\dll.h(68) : error C2059: syntax error : ';' C:\PROGRAMS\FLUENT_121\v121\fluent\fluent12.1.4\co rtex\src\dll.h(68) : error C2059: syntax error : 'type' Done. With this UDF, I want to copy wall temperature from a wall to another. My UDF looks like that : #include "udf.h"What should have to do to erase this error? Do you have any idea? Thanks for the help. Ryk |
|
February 17, 2012, 18:04 |
Maybe..
|
#2 |
Member
vlg
Join Date: Jul 2011
Location: My home :)
Posts: 81
Rep Power: 18 |
Try this
http://www.cfd-online.com/Forums/flu...tml#post271119 You might have this problem, all error messages are the same. "The Problem was that you didn't check the box "Visual c++ compilers" when I installed the SDK. Reinstall SDK checked that box, that will solve your problem." I've searched in Google this string: src\config.h error C2143: syntax error : missing '{ 'before ':' Last edited by villager; February 20, 2012 at 18:12. |
|
February 19, 2012, 20:19 |
|
#3 | |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Maybe you have used some non-English/unicode folder. You'd better put the case in English folders without space in folder name.
Quote:
|
||
February 21, 2012, 09:38 |
|
#4 |
New Member
Join Date: Jan 2012
Posts: 5
Rep Power: 14 |
Hy,
I've solved my problem. I install Microsoft SDK 7.1 and Visual Studio Professionnal 2010 for windows 64 bit, and I launch Fluent with the Visual studio command prompt x64. Thanks all for the help. Ryk |
|
December 5, 2018, 09:35 |
|
#5 |
New Member
amirhossein gharagoz
Join Date: Dec 2018
Posts: 2
Rep Power: 0 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Source Term UDF VS Porous Media Model | pchoopanya | Fluent UDF and Scheme Programming | 1 | August 28, 2013 07:12 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
Need help: strange problem of unsteady B.C. UDF | Z. T. | FLUENT | 0 | April 11, 2003 20:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |