CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

CANNOT COMPILE

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2004, 10:35
Default CANNOT COMPILE
  #1
Luca
Guest
 
Posts: n/a
Hi! I have a Windows Fluent version. When I try to compile a UDF I have the following error: cannot find nmake. I think nmake is used to compile my file.How can I solve the problem?Thanks in advance. Luca
  Reply With Quote

Old   November 29, 2004, 12:01
Default Re: CANNOT COMPILE
  #2
HVN
Guest
 
Posts: n/a
What is your c compiler?

HV
  Reply With Quote

Old   November 29, 2004, 12:54
Default Re: CANNOT COMPILE
  #3
Luca
Guest
 
Posts: n/a
I have Borland Turbo C++ and MS Visual C++. Please help...
  Reply With Quote

Old   November 29, 2004, 13:12
Default Re: CANNOT COMPILE
  #4
HVN
Guest
 
Posts: n/a
For fluent, you need to use Microsoft Visual C++ 6.0 In a command prompt windows, could you type this 2 commands: cl and link/version. And then could you tell what are the messages?
  Reply With Quote

Old   November 29, 2004, 13:20
Default Re: CANNOT COMPILE
  #5
Luca
Guest
 
Posts: n/a
nothing works (in Fluent text GUI or in windows prompt panel). the commands don't exist.
  Reply With Quote

Old   November 29, 2004, 14:44
Default Re: CANNOT COMPILE
  #6
Luca
Guest
 
Posts: n/a
ok i typed at the prompt command in the VSC++ directory: vcvars32.bat

Now if I type cl the message is how to use cl. the link command works but i cannot make work link/version...maybe I mistake something... I wait fot your suggestions.Luca

  Reply With Quote

Old   November 29, 2004, 21:31
Default Re: CANNOT COMPILE
  #7
Aravind
Guest
 
Posts: n/a
Hi,

If you are using "Intrepret" for your UDF then make sure that you have the *.cas file, udfconfig.h and *.c file all in the same directory.When you read your case file you should read it from this directory which contains .h and .c files. If this doesnt work then copy the above three files and put it into C:\Fluent.inc folder, then it will work definitely. If your UDF (like DEFINE_CG_MOTION,DEFINE_GRID_MOTION) requires "compile" then you NEED to use VC++. Again make sure they are all in the same directory.

Hope this helps. Aravind
  Reply With Quote

Old   November 30, 2004, 02:58
Default Re: CANNOT COMPILE
  #8
HVN
Guest
 
Posts: n/a
It means that your environment variables aren't correctly set-up. It explains why Fluent couldn't find the nmake command for compilation. Perhaps you need to reinstall the VSC++
  Reply With Quote

Old   November 30, 2004, 13:41
Default Re: CANNOT COMPILE
  #9
Luca
Guest
 
Posts: n/a
Thanks Aravind, but I absolutely need to compile my function because I use the dynamic mesh.
  Reply With Quote

Old   November 30, 2004, 13:44
Default Re: CANNOT COMPILE
  #10
Luca
Guest
 
Posts: n/a
At the moment I solved the problem by typing vcvars32.bat and then launching Fluent.Now everything kworks. Thanks HVN and Aravind for your precious suggestions. Luca
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
DUNS compile with VC++, VF or gcc/g77 in PC Ali Irvi Main CFD Forum 17 August 6, 2014 09:19
How to compile OpenFOAM-1.7.x on CrunchBang linux 10 gwierink OpenFOAM Installation 0 April 5, 2011 04:38
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17:22
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 13:24


All times are GMT -4. The time now is 17:51.