CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF compiling problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 26, 2016, 21:38
Question UDF compiling problem
  #1
New Member
 
manar
Join Date: Oct 2016
Posts: 17
Rep Power: 9
manar is on a distinguished road
Hello guys
I am trying to compile 2 UDF files for a case that is built in another computer (64-bit) ; when I try to compile in my computer ( win 7 - 64 bit - ansys student 17.1 - visual studio 2010) the UDFs I get these errors :

udf_names.c and user_nt.udf files in 2ddp are upto date.
(system "copy "C:\PROGRA~1\ANSYSI~1\v171\fluent"\fluent17.1.0\sr c\udf\makefile_nt.udf "libudf\win64\2ddp\makefile" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\2ddp")# Linking libudf.dll because of user_nt.udf udf_names.obj air-RGM.obj air.obj
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

LINK : fatal error LNK1104:

Done.


when I check the log in 2ddp I found this :



jMicrosoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

NMAKE : U1077: ?C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.EXE"?
Stop.

I tried to define the executable file (LINK.exe)in the system variables but the errors remain standstill , is it the version of the visual studio ? , What could be the cause and how to fix it ? any thoughts !
manar is offline   Reply With Quote

Old   December 27, 2016, 06:28
Default
  #2
New Member
 
manar
Join Date: Oct 2016
Posts: 17
Rep Power: 9
manar is on a distinguished road
I re-installed VS but this time I installed VS 2015 (community) , I got this error when I load the UDF files :

'cl' is not recognized as an internal or external command , operable program or batch file .
NMAKE : U1077 : 'cl' return code '0x1'


Please any help with this one ?
manar is offline   Reply With Quote

Old   January 3, 2017, 04:26
Default
  #3
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Is this the first time that you try to compile UDFs on your computer, or do other UDFs work?
pakk is offline   Reply With Quote

Old   January 12, 2017, 01:47
Default
  #4
New Member
 
manar
Join Date: Oct 2016
Posts: 17
Rep Power: 9
manar is on a distinguished road
Acually it is a fluent and visual studio compatibility problem .
manar is offline   Reply With Quote

Old   January 12, 2017, 07:56
Default
  #5
Member
 
Howard
Join Date: Jun 2012
Posts: 43
Rep Power: 13
twcp0104 is on a distinguished road
Quote:
Originally Posted by manar View Post

LINK : fatal error LNK1104:

Done.
Usually when I get this, what I do is close fluent (or unload the library libudf), delete the libudf folder in your case folder, and try to compile again. Usually works.
twcp0104 is offline   Reply With Quote

Reply

Tags
fluent - udf


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with UDF for CG Circular Motion luthlau Fluent UDF and Scheme Programming 1 September 16, 2016 02:08
Problem with DPM simulation with particles injection and EXECUTE_AT_THE_END UDF. Ari Fluent UDF and Scheme Programming 4 May 31, 2016 08:51
Problem with compiling UDF in Fluent amojodi Fluent UDF and Scheme Programming 4 April 14, 2015 09:01
HELP! Problem compiling UDF function Syrakus FLUENT 6 April 7, 2006 10:48
UDF compiling problem for 3D simulation Marijo FLUENT 1 March 28, 2006 03:21


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