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

Compiling udf in visual studio: unresolved external symbol

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 22, 2015, 11:23
Default Compiling udf in visual studio: unresolved external symbol
  #1
Senior Member
 
ghost82's Avatar
 
Daniele
Join Date: Oct 2010
Location: Italy
Posts: 993
Rep Power: 17
ghost82 will become famous soon enough
Hi all,
I'm trying to compile some codes into a udf in visual studio 2010 (I tried also 2013 version) in win7 64bit os (I need to compile the udf externally to fluent).
I'm able to compile and link the libudf.dll for 3d and 3ddp, but not for 3ddp_host and 3ddp_node, so I am able to run simulations only in serial.

In both these cases I have errors when the dll is generated, I think due to external libraries.

Error codes are LNK2019 and LNK2001, and all are related to the external symbol "__imp_mphost_to_node_xxx".

I was thinking this is into fl1610.lib (for 3ddp_host) which I included during linking with link /libpath:"C:\Program Files\ANSYS Inc\v161\fluent\fluent16.1.0\win64\3ddp_host" fl1610.lib

Anybody knows how to solve this problem?

Thank you
__________________
Google is your friend and the same for the search button!
ghost82 is offline   Reply With Quote

Old   May 30, 2015, 09:02
Default
  #2
Senior Member
 
ghost82's Avatar
 
Daniele
Join Date: Oct 2010
Location: Italy
Posts: 993
Rep Power: 17
ghost82 will become famous soon enough
Update: no problems in compiling parallel versions for fluent v.15.0.0.
So the problem is related to new fl1610.lib (3ddp_host) and fl_mpi1610.lib (3ddp_node).
Anybody knows if anything has changed for functions node_to_host and PRF_GSYNC_WITH_HOST in these libs?
__________________
Google is your friend and the same for the search button!
ghost82 is offline   Reply With Quote

Old   May 30, 2015, 10:42
Default
  #3
Senior Member
 
ghost82's Avatar
 
Daniele
Join Date: Oct 2010
Location: Italy
Posts: 993
Rep Power: 17
ghost82 will become famous soon enough
Problem solved
I needed to add more libraries to the LIBS variable (mport.lib) into the makefile!
__________________
Google is your friend and the same for the search button!
ghost82 is offline   Reply With Quote

Old   February 29, 2016, 09:48
Default
  #4
New Member
 
Hossein
Join Date: Oct 2010
Location: Greensboro, NC, USA
Posts: 29
Rep Power: 8
hossein65 is on a distinguished road
Quote:
Originally Posted by ghost82 View Post
Problem solved
I needed to add more libraries to the LIBS variable (mport.lib) into the makefile!
Can you please tell me what did you exactly do to resolve the problem?
__________________
Hossein Amini
PhD student in Biochemical Engineering; Computational Science and Engineering department;
North Carolina Agricultural and Technical State University
hossein65 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling udf on windows7 64-bit adi.ptb Fluent UDF and Scheme Programming 9 March 14, 2016 13:39
Symbol lookup error after upgrading to 2.1.1 ChrisA OpenFOAM Programming & Development 2 March 6, 2013 21:38
Linking issues User Fortran Anil CFX 2 August 24, 2007 20:41
Unresolved external symbol Ritesh Chhabra FLUENT 0 August 31, 2004 12:27
Unresolved external symbol Hamsdi CFX 1 November 5, 2001 15:01


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