CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF with Visual C++ 2005 Express Edition (https://www.cfd-online.com/Forums/fluent/45503-udf-visual-c-2005-express-edition.html)

Martin July 25, 2007 05:30

UDF with Visual C++ 2005 Express Edition
 
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?

Joe. July 25, 2007 06:55

Re: UDF with Visual C++ 2005 Express Edition
 
Set your environment variables correctly in your user profile.

Verify by betting a return from "cl.exe" on a freshly opened command line.

Martin July 25, 2007 07:48

Re: UDF with Visual C++ 2005 Express Edition
 
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?

Joe July 25, 2007 09:42

Re: UDF with Visual C++ 2005 Express Edition
 
You have only set 2 of the 10+ required environment variables.

Martin July 25, 2007 09:49

Re: UDF with Visual C++ 2005 Express Edition
 
so, which environment variables I still have to set? Where can I find a list?

flga July 27, 2007 03:44

Re: UDF with Visual C++ 2005 Express Edition
 
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.

Martin July 27, 2007 05:54

Re: UDF with Visual C++ 2005 Express Edition
 
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.

josephduff February 9, 2011 06:39

Quote:

Originally Posted by Martin
;143849
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.

any advices?

hi,
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 :)

kokoory February 12, 2011 05:00

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.

alven299 April 19, 2011 10:25

Hi Kokoory,

May I know how can I access the 'system varibles'?

thanks


All times are GMT -4. The time now is 00:36.