Discussing UDF and C++ Compiling
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
|
Re: Discussing UDF and C++ Compiling
Did you set compiler path properly?
Hi :) ap |
Re: Discussing UDF and C++ Compiling
How can I set compiler path? you mean in the Start up? Please tell more detail?
|
Re: Discussing UDF and C++ Compiling
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! |
Re: Discussing UDF and C++ Compiling
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 |
Re: Discussing UDF and C++ Compiling
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 |
Re: Discussing UDF and C++ Compiling
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 |
Re: Discussing UDF and C++ Compiling
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 |
Re: Discussing UDF and C++ Compiling
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 |
Re: Discussing UDF and C++ Compiling
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 |
All times are GMT -4. The time now is 03:48. |