Cpp Compilation/Linking error

HI All,
I'm having problem linking on wincpic.h, the functions are there but still returns these errors when i tried to compile the source.

Please help....

Linking...
eqInterface.obj : error LNK2001: unresolved external symbol "void __stdcall cmcfmd(unsigned char *,long *)" (?cmcfmd@@YGXPAEPAJ@Z)
eqInterface.obj : error LNK2001: unresolved external symbol "void __stdcall cmserr(unsigned char *,long *,long *)" (?cmserr@@YGXPAEPAJ1@Z)
eqInterface.obj : error LNK2001: unresolved external symbol "void __stdcall cmallc(unsigned char *,long *)" (?cmallc@@YGXPAEPAJ@Z)
eqInterface.obj : error LNK2001: unresolved external symbol "void __stdcall cmssl(unsigned char *,long *,long *)" (?cmssl@@YGXPAEPAJ1@Z)
eqInterface.obj : error LNK2001: unresolved external symbol "void __stdcall cmstpn(unsigned char *,unsigned char *,long *,long *)" (?cmstpn@@YGXPAE0PAJ1@Z)
eqInterface.obj : error LNK2001: unresolved external symbol "int __stdcall WinCPICCleanup(void)" (?WinCPICCleanup@@YGHXZ)
eqInterface.obj : error LNK2001: unresolved external symbol "void __stdcall cminit(unsigned char *,unsigned char *,long *)" (?cminit@@YGXPAE0PAJ@Z)
eqInterface.obj : error LNK2001: unresolved external symbol "int __stdcall WinCPICStartup(unsigned short,struct tagWCPICDATA *)" (?WinCPICStartup@@YGHGPAUtagWCPICDATA@@@Z)
eqInterface.obj : error LNK2001: unresolved external symbol "void __stdcall cmdeal(unsigned char *,long *)" (?cmdeal@@YGXPAEPAJ@Z)
eqInterface.obj : error LNK2001: unresolved external symbol "void __stdcall cmrcv(unsigned char *,unsigned char *,long *,long *,long *,long *,long *,long *)" (?cmrcv@@YGXPAE0PAJ11111@Z)
eqInterface.obj : error LNK2001: unresolved external symbol "void __stdcall cmsend(unsigned char *,unsigned char *,long *,long *,long *)" (?cmsend@@YGXPAE0PAJ11@Z)
Debug/eqInterface.exe : fatal error LNK1120: 11 unresolved externals
Error executing link.exe.

eqInterface.exe - 12 error(s), 1 warning(s)

Rob Bachrach's picture

I have never used CPIC, but my first instinct is to verify that WINCPIC32.LIB is in your list of libraries for linking (and of course that WINCPIC32.DLL is in your path or application binary directory).

tungaw2001's picture

Thanks for the help. very much appreciated. Actually, I have successfully compiled the program and created an exe file out of the source, however, when i tried to run the executable, it says wcpic32.dll not found. I tried to locate it through search file but i can't see it.

Is there any way to build the wcpic32.dll?............................ how?

Thanks a lot....

tungaw

Rob Bachrach's picture

Again, I have never used the C-PIC stuff, but from the MSDN it seems that you must have the Host Integration Server SDK installed to get the .h and .lib files and, it stands to follow, that you must have Host Integration Server installed to get the DLL. If you don't have Host Integration Server, you may want to try the MSDN or contacting Microsoft.

Rob

tungaw's picture

Thanks a lot Rob. This is a big help for the project. I wish u good luck.