To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 3410
3409  |  3411
Subject: 
legOS & C
Newsgroups: 
lugnet.robotics
Date: 
Wed, 3 Feb 1999 03:36:53 GMT
Original-From: 
Alex Howansky <ALEX@spamlessWANKWOOD.COM>
Viewed: 
841 times
  
Cygwin B20.1
legOS 0.16

Whenever I try to do a declaration initialization of an array:

int thing[] = {0x01,0x02,0x03};

I get a failure on linking:

"undefined reference to memcpy"

The code compiles and runs fine when compiled for x86. I can always work
around it with:

thing[0] = 0x01;
thing[1] = 0x02;

... but that's hardly the best solution. Anyone have an idea?

--
Alex Howansky
Wankwood Associates
http://www.wankwood.com

--
Did you check the web site first?: http://www.crynwr.com/lego-robotics



Message has 1 Reply:
  Re: legOS & C
 
(...) What compiler are you using? I was unable to duplicate this behavior with egcs-1.1 -- for static integer arrays it outputs .word pseudo-ops and for automatic arrays that small it generates inline code to initialize each element. In any case, (...) (26 years ago, 3-Feb-99, to lugnet.robotics)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR