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

Compiled UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 26, 2004, 03: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, 05: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, 07: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, 11: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, 03: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, 13: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
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 On
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 21: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 12:55
Why udf can not be compiled in my pc? Xinqiang FLUENT 0 June 10, 2009 14:32
difference between udf compiled and udf interprete chandra sekhar FLUENT 2 April 11, 2006 00:04
how to quit compiled or interprited UDF tian FLUENT 0 April 8, 2003 23:53


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