CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Error in opening the UDF library (http://www.cfd-online.com/Forums/fluent/43082-error-opening-udf-library.html)

Sri December 9, 2006 22:20

Error in opening the UDF library
 
Hi

I am trying to load my UDf library.It's working fine while building the library.I am experiencing the below error while trying to load the library

Opening UDF library Error open_UDF_library:The system cannot find the file specified

The log file says:" 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : U1077: 'cl' : return code '0x1' Stop."

I have Microsoft visual studio.net installed on my system. If u have a clue on this error,pls let me know.

Thanks

sri

rj December 9, 2006 22:42

Re: Error in opening the UDF library
 
You need to setup the compilation environment before you run Fluent. If your VS .net is installed under: C:\Program Files\ You should run the following command before you run Fluent if you want to compile UDFs: C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat

Sri December 10, 2006 00:52

Re: Error in opening the UDF library
 
Now it is giving the error "The application has failed to start because mspdb71.dll was not found".


Zhang December 11, 2006 17:19

Re: Error in opening the UDF library
 
I was in the same situation. My OS is Windows XP. Microsoft Visual Studio is installed. Here is what I did to fix it. Hope you can get some clue.

Go to 'Control Panle' -> 'Performance and Maintenance' -> 'System' -> 'Advanced' Tab -> 'Environment Variables'

Create environment variables and enter values as follow:

include = C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include

lib = C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib

MSDevDir = C:\Program Files\Microsoft Visual Studio\Common\MSDev98

Path = C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;c:\fluent.inc\ntbin\ntx86

I just copied these values from another computer where UDF works well. Maybe some of these values are not necessary. By the way, your udf library was not built successfully. If everything is correct, you should have a libudf.dll file in the same folder as the log file is in.


All times are GMT -4. The time now is 11:52.