This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with project contained mixed C and C++ sources solved


Hello,

Many thanks for all peoples who helped me. 
The problem was simple solved by using the 
extern "C" { } construction.

///////////////////////// Begin ///////////////////////////////
#ifdef  __cplusplus
extern "C" {
#endif

typedef unsigned char byte;

void CRC_init(void);
void CRC_byte(byte byt);

#ifdef  __cplusplus
}
#endif
///////////////////////// End //////////////////////////////////

Jurgis Armanavichius
Firma MEDELKOM, http://www.medelkom.com



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]