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

Compiled UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2004, 04:54
Default Compiled UDF
  #1
Vasilios Papaioannou
Guest
 
Posts: n/a
Hallo!!!

When i am executing compilation with start debug from microsoft developer studio i get the following message:

Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/udfcw.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.

udfcw.exe - 2 error(s), 0 warning(s)

Can somebody enlighten me over this matter?

Thank you!!!
  Reply With Quote

Old   April 26, 2004, 06:31
Default Re: Compiled UDF
  #2
Dolores Chua
Guest
 
Posts: n/a
from my experience, compiling in Microsoft Visual C is a lot of trouble. You have to get all the project configuration correct before you can compile it. Last time i wrote the code on Notepad (following C languange) and let fluent compile it (UDF->Function->Interpreted), it worked fine
  Reply With Quote

Old   April 26, 2004, 08:20
Default Re: Compiled UDF
  #3
Vasilios Papaioannou
Guest
 
Posts: n/a
Hallo!

The text file that i am trying to compile consists of the command (->), such as "Thread t = t->t0;". This command can only be compiled and not interpreted, because if i run UDF->Function->Interpreted i have error in the above line.

Do you know a way to write the previous command in an interprted way?

Thank you!
  Reply With Quote

Old   April 26, 2004, 12:31
Default Re: Compiled UDF
  #4
Allan Walsh
Guest
 
Posts: n/a
Make sure all source files are in the path.
  Reply With Quote

Old   April 27, 2004, 04:42
Default Re: Compiled UDF
  #5
Vasilios Papaioannou
Guest
 
Posts: n/a
Hallo!

You mean that i must place all my src files in the path defined by the environmental setup from fluent?

  Reply With Quote

Old   April 27, 2004, 14:50
Default Re: Compiled UDF
  #6
Allan Walsh
Guest
 
Posts: n/a
Compiler should have a batch file like vcvars that will set path, libraries, etc. to point to proper source files for compiling.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 22:38
I want to use pressure of 1 face in udf that compiled on other face iman_1844 Fluent UDF and Scheme Programming 3 June 10, 2010 13:55
Why udf can not be compiled in my pc? Xinqiang FLUENT 0 June 10, 2009 15:32
difference between udf compiled and udf interprete chandra sekhar FLUENT 2 April 11, 2006 01:04
how to quit compiled or interprited UDF tian FLUENT 0 April 9, 2003 00:53


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