CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CD-adapco (http://www.cfd-online.com/Forums/cd-adapco/)
-   -   User Subroutine :InterProcess Communication (http://www.cfd-online.com/Forums/cd-adapco/54174-user-subroutine-interprocess-communication.html)

Mallikarjun November 16, 2004 07:58

User Subroutine :InterProcess Communication
 
Hi

STARCD 3.22

Brief history of my work:

1.Aim is to communicate between two software's they are STAR-CD(3D) & FLOWMASTER (1D).

2.We had got the success for UNIX version i.e.STAR-CD is installed in the UNIX & FLOWMASTER is installed in the PC(XP).

3.Presently we are working for PC version i.e.STAR-CD is installed in PC(STARCD 3.22)& FLOWMASTER is installed in the PC(XP).

Brief history of UNIX version:

Below are the object files which I had kept it in the ufile, where I had kept the posdat.f,bcdefp.f & bcdefi.f. files. Object Files are:

1.CFDlinkClient.obj

2.CFDlinkRPC_clnt.obj

3.CFDlinkrpc_xdr.obj These object files in turns calls FLOWMASTER using third party tools i.e RPC which I had installed in my PC. In this part I not faced any problem in compiling the CFDlinkClient.cpp file.And I am succesfullin comunications between the two softwares.

Brief history of PCversion(Error is occurring for this part):

I had installed the Absoft 8.2. I haven't got the success in compiling the CFDlinkClient.cpp file.

1. This CFDlinkClient.cpp file contains the information of third part tool RPC,STARCD function & varaibles

(gbcstr,impbrd,IGSum,IGMin,dco14,indmp1,c06013,usr d02,dc014,indmp1,mainu,dco5).

posdat.f (CFDlink FUNCTION) ----------------------->CFDlinkClient.cpp---------------------------------------> CFDlink server(Flowmaster function).

The above picture shows that the cfdlink funcion is called from posdat.f file,& the implementation of this function is in CFDlinkClient.cpp file,which in turns calls the FLOWMASTER function.

2.The below are the lines which were written in the makefile,which is used to

compile the CFDlinkClient.cpp code. CC=cl CFLAGS=/AL /Zi /W1 all: CFDlinkClient.o

CFDlinkClient.o: CFDlinkClient.cpp

$(CC) $(CFLAGS) CFDlinkClient.cpp D32-RPC.LIB CFDlinkRPC_clnt.obj CFDlinkrpc_xdr.obj

clean:

erase CFDlinkClient.o

These are the dependent files D32-RPC.LIB CFDlinkRPC_clnt.obj CFDlinkrpc_xdr.obj.

I had edit the "nmake" in the command prompt, which is used to compile the makefile.

The error are described in the below. CFDlinkClient.obj : error LNK2001: unresolved external symbol _gbcstr CFDlinkClient.obj : error LNK2001: unresolved external symbol _impbrd CFDlinkClient.obj : error LNK2001: unresolved external symbol _igsum CFDlinkClient.obj : error LNK2001: unresolved external symbol _igmin CFDlinkClient.obj : error LNK2001: unresolved external symbol _gsum CFDlinkClient.obj : error LNK2001: unresolved external symbol "struct __unnamed usrd02" (?usrd02@@3U__unnamed@@A) CFDlinkClient.obj : error LNK2001: unresolved external symbol "struct __unnamed dco14" (?dco14@@3U__unnamed@@A) CFDlinkClient.obj : error LNK2001: unresolved external symbol "struct __unnamed indmp2" (?indmp2@@3U__unnamed@@A) CFDlinkClient.obj : error LNK2001: unresolved external symbol "struct __unnamed indmp1" (?indmp1@@3U__unnamed@@A) CFDlinkClient.obj : error LNK2001: unresolved external symbol "struct __unnamed c06013" (?c06013@@3U__unnamed@@A) CFDlinkClient.obj : error LNK2001: unresolved external symbol "struct __unnamed mainu" (?mainu@@3U__unnamed@@A) CFDlinkClient.obj : error LNK2001: unresolved external symbol "struct __unnamed dco5" (?dco5@@3U__unnamed@@A)

Eagerly waiting for the reply to resolve this problem.

With Best Regards Lavate Mallikarjun Avanana


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