# if! Defined (THOST_FTDCMDAPI_H)
# define THOST_FTDCMDAPI_H
# if _MSC_VER & gt; 1000
# pragma once
# endif//_MSC_VER & gt; 1000
# include "ThostFtdcMdApi. H"
# include "ThostFtdcUserApiDataType. H"
# include "ThostFtdcUserApiStruct. H"
# if defined (ISLIB) & amp; & Defined (WIN32)
# ifdef LIB_MD_API_EXPORT
# define MD_API_EXPORT __declspec (dllexport)
# the else
# define MD_API_EXPORT __declspec (dllimport)
# endif
# the else
# define MD_API_EXPORT
# endif
The class MD_API_EXPORT CThostFtdcMdApi
{
Public:
The static CThostFtdcMdApi * CreateFtdcMdApi (const char * pszFlowPath="", const bool bIsUsingUdp=false, const bool bIsMulticast=false).
Virtual void RegisterSpi (CThostFtdcMdSpi * pSpi);
Virtual void RegisterFront pszFrontAddress (char *);
Virtual void Init ();
Virtual int the Join ();
Protected:
~ CThostFtdcMdApi () {};
}
Int main ()
{
MdApi=CThostFtdcMdApi CThostFtdcMdApi * * CreateFtdcMdApi (const char * pszFlowPath="", const bool bIsUsingUdp=false, const bool bIsMulticast=false).
return 0;
}
# endif
When forming questions
LIBCD. Lib (crt0. Obj) : error LNK2001: unresolved external symbol _main
How do I solve?
CodePudding user response:
Class CThostFtdcMdApi statement last need a semicolon, namely:}
Int main ()
{
Need to change to:
};
Int main ()
{