|
[Sponsors] |
April 8, 2004, 16:11 |
Discussing UDF and C++ Compiling
|
#1 |
Guest
Posts: n/a
|
One thing puzzle me a long time. We have two personal computers installing FLUENT6.18 and Visual Studio2003. They have same OS of WinXP. but one computer can easily compiling a UDF without any problem , another when compiling , you have to go to Command Prompt, then to the directory in the Studio vc7\bin\ and launch vcvars32 , back to the working directory and nmake it, then comple and load it in FLUENT . I check the optional in Studio . I can't find any difference between the two. Anyone who are familar with the both of FLUENT and C++, please give your suggestion. Thanks
|
|
April 8, 2004, 17:17 |
Re: Discussing UDF and C++ Compiling
|
#2 |
Guest
Posts: n/a
|
Did you set compiler path properly?
Hi ap |
|
April 8, 2004, 22:23 |
Re: Discussing UDF and C++ Compiling
|
#3 |
Guest
Posts: n/a
|
How can I set compiler path? you mean in the Start up? Please tell more detail?
|
|
April 9, 2004, 09:41 |
Re: Discussing UDF and C++ Compiling
|
#4 |
Guest
Posts: n/a
|
i experienced this with visual studio 6.0 and 2003. WHILE WITH VERSION 6.0 I HADN'T TO GO TO THE COMMAND PROMPT, WITH 2003 I HAD TO GO. YOU HAVE TO KNOW THAT THE SECRET TO THESE THINGS IS THE SET OF SYSTEM VARIABLES IN YOUR CONTROL PANEL/SYSTEM/SYSTEM VARIABLES. YOU CAN FIND EASILY THE SETTING BY SURFING A LITTLE TIME IN INTERNET (GOOGLE.COM). I SOLVED LOTS OF PROBLEMS BY THIS WAY.\
IF YOU HAVE VERSION 6.0 INSTALL IT AND YOU WON'T HAVE TO OPEN COMMAND PROMPT. GOOD LUCK! |
|
April 9, 2004, 11:17 |
Re: Discussing UDF and C++ Compiling
|
#5 |
Guest
Posts: n/a
|
Hi, STK
Thank you very much. I also have version 6.0. . I know little about Visual studio , can you tell me how you set system variable in your computer. Thanks |
|
April 9, 2004, 12:48 |
Re: Discussing UDF and C++ Compiling
|
#6 |
Guest
Posts: n/a
|
Visual Studio 6 asks you if you want to set environment variable at the end of the setup process. You have to select the option and click ok.
I don't know on 2003 because I switched to linux in the meanwhile. Hi ap |
|
April 9, 2004, 17:39 |
Re: Discussing UDF and C++ Compiling
|
#7 |
Guest
Posts: n/a
|
Hi, ap
Thank you very much. When installing VisualStudio6.0 ,it did not ask me if I set environment variable, but ask me select one option. it looks it does not affect compiling procedure. Thanks Big Stone |
|
April 10, 2004, 19:23 |
Re: Discussing UDF and C++ Compiling
|
#8 |
Guest
Posts: n/a
|
Yes, it doesn't ask you to set it, it presents a dialog box where you can select a check box to set o environment variables.
Setting them include compiler path and libraries path in your system PATH variable (you can see your environment variable writing 'set' in a command prompt window). Hi ap |
|
April 11, 2004, 13:17 |
Re: Discussing UDF and C++ Compiling
|
#9 |
Guest
Posts: n/a
|
Hi, ap
Thanks. I can set enviromant variable in CONTROL PANEL\SESTEM|ADVANCE\, but I need to know exact path value and variable. Can you advice me. Thanks Wei |
|
April 12, 2004, 16:07 |
Re: Discussing UDF and C++ Compiling
|
#10 |
Guest
Posts: n/a
|
Sorry, I don't use Visual Studio anymore because I work on a linux platform now.
Anyway uninstalling, rebooting an intalling again Visual Studio selecting the option we talked about should do the work. Hi ap |
|
|
|
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 19:05 |
Compiling UDF on a cluster | Adya | FLUENT | 1 | December 14, 2009 12:30 |
UDF compiling problem in Flient 6.3 | jeevan kumar | FLUENT | 2 | February 25, 2009 01:43 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 08:14 |
On Compiling a UDF | David Chabot | FLUENT | 5 | May 20, 2005 10:13 |