Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] RE:link q's

2005-12-08 by Tom Walsh

Steve Franks wrote:

>>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...
>
>  
>
Maybe get an open source lint program and change it to look for that for 
you?

Regards,

TomW


-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------

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.