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!!! |
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
|
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! |
Re: Compiled UDF
Make sure all source files are in the path.
|
Re: Compiled UDF
Hallo!
You mean that i must place all my src files in the path defined by the environmental setup from fluent? |
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. |