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

Discussing UDF and C++ Compiling

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2004, 16:11
Default Discussing UDF and C++ Compiling
  #1
Big Stone
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

  Reply With Quote

Old   April 8, 2004, 17:17
Default Re: Discussing UDF and C++ Compiling
  #2
ap
Guest
 
Posts: n/a
Did you set compiler path properly?

Hi

ap
  Reply With Quote

Old   April 8, 2004, 22:23
Default Re: Discussing UDF and C++ Compiling
  #3
Big Stone
Guest
 
Posts: n/a
How can I set compiler path? you mean in the Start up? Please tell more detail?

  Reply With Quote

Old   April 9, 2004, 09:41
Default Re: Discussing UDF and C++ Compiling
  #4
STK
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!
  Reply With Quote

Old   April 9, 2004, 11:17
Default Re: Discussing UDF and C++ Compiling
  #5
Big Stone
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

  Reply With Quote

Old   April 9, 2004, 12:48
Default Re: Discussing UDF and C++ Compiling
  #6
ap
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
  Reply With Quote

Old   April 9, 2004, 17:39
Default Re: Discussing UDF and C++ Compiling
  #7
Big Stone
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
  Reply With Quote

Old   April 10, 2004, 19:23
Default Re: Discussing UDF and C++ Compiling
  #8
ap
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
  Reply With Quote

Old   April 11, 2004, 13:17
Default Re: Discussing UDF and C++ Compiling
  #9
Big Stone
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
  Reply With Quote

Old   April 12, 2004, 16:07
Default Re: Discussing UDF and C++ Compiling
  #10
ap
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
  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 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


All times are GMT -4. The time now is 23:47.