ROBOTC.net forums
http://www.robotc.net/forums/

C Programming in Linux
http://www.robotc.net/forums/viewtopic.php?f=14&t=2167
Page 1 of 1

Author:  scooter_x [ Fri Feb 05, 2010 1:13 pm ]
Post subject:  C Programming in Linux

Hey does anyone know of any good solid compiler I could use in Linux? I'd like to use just Linux instead of having to boot my laptop into Windows each time to program my NXT.

Author:  chrisssteeven [ Thu Feb 25, 2010 3:32 am ]
Post subject:  Re: C Programming in Linux

Hi,
You can use many good solid compiler in Linux so I am giving you names
of it. For many Linux developers, the obvious first choice is the GNU C/C++
and Fortran compilers. The latest C/C++ release, as of the time of writing, is
gcc 3.4.1. On the Fortran side, there's the g77 compiler, also in the gcc 3.4.1
distribution.

Author:  scooter_x [ Thu Feb 25, 2010 12:48 pm ]
Post subject:  Re: C Programming in Linux

So this GNU compiler has a way for me to download programs to my NXT? I'll have to try it out! I figured a standard compiler is just for regular old computers, not usable for NXT. Thanks.

Author:  mightor [ Thu Feb 25, 2010 3:47 pm ]
Post subject:  Re: C Programming in Linux

You can program the NXT using NXC under Linux. Compiling for the NXT using gcc-avr would be very tedious and extremely advanced.

- Xander

Author:  scooter_x [ Thu Feb 25, 2010 4:10 pm ]
Post subject:  Re: C Programming in Linux

Yea, I've been reading, and it's looking to be quite a bit to handle. I have in the past tried to install NXC, but had problems and gave up. Have you used it? I'm reading right now more about it, and I get confused when it says:

Quote:
The following releases are for the command line version of the NBC compiler which includes support for NBC & NXC. If you prefer a GUI, you may want to download a third party IDE such as BricxCC

Source: http://bricxcc.sourceforge.net/nbc/


I tried using BricxCC... The thing that confuses me is what do they mean by "if you prefer a GUI try BricxCC"? I imagine the regular old Mindstorms software as GUI programming. BricxCC wasn't a gui. It was just a place to type in code, right?

Author:  mightor [ Thu Feb 25, 2010 4:20 pm ]
Post subject:  Re: C Programming in Linux

Scooter,

I've used it in the past and I still use it. I've never bothered with installing it under Linux. The BricxCC is a programming environment with an editor and other featurs. There are command line tools that can compile the code for you. I think you forget that making most things work in Linux takes effort. I should know, I've been using it for almost 16 years and make my living from it.

In any case, NXC related questions are better asked on the NXTasy forums :)

- Xander

Author:  scooter_x [ Thu Feb 25, 2010 4:42 pm ]
Post subject:  Re: C Programming in Linux

You're exactly right about Linux taking effort, that's for sure.

Anyway, thanks for the information. I'll go pop on over to the NXTasy forums and ask them for some help.

Thanks again,
-Scooter

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/