|
[Sponsors] |
November 27, 2011, 16:10 |
Problem with compiling the UDF
|
#1 |
New Member
Join Date: Nov 2011
Posts: 13
Rep Power: 15 |
I followed the steps posted by amir here:
http://www.cfd-online.com/Forums/blo...fluent-vc.html to compile udf. I have fluent 6.3.26 and MSVC++ 2008 express (which has visual studio 9.0, which consists of INCLUDE and LIB folder). when I compile UDF fluent gives these commands: ----------------------------------------------------------------- Deleted old libudf\ntx86\3d\libudf.dll 1 file(s) copied. (system "copy C:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\3d\makefile") 1 file(s) copied. (chdir "libudf")() (chdir "ntx86\3d")() Done. ------------------------------------------------------------------- When I load UDF I get these commands: ----------------------------------------------------------------- "c:/users/raghu mohan reddy/desktop/gambit tut" Opening library "libudf"... Error: open_udf_library: The system cannot find the file specified. Error Object: () ------------------------------------------------------------------ The log file in the libudf file created shows this: ---------------------------------------------------------- NMAKE : U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\cl.EXE"' : return code '0xc0000135' Stop. ----------------------------------------------------- Please help me in this issue Thank You, Raghu |
|
November 28, 2011, 06:53 |
|
#2 |
New Member
Josy
Join Date: Mar 2009
Location: India
Posts: 29
Rep Power: 17 |
Raghu,
If you are using a 64 bit machine, (a) download and install Microsoft Windows SDK v.7.1 (b) set the FLUENT environment variables (c) open Windows SDK v.7.1 command prompt and type 'fluent'. You'll get the FLUENT launcher. Try compiling now and see. |
|
November 29, 2011, 23:04 |
|
#3 |
New Member
Join Date: Nov 2011
Posts: 13
Rep Power: 15 |
Thank You very much for your suggestion.
With the help of first two steps (a,b) itself the compiling and loading worked out well. I just copied one of the libraries necessary for compiling from SDK library to VS10 library. |
|
November 30, 2011, 00:15 |
|
#4 |
New Member
Join Date: Nov 2011
Posts: 13
Rep Power: 15 |
I am posting how the above problm got solved here (May be a solution for 64-bit machine users only):
Actually I figured out VC++2008 which I was using was not compiling even as simple program in my PC, So I installed the VS2010 and ran a simple program and it was compiling and running good. Then I changed the system variables as suggested by the Amir's link (I gave in 1st post). Even though I was suffering with compatability issues bcoz Fluent I installed has Windows Xp compatability mode ON. I turned it OFF. (Error in Fluent:'IDB' is illegal extension for PDB file) Then came another Error: " LINK1104: cannot open file 'kernel32.lib' " . I just copied this library from Program Files (X86)--->MS SDKs---->Windows----->v7.0A--->Lib-->Kernel32 and pasted in MSVS10.0-->VC-->lib That's it done. Thanks for reading. Thank You, Raghu |
|
December 9, 2011, 02:23 |
udf
|
#5 |
Member
kabilan.B
Join Date: Jul 2010
Location: chennai
Posts: 79
Rep Power: 16 |
hai mr.ragu
i have same problem while compile my udf. actually i m using win 7 64bit. could u pls send me microsoft windows sdk v.7.1? (hareesh.aero@gmail.com) very thanks...... also one doubt, for my dynamic mesh problem i need udf,for compiling shall i need both visual studio c++ and microsoft windows sdk v.7.1? thanks |
|
December 16, 2011, 00:03 |
|
#6 |
New Member
Join Date: Nov 2011
Posts: 13
Rep Power: 15 |
hi,
Sorry for the late reply. Are you done with the problem you had? |
|
December 16, 2011, 00:22 |
|
#7 |
New Member
Join Date: Nov 2011
Posts: 13
Rep Power: 15 |
Actually I downloaded the MSVS from MS Dream Spark so they gave me whole package which consists of Microsoft SDK V7.0A. If you want that folder I will try to send you.
I don't know exactly whether both of them(sdk and vc++) are required to compile UDF but as I have copied a file ("kernel32") from MS sdk folder to MSVS library I am guessing that both are needed. Thanks, Raghu |
|
December 16, 2011, 16:13 |
|
#8 |
Member
kabilan.B
Join Date: Jul 2010
Location: chennai
Posts: 79
Rep Power: 16 |
very thanks for reply..
could u pls help to work udf for win 7 64bit? pls send me needed files. thanks |
|
December 16, 2011, 16:18 |
|
#9 |
Member
kabilan.B
Join Date: Jul 2010
Location: chennai
Posts: 79
Rep Power: 16 |
hai
i have downladed as u told but in working with command prompt error shows and shows x64compiler not installed in ur system could u pls rectify my problem? |
|
December 16, 2011, 17:37 |
|
#10 |
New Member
Join Date: Nov 2011
Posts: 13
Rep Power: 15 |
I don't know much of this. But I will try to give you information based on the way I did it. Also, it is better if you post this separately on the discussion forum so that others can help you.
Coming to your problem, Are you talking about the command prompt opened from MSVS or opened in normal way. Can you please let me know more details what you r doing. I think you have downloaded the MSVS for 32-bit(x64). It is x86(64-bit) which you need to download. Thanks, Raghu |
|
December 17, 2011, 00:34 |
udf
|
#11 |
Member
kabilan.B
Join Date: Jul 2010
Location: chennai
Posts: 79
Rep Power: 16 |
actually i m trying to load my compiled udf c file.
i m using w7 64bit... i told already my errors could u pls solve my problem? Thanks, Raghu[/QUOTE] |
|
|
|
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 |