To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3469
3468  |  3470
Subject: 
Re: Linked Lists in BrickOS
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 9 Oct 2003 01:31:50 GMT
Viewed: 
3285 times
  
In lugnet.robotics.rcx.legos, John Hansen wrote:
Also, if you make changes to your code you need to save before you compile (or
turn on the auto-save before compile option on the Preferences dialog) so that
the latest code is actually compiled (since BricxCC uses the disk file - not the
in-memory version - when it launches the make).

Yeah, this was the problem. It hadn't occurred to me that BricxCC wasn't saving
the file before making. Whoops.

The code below compiles in BricxCC (if BricxCC knows to use the C++ compiler).

Hope this helps,

Yes, tremendously

pNext = (Node *)NULL;

It looks like this was the problem line. I didn't know the syntax for a pointer
to nothing. (in pascal it's just a constant...)

Mike
btw-- how did you post code with indentations and have it not remove them? I'm
used to phpBB and the [code] tags, but we don't have those here...



Message has 2 Replies:
  Re: Linked Lists in BrickOS
 
(...) If you install cygwin and the cross compilers using my pre-packaged installer ((URL) and my pre-packaged and pre-built brickOS/leJOS installer ((URL) then you should be able to write your brickOS programs using GNU Pascal. (see below) (...) I (...) (21 years ago, 9-Oct-03, to lugnet.robotics.rcx.legos)
  Re: Linked Lists in BrickOS
 
(...) Michael, This will save you a few keystrokes: pNext = 0; :-) Mark (21 years ago, 10-Oct-03, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: Linked Lists in BrickOS
 
(...) BricxCC can't know for sure what compiler to use unless it can tell what type of file you are editing. It figures this out using the file extension. In order to compile C++ and C code, BricxCC needs the file to have a .cpp or .c extension. (...) (21 years ago, 8-Oct-03, to lugnet.robotics.rcx.legos)

8 Messages in This Thread:




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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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