CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Compiled UDF (https://www.cfd-online.com/Forums/fluent/33582-compiled-udf.html)

Vasilios Papaioannou April 26, 2004 03:54

Compiled UDF
 
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!!!

Dolores Chua April 26, 2004 05:31

Re: Compiled UDF
 
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

Vasilios Papaioannou April 26, 2004 07:20

Re: Compiled UDF
 
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!

Allan Walsh April 26, 2004 11:31

Re: Compiled UDF
 
Make sure all source files are in the path.

Vasilios Papaioannou April 27, 2004 03:42

Re: Compiled UDF
 
Hallo!

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


Allan Walsh April 27, 2004 13:50

Re: Compiled UDF
 
Compiler should have a batch file like vcvars that will set path, libraries, etc. to point to proper source files for compiling.


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