CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF Compiling : Error 193 (http://www.cfd-online.com/Forums/fluent-udf/85606-udf-compiling-error-193-a.html)

Atze March 2, 2011 10:06

UDF Compiling : Error 193
 
Hi,

First of all : I'm using Ansys Fluent 13 , Visual C++ 2008 Express , Win7 x64

Now... I've written a CG_motion UDF (i want to simulate a cilinder in 2D virtually constrained with a spring, in order to simulate vibrations due to pressure forces) but i can't compile it.

Searching around some solutions, I was able to BUILD it. Fluent says

Error Object: #f
1 file copiati.
(system "copy "c:\PROGRA~1\ANSYSI~1\v130\fluent"\fluent13.0.0\sr c\makefile_nt.udf "libudf\win64\2d\makefile" ")
1 file copiati.
(chdir "libudf")()
(chdir "win64\2d")()
# Generating ud_io1.h
UDF_CG.c
# Generating udf_names.c because of makefile UDF_CG.obj
udf_names.c
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj UDF_CG.obj
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

Creazione della libreria libudf.lib e dell'oggetto libudf.exp in corso...

Done.

When I click load in order to load the udf function and set the deforming mesh parameters fluent gives me ERROR 193

What can i do ?

Thank you (and sorry for my bad english)

ZenCef April 27, 2011 05:16

I have a same problem with same software.

Ansys Fluent 13 , Visual C++ 2010 Express , Win7 x64

What's the meaning of error 193?

xorjack May 10, 2011 10:28

Hello,

I had the same problem. Error 193. Object #
I have closed FLUENT, started the VC++ cmd and the FLUENT again, loaded the .msh, built the code.
The problem wanished.

Good luck

natantyt December 5, 2011 21:24

Hi There

Anybody found a solution to this Error 193?

Thanks

fox000002 December 5, 2011 23:46

Check the compiler version.

Fluent x64 needs a x64 c++ compiler.

xorjack December 9, 2011 17:52

Ok. Use Microsoft .NET Framework SDK v2.0 (64bit) instead of VC++ for Win 7 64 bit.
Start Fluent from SDK command prompt.

aerosjc September 30, 2013 07:04

Still failed
 
Quote:

Originally Posted by xorjack (Post 307012)
Hello,

I had the same problem. Error 193. Object #
I have closed FLUENT, started the VC++ cmd and the FLUENT again, loaded the .msh, built the code.
The problem wanished.

Good luck

I tried your way, but still failed.

xorjack October 1, 2013 05:07

Quote:

Originally Posted by aerosjc (Post 454242)
I tried your way, but still failed.

Please see the post from Dec. 9 2011. It is most essential.
Lets stress it again:

If u have Win7 64x, it is REALLY VITAL:

1. To have Microsoft .NET Framework SDK v2.0 (64bit) set as a compilation environment.
2. To start FLUENT from the SDK command prompt and not from Windows command prompt.

If one of mentioned requirements is not fulfilled you will fail. If these req are fulfilled, the compilation should work.

Good luck

ezeevictory October 9, 2013 01:54

Win XP
 
Hi guys,

am also getting the same error... 193

i use win xp 64 bit... microsoft visual studio 2008 and fluent 14.5..

couldnt figure out...

can someone help?

aerosjc October 16, 2013 00:01

I just used the complete installation files of VS2010 ultimate, instead of the express edition, to resolve this problem.
And, maybe VS 2008 is not compatible with Fluent 14.5. But, actually I never use the version 14.5 of Fluent. Hope to help.

LemonPeng November 6, 2013 09:28

I met the same problem. But successfully overcome it by uninstalling some old Visual Studio.
In my computer, both Visual Studio2003 and Visual Studio 2010 are installed, so that I load the UDF with error code 193. Then I uninstall the Visual Studio 2003, the problem disappear.
Hope this message could help you.
Quote:

Originally Posted by Atze (Post 297653)
Hi,

First of all : I'm using Ansys Fluent 13 , Visual C++ 2008 Express , Win7 x64

Now... I've written a CG_motion UDF (i want to simulate a cilinder in 2D virtually constrained with a spring, in order to simulate vibrations due to pressure forces) but i can't compile it.

Searching around some solutions, I was able to BUILD it. Fluent says

Error Object: #f
1 file copiati.
(system "copy "c:\PROGRA~1\ANSYSI~1\v130\fluent"\fluent13.0.0\sr c\makefile_nt.udf "libudf\win64\2d\makefile" ")
1 file copiati.
(chdir "libudf")()
(chdir "win64\2d")()
# Generating ud_io1.h
UDF_CG.c
# Generating udf_names.c because of makefile UDF_CG.obj
udf_names.c
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj UDF_CG.obj
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

Creazione della libreria libudf.lib e dell'oggetto libudf.exp in corso...

Done.

When I click load in order to load the udf function and set the deforming mesh parameters fluent gives me ERROR 193

What can i do ?

Thank you (and sorry for my bad english)



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