Strange error building UDF
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 |
Maybe..
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 ':' |
Maybe you have used some non-English/unicode folder. You'd better put the case in English folders without space in folder name.
Quote:
|
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 |
Quote:
|
All times are GMT -4. The time now is 05:16. |