Hello all,
I am trying to compile a code in Microsoft Visual C++ v 6.0. The code was earlier compiled using Visualage for C++ v 3.5 without errors.
I am getting the follwoing error messages. I don't know to rectify them. I almost forgot c++. Please help.
Error Messages:
c:\projects\mq\mq\mqchexit.h(4) : warning C4068: unknown pragma
c:\projects\channelexit\mqchexit.c(50) : warning C4236: nonstandard extension used : '__export' is an obsolete keyword, see documentation for __declspec(dllexport)
c:\projects\channelexit\mqchexit.c(118) : warning C4236: nonstandard extension used : '__export' is an obsolete keyword, see documentation for __declspec(dllexport)
Header file:
In my .c file, the definition of ChannelExit is as below:
I get the following error messages when I am trying to build an executable.
Linking...
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_VerifyFinal
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_VerifyUpdate
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_VerifyInit
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_RandomFinal
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_SealFinal
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_SealUpdate
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_SealInit
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_SignBlock
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_memset
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_RandomCreate
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_VerifyBlockSignature
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_OpenFinal
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_OpenUpdate
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_OpenInit
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_GenerateBytes
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _gethostname@8
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _WSAStartup@8
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/MQCHEXIT.exe : fatal error LNK1120: 18 unresolved externals
Error executing link.exe.
Thanks for your help.
I am trying to compile a code in Microsoft Visual C++ v 6.0. The code was earlier compiled using Visualage for C++ v 3.5 without errors.
I am getting the follwoing error messages. I don't know to rectify them. I almost forgot c++. Please help.
Error Messages:
c:\projects\mq\mq\mqchexit.h(4) : warning C4068: unknown pragma
c:\projects\channelexit\mqchexit.c(50) : warning C4236: nonstandard extension used : '__export' is an obsolete keyword, see documentation for __declspec(dllexport)
c:\projects\channelexit\mqchexit.c(118) : warning C4236: nonstandard extension used : '__export' is an obsolete keyword, see documentation for __declspec(dllexport)
Header file:
Code:
#pragma library("mqchexit.lib")
#include <stddef.h>
#include "mqsec.h"
extern void MQENTRY ChannelExit( PMQVOID channelExitParms,
PMQVOID channelDef,
PMQLONG dataLength,
PMQLONG agBufLength,
PMQVOID agBuf,
PMQLONG exitBufLength,
PMQPTR exitBufAddr );
Code:
void __export MQENTRY ChannelExit( PMQVOID channelExitParms,
PMQVOID channelDef,PMQLONG dataLength,PMQLONG agBufLength,
PMQVOID agBuf,PMQLONG exitBufLength,PMQPTR exitBufAddr );
Linking...
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_VerifyFinal
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_VerifyUpdate
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_VerifyInit
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_RandomFinal
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_SealFinal
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_SealUpdate
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_SealInit
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_SignBlock
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_memset
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_RandomCreate
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_VerifyBlockSignature
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_OpenFinal
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_OpenUpdate
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_OpenInit
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _R_GenerateBytes
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _gethostname@8
MQCHEXIT.OBJ : error LNK2001: unresolved external symbol _WSAStartup@8
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/MQCHEXIT.exe : fatal error LNK1120: 18 unresolved externals
Error executing link.exe.
Thanks for your help.