|
[Sponsors] |
July 25, 2007, 06:30 |
UDF with Visual C++ 2005 Express Edition
|
#1 |
Guest
Posts: n/a
|
Hi everybody,
I have the following problem: I cannot load the UDF in Fluent. The reason is the installtion of the C Compiler didn't work. I wrote a very simple test-udf.c : #include <udf.h> DEFINE_ON_DEMAND(test_demand) { Message("Hello world!\n"); } I used Windows XP and installed Fluent 6.2.26, Visual C++ 2005 Express Edition and MS Framework Network SDK v1.1. I want to work with Fluent on a single node, so there shouldn't be problems of parallel compiling and so on. I start Flund on command line mode, read a sample case file, then Define/User Defined/Functions compiled/add.. hello-udf.c, click on BUILD: 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. Fluent doesn't say anything about an error, but also nothing about the compilation process. A folder libudf was created in the same sub-directory. Then Loading the UDF: "D:/" Opening library "libudf"... Error: open_udf_library: The system cannot find file. Error Object: () What did I do wrong? With Visual Toolkit 2003 I worked former times, I didn't have problems, now this MS 2007 Express version makes so much trouble. Does anyone of you have experience with setting up Fluent UDF for Visual C++ 2005 Express Edition? |
|
July 25, 2007, 07:55 |
Re: UDF with Visual C++ 2005 Express Edition
|
#2 |
Guest
Posts: n/a
|
Set your environment variables correctly in your user profile.
Verify by betting a return from "cl.exe" on a freshly opened command line. |
|
July 25, 2007, 08:48 |
Re: UDF with Visual C++ 2005 Express Edition
|
#3 |
Guest
Posts: n/a
|
Hi, thanks for the advice, but still it does not work. Calling cl.exe from command line, I get an error message, saying cl.exe can't be executed cause mspdb80.dll is missing.
The pathes were configured like this: Environment variables: FLUENT_INC c:\fluent.inc;C:\Program Files\Microsoft Visual Studio 8\ and System Variables MSVC C:\program files\Microsoft Visual Studio 8\ Do you still have any advices? |
|
July 25, 2007, 10:42 |
Re: UDF with Visual C++ 2005 Express Edition
|
#4 |
Guest
Posts: n/a
|
You have only set 2 of the 10+ required environment variables.
|
|
July 25, 2007, 10:49 |
Re: UDF with Visual C++ 2005 Express Edition
|
#5 |
Guest
Posts: n/a
|
so, which environment variables I still have to set? Where can I find a list?
|
|
July 27, 2007, 04:44 |
Re: UDF with Visual C++ 2005 Express Edition
|
#6 |
Guest
Posts: n/a
|
I don't remember the command right now, but in the Visual C++ manual is explained how to set the enviroment variables to compile using the command prompt.
|
|
July 27, 2007, 06:54 |
Re: UDF with Visual C++ 2005 Express Edition
|
#7 |
Guest
Posts: n/a
|
Hi,
I just dowloaded this free version of C-compiler. There's no manuale etc. The problem is on Fluent-side. There must be someone in the world, who used Fluent 6.2.23 + Visual c++ Express version and configured the environment variables correctly. Plese, tell me the configurations. Thanks in advance. |
|
February 9, 2011, 07:39 |
|
#8 | |
New Member
Joseph Duff
Join Date: Feb 2011
Posts: 1
Rep Power: 0 |
Quote:
http://www.fix-all-dll-errors.com/mspdb80.dll/ u can go to this site...this will help in case of missing or for downloading dll's or also if there is errors in dll's..! I also registered few dll's from this site...worked in my case |
||
February 12, 2011, 06:00 |
|
#9 |
New Member
denny lee
Join Date: Feb 2011
Posts: 7
Rep Power: 15 |
Please go to 'system varibles'
Next, add the below properly to path C:\Program Files\Microsoft Visual Studio 8(Here is your version)\VC\bin; C:\Program Files\Microsoft Visual Studio 8\Common7\IDE Finally, add the new variables to the system variables. variable name : INCLUDE variable value : C:\Program Files\Microsoft Visual Studio 8\VC\include variable name : LIB variable value : C:\Program Files\Microsoft Visual Studio 8\VC\lib I should be worked, if u have installed Fluent and VS. Oh.... and also, Find the setevn at Ansys / fluent / fluent 12.** and run. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
how to access a variable in DPM within a UDF | patrick | FLUENT | 13 | September 15, 2010 09:38 |
How do you express UDF below equation? | Sang Seok Han | FLUENT | 1 | June 2, 2008 10:47 |