Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

RE:link q's

2005-12-07 by Steve Franks

> Message: 1         
>    Date: Mon, 5 Dec 2005 15:39:34 -0700
>    From: Steve Franks <stevef@...>
> Subject: link q's
> 
> Hi all,
> 
...
> 
> So, I'm getting the following errors that I can't get rid of:
> 
> C:\projects\arm\examples\knightrider/main.cpp:41: undefined 
> reference to
> `SetNativeSpeed(unsigned long)'
> C:\projects\arm\examples\knightrider/main.cpp:48: undefined 
> reference to
> `ioctl(int, unsigned long, void*)'
...

I thought everyone would like to know the resolution:  when using newlib-lpc
from a .cpp file, one must surround the '#include' lines by 'extern "c" {}'.
Get's you every time.  Hopefully I'll save someone else a few hours someday.
'C' headers in cpp sources bites me about every 18 months.  One day I'll
learn...

regards,
Steve

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.