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

udf compiling error concerning 'nmake'

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2008, 17:56
Default udf compiling error concerning 'nmake'
  #1
Violet
Guest
 
Posts: n/a
Hi Guys, I am going through one of Fluent's tutorials and there is UDF that I need to compile. Every time that I try to compile the C program using Fluent (exactly as described in the tutorial), I got the error message that "'nmake' is not recognized as an internal or external command, operable program or batch file".

Since this is a udf written by Fluent people, it should be error-free so I wonder if there is something else that is wrong. Thanks a lot.
  Reply With Quote

Old   September 10, 2008, 07:25
Default Re: udf compiling error concerning 'nmake'
  #2
selvag
Guest
 
Posts: n/a
hi, you need to install VC++ in your system to avoid this 'nmake' error while compiling.
  Reply With Quote

Old   September 10, 2008, 09:51
Default Re: udf compiling error concerning 'nmake'
  #3
Violet
Guest
 
Posts: n/a
Thanks so much. That's what I kind of remembered too because I used it four years ago.

Best.
  Reply With Quote

Old   September 10, 2008, 15:14
Default Re: udf compiling error concerning 'nmake'
  #4
Violet
Guest
 
Posts: n/a
I've had VC++ installed on my windows and it still gives the same 'nmake' error. On the other hand, I tried to start Fluent from the VC++ command prompt and now the 'nmake' error is gone. However, it starts to give error message like this:

c:\fluent.inc\fluent6.3.26\src\config.h(119) : error C2143: syntax error : missing '{' before ':'

c:\fluent.inc\fluent6.3.26\src\config.h(119) : error C2059: syntax error : ':'

c:\fluent.inc\fluent6.3.26\cortex\src\dll.h(58) : error C2061: syntax error : identifier 'CX_DLL_GetProc'

c:\fluent.inc\fluent6.3.26\cortex\src\dll.h(58) : error C2059: syntax error : ';'

c:\fluent.inc\fluent6.3.26\cortex\src\dll.h(58) : error C2059: syntax error : 'type'.

I guess this is some kind of DLL error and I am not sure how to resolve this either.

Thanks for the help.
  Reply With Quote

Old   September 11, 2008, 07:33
Default Re: udf compiling error concerning 'nmake'
  #5
Daniel Tanner
Guest
 
Posts: n/a
Violet, I had the same issue.

I used the "Visual Studio Command Prompt" as you have and received the same error. As I am using a 64-bit system I found that you need to used the 64-bit version not the standard i.e. for me I use "Visual studio 2008 x64 Win64 Command Prompt".

Also make sure you launch fluent from the directory containing the C files!

Hope this helps!
  Reply With Quote

Old   September 11, 2008, 10:59
Default Re: udf compiling error concerning 'nmake'
  #6
Violet
Guest
 
Posts: n/a
Thank Daniel for your response. I am also using a 64bit intel machine and I have VC++ 2005 on my computer. I started Fluent form a SDK v2.0(64bit) console and now it works. Though there are some warnings there.
  Reply With Quote

Old   October 23, 2012, 06:27
Smile
  #7
New Member
 
dengjiajia
Join Date: Sep 2011
Posts: 14
Rep Power: 14
dunga82 is on a distinguished road
Quote:
Originally Posted by Violet
;153348
Thank Daniel for your response. I am also using a 64bit intel machine and I have VC++ 2005 on my computer. I started Fluent form a SDK v2.0(64bit) console and now it works. Though there are some warnings there.
I am sorry that I don't know how to start fluent form a SDK v2.0(x 64) console?
Could you please help me .
thanks.
dunga82 is offline   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
About UDF compiling issues: 'nmake' Haoyin Shan Fluent UDF and Scheme Programming 15 November 4, 2019 18:05
Errors when Compiling UDF: error C2040/error C2099 Julian K. FLUENT 1 December 21, 2008 00:23
what does nmake is invalid command [nmake] mean? chunying FLUENT 0 December 21, 2007 04:30
'nmake'-error when compiling an UDF Ted FLUENT 4 February 15, 2007 18:56
NMAKE COMMANDIN COMPILING svh FLUENT 2 September 30, 2004 07:12


All times are GMT -4. The time now is 13:31.