UDF Compilation : Linking Error 1181

  • 25 Views
  • Last Post 18 May 2020
  • Topic Is Solved
KgpNiko16 posted this 16 May 2020

ERROR LOG

my udf is :  MassWallFlux.C

# Generating udf_names.c because of makefile MassWallFlux.C

udf_names.c

# Linking libudf.dll because of makefile user_nt.udf udf_names.obj MassWallFlux.C

Microsoft (R) Incremental Linker Version 14.25.28614.0

Copyright (C) Microsoft Corporation. All rights reserved.

 

LINK : fatal error LNK1181: cannot open input file 'MassWallFlux.C'

 

 

Please help .

 

 

1. I have checked path , no spaces are there

2. I have checked Virtual studio packages, all are there

3. I have checked installation of VS, repaired it once , still no luck

 

PS :

1. I have tried to compile simple  function. it got compiled successfully.

2. Also i checked the folder, object file is getting created but it not linking .

3. When i try to compile ansys example (DEFINE_SOURCE) in customization manual that also fail.

 Any clue ?  Please help

 

 

 

 

 

 

 

Order By: Standard | Newest | Votes
kkanade posted this 18 May 2020

Please post the questions in appropriate category. Moving this question to other category to get better response. 

Moving to fluid dynamics 

  • Liked by
  • KgpNiko16
abenhadj posted this 18 May 2020

Close Fluent, remove any Libudf in the dirctory, read case, unload any libudf there if necessary and compile again.

Best regards, Amine

KgpNiko16 posted this 18 May 2020

I have tried that part. Didn't solve..

KgpNiko16 posted this 18 May 2020

See

in error log :

Generating udf_names.c because of makefile MassWallFlux.C   (Here should have been MassWallFlux.obj)

udf_names.c

# Linking libudf.dll because of makefile user_nt.udf udf_names.obj MassWallFlux.C   (Here should have been MassWallFlux.obj)

 

I have checked the libudf folder there object files exists...!

KgpNiko16 posted this 18 May 2020

Anyone won't believe my solution but it is

 

Ansys fluent doesn't recognize  .C extension but recognize only .c extension  ..

 

Close