Has anyone been able to get a compiler for microsoft xp (with fluent 6.3) other than visual studios pro version 6? i would like to get the new visual studios compiler (i think they are on version 8 or 9 now), but i cant get fluent to work with any of these new compilers because I cant set the environmental variables.
Getting Fluent 6 (or 12) to run with Windows SDK compilers
I recently set up fluent to run with the latest microsoft compilers using the latest windows SDK. I'll outline the process below:
Download the latest Windows SDK from microsoft msdn developer center(http://www.microsoft.com/downloads/d...displaylang=en)
(it's OK that it is says it's the Windows server 2008 SDK it's compatible with XP, vista, and server 2008)
You don't need to install everything, just the main components: the compilers, the headers and libraries, and the development tools.
The default environment for the compilers is microsoft server 2008 in debug mode to change this once installed, navigate to the windows SDK folder via the start menu and right-click on the "cmd shell" shortcut and select properties. In the "target" box go to the very end of the string and add:
/Release /x64 /xp
(this is assuming you are using 64-bit windows xp as your target machine. change the /x64 to /x86 if you are using a 32bit machine as your target machine)
Thus your final string should look something like this:
C:\WINDOWS\system32\cmd.exe /E:ON /V:ON /T:0E /K "C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.Cmd" /Release /xp /x64
Once this is setup, when you want to compile a UDF in fluent you need to launch fluent from this command prompt. To make this easier, set an enviromental variable for the fluent executable locaton (you'll need to be an administrator on the computer):
Right click on my computer->properties. Select the advanced tab and at the bottom click "environmental variables" in the system variables box find and highlight the "path" variable. Click edit and go to the end of the string. Add a semicolon to the end of the string if it is not already present and then add the folder that the fluent launcher is in. You'll need to check on your computer, but it should be something like:
Once your environmental variable is set then go to the windows sdk folder via the start menu, click on the cmd shell. Then type: fluent to launch fluent as normal or add any extensions as listed in the users guide (i.e. fluent 3ddp -t2 to launch the 3d double precision parallel version with 2 process). Hope this helps-
thanks! Ill give this a try and let you know if I have any problems.
|All times are GMT -4. The time now is 14:21.|