How to solve this kind of errors..

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
Sounds like you aren't linking or aren't defining some functions.
You might have a class that does not have all the member functions written in the Cpp file
thankx so much ...
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);

//if 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
}

#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
}

#ifdef TRACE_FLOW_OPERATION
cout << "> Communication : ";
DisplayComConfig();
#endif
}

//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--;
}


here arre part of the code ....
unsigned char OSLIBRARY_GCLSRAPITranscodeError(
unsigned short int usiError)
{
/*transcoder array*/
const trans_error_t ausiGCLSRAPIError[] = {
{NO_ERR, GCLSRAPI_NO_ERROR},
{ERR_READER_MUTE, GCLSRAPI_READER_MUTE_ERROR}, //TL_Receive from VP_Receive
{ERR_RESYNCH, GCLSRAPI_EXCHANGE_RESYNCH}, //TL_GBP_CheckResponse from TL_GBP_TestPCB
{ERR_SERIOUS_ERROR, GCLSRAPI_EXCHANGE_ERROR}, //TL_GBP_CheckResponse from TL_GBP_TestPCB
{ERR_SEQUENCE_NUMBER, GCLSRAPI_EXCHANGE_ERROR}, //TL_GBP_CheckResponse from TL_GBP_TestPCB
{ERR_LRC, GCLSRAPI_EXCHANGE_ERROR}, //TL_GBP_CheckResponse
{ERR_EOT, GCLSRAPI_EXCHANGE_ERROR}, // ? pas trouvé
{ERR_PARITY, GCLSRAPI_EXCHANGE_ERROR}, //TL_Receive from VP_Receive
{ERR_PORT_ABSENT, GCLSRAPI_PORT_ERROR}, //TL_Receive from PP_ReadComm
{ERR_SETCOMMSTATE, GCLSRAPI_PORT_ERROR}, // ? PP_OpenComm PP_SetCommState PP_GetCommState
{ERR_WRITECOMM, GCLSRAPI_PORT_ERROR}, //TL_Send
{ERR_READCOMM, GCLSRAPI_PORT_ERROR}, //TL_Receive from VP_Receive
{ERR_CLOSECOMM, GCLSRAPI_PORT_ERROR}, // ? PP_CloseComm
{ERR_OPENCOMM, GCLSRAPI_PORT_ERROR}, // ? VP_Open PP_OpenComm
{ERR_INITBUFFERCOMM, GCLSRAPI_PORT_ERROR}, // ? PP_OpenComm
{ERR_CREATEEVENT, GCLSRAPI_PORT_ERROR}, //TL_Receive from PP_ReadComm
{ERR_NACK, GCLSRAPI_EXCHANGE_ERROR} }; // ? TL_TLP_CheckResponse
//ERROR_IO_PENDING ?

unsigned int ui_index;

/*search error code*/
for ( ui_index = 0;
ui_index < (sizeof(ausiGCLSRAPIError) / sizeof(trans_error_t));
ui_index++ )
{
/*if error code is found*/
if( usiError == ausiGCLSRAPIError[ui_index].usi_error_send_receive )
{
/*return transcoded error code*/
return ausiGCLSRAPIError[ui_index].uc_error_api;
}
}

/*error code is not found*/
return GCLSRAPI_PORT_ERROR;

}


Error 1 error C2065: 'NO_ERR' : undeclared identifier c:\documents and settings\l336c28\desktop\prox api & libs\gclsrapi\sources\oslibrary.c 245
Error 2 error C2065: 'ERR_READER_MUTE' : undeclared identifier c:\documents and settings\l336c28\desktop\prox api & libs\gclsrapi\sources\oslibrary.c 246

You are using NO_ERR and ERR_READER_MUTE and you haven't defined them.
Error 1 error C2143: syntax error : missing '{' before ':' c:\program files\microsoft visual studio 8\vc\include\cstdio 27
Error 2 error C2059: syntax error : ':' c:\program files\microsoft visual studio 8\vc\include\cstdio 27
Error 3 error C2143: syntax error : missing '{' before ':' c:\program files\microsoft visual studio 8\vc\include\cstdio 27


why have this kind of errors. i found the file is inside C:\Program Files\Microsoft Visual Studio 8 ??
You probably have a syntax error in one of your headers included before <cstdio>, and it isn't causing a problem until the cstdio header.
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



hey guys, how to solve this ..? thankx
Topic archived. No new replies allowed.