[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ linking problems



> From: matthew.hook@xxxxxxx.nz
> Date: Fri, 27 Apr 2001 12:15:44 +1200

> I'm
> still getting
> unresolved references to a few functions.. see below:

These are easy ones. :-)

The declarations for these functions were not inside 'extern "C"
{' blocks.  It seems lots (most? all?) of those uC-libc header
files don't have the proper construct to make them usable for
C++. :-(

Before any declarations at top:
#ifdef __cplusplus
extern "C" {
#endif

At end:
#ifdef __cplusplus
}
#endif

brgds, H-P