Author Topic: Solution here to UDF compiling Error - nmake  (Read 14325 times)

Offline piso

  • Newbie
  • *
  • Posts: 13
  • Reputation: +3/-0
  • Searching for solution
    • View Profile
Solution here to UDF compiling Error - nmake
« on: January 20, 2012, 09:35:38 AM »
Advertisement
Hi,
I just want to share my experience in compiling UDF on windows platform. Many users find it very difficult to compile UDF on Fluent. The first error they get is that:

''nmake' is not recognized as an internal or external command, operable program or batch file. 'nmake' is not recognized as an internal or external command, operable program or batch file.'

I am sharing a PDF that shows how to compile UDF.

Another issue most users get is:
"Error: open_udf_library: The operation completed successfully."

This error happens when you are compiling a .c udf file which is not in the same directory where you have the case and data files of Fluent. It may also occur when you have a - or space in the filename of the UDF or the Fluent case and data file or you have a space or - in the directory where you have these files. So make sure that filenames and directory names do not contain spaces and dashes.


Offline jorkolino

  • Newbie
  • *
  • Posts: 2
  • Reputation: +0/-0
  • Searching for solution
    • View Profile
Re: Solution here to UDF compiling Error - nmake
« Reply #1 on: June 15, 2012, 10:06:35 PM »
I do receive this message consistently (over at least 3 different machines) even when using Visual Studio 2010 professional (I am pretty confident it didn't work with VS2008 either). I do can circumvent it, but isn't it expected to WORK out of the box if it is supported?! Will anybody ever be able to give reasonable resolution to this and state which exactly compiler works with fluent and the instructions to make it work (registering variables, etc.)? I (try to) compile on win7-64bit, using either Fuent 6.3 or Fluent 13.0. Same result.
« Last Edit: June 15, 2012, 10:23:38 PM by jorkolino »

Offline william

  • Full Member
  • ***
  • Posts: 159
  • Reputation: +15/-0
  • Know it, share it.
    • View Profile
Re: Solution here to UDF compiling Error - nmake
« Reply #2 on: June 16, 2012, 08:03:27 PM »
Make sure that in the set environment, you have path added to both Fluent as well as the system32.
%systemroot%\system32;


Offline jorkolino

  • Newbie
  • *
  • Posts: 2
  • Reputation: +0/-0
  • Searching for solution
    • View Profile
Re: Solution here to UDF compiling Error - nmake
« Reply #3 on: June 19, 2012, 01:18:05 PM »
Make sure that in the set environment, you have path added to both Fluent as well as the system32.
%systemroot%\system32;
This string is present under the system variables path, yes. It does not help. What I do instead is open a shell of VStudio10.0 (from Start menu), and starting fluent from there. It finds the compilers and even compiles, but  with warnings (which were not present under XP/VStudio6.0), and  after I save and reload the case with library fluent crash-exits. So my question is, is FLuent  6.3 compilation compatible with Win7 64-bit, or I have to revert to newer Fluent version?

I need to mention that I use fluent 64bit downloaded from the fluentusers.com repository, and even though I selected Win 64bit version and the setup file name reflects that (Fluent_install-win64-6.3.26.exe), after running the installer under Win7 I get the weird warning "This installation does not support Windows operating system. Please check if an installer is available for this system". I did check the version twice, it is meant for Win-64bit. I did install it despite the warning and Fluent itself works, I even converged a case on it. But I wonder wether these compilation issues could originate from Win7 (with or w/o VS2010).
« Last Edit: June 19, 2012, 01:31:25 PM by jorkolino »