Error 1 error LNK2019: unresolved external symbol _GCLSRAPI_Serial_Close referenced in function _ucDownloadFirmware ISP_GPX_Process.obj
Error 2 error LNK2019: unresolved external symbol _GCLSRAPI_Serial_Open referenced in function _ucDownloadFirmware ISP_GPX_Process.obj
Error 3 error LNK2019: unresolved external symbol _ucISP_FLOW_StartBootLoader referenced in function "unsigned char __cdecl ucFlowProcessStart(unsigned char *)" (?ucFlowProcessStart@@YAEPAE@Z) ISP_GPX_Process.obj
unsigned char ucDownloadFirmware( void )
{
unsigned char uc_error; //error code
unsigned char uc_status; //reader response status
unsigned char nb_retry; //attempt number in case of error
//Open the Port COM
//-----------------
//communication parameters must be the actual gemprox seting
uc_error = GCLSRAPI_Serial_Open(ucComPortNumber, &sComParameters, DEFAULT_COM_TIME_OUT);
#ifdef TRACE_FLOW_OPERATION
cout << "> Communication : ";
DisplayComConfig();
#endif
//try to Start the Process
//------------------------
nb_retry = 2;
do
{
//proccess the operations to start the boot loader
//------------------------------------------------
uc_error = ucFlowProcessStart( &uc_status );
//if no error
if( (NO_ERR == uc_error) && (NO_ERR == uc_status) )
{
//the port COM must be set with the parameters for the Download
//-------------------------------------------------------------
GCLSRAPI_Serial_Close();
sComParameters.ulBaudRate = 115200; // use the maximal boot loader communication speed 115200 bauds
sComParameters.ucParity = NO_PARITY;
sComParameters.ucBitNumber = 8;
uc_error = GCLSRAPI_Serial_Open(ucComPortNumber, &sComParameters, DEFAULT_COM_TIME_OUT);
//if port error
if( GCLSRAPI_NO_ERROR != uc_error )
{
// FATAL
GCLSRAPI_Serial_Close();
#ifdef TRACE_FLOW_OPERATION
cout << "Open Port COM error : " << (int)uc_error << endl;
#endif
return uc_error; //END
}
//if error but communication not lost
else if( ( GCLSRAPI_EXCHANGE_RESYNCH == uc_error ) ||
( GCLSRAPI_INCOHERENT_LENGTH_IN_RESPONSE == uc_error) )
{
//try again to start the Process
nb_retry--;
}
Warning 1 warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss c:\documents and settings\leo bin\desktop\fypj_oo\prox api & libs\tllib\pp.c 1