View unanswered posts | View active topics It is currently Thu Aug 28, 2014 7:39 am






Reply to topic  [ 7 posts ] 
C Programming in Linux 
Author Message
Rookie

Joined: Thu Sep 24, 2009 4:24 pm
Posts: 18
Post 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.


Fri Feb 05, 2010 1:13 pm
Profile
Rookie

Joined: Mon Feb 15, 2010 11:31 pm
Posts: 2
Post 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.

_________________
m3 ds


Thu Feb 25, 2010 3:32 am
Profile
Rookie

Joined: Thu Sep 24, 2009 4:24 pm
Posts: 18
Post 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.


Thu Feb 25, 2010 12:48 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3196
Location: Rotterdam, The Netherlands
Post 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

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu Feb 25, 2010 3:47 pm
Profile WWW
Rookie

Joined: Thu Sep 24, 2009 4:24 pm
Posts: 18
Post 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?


Thu Feb 25, 2010 4:10 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3196
Location: Rotterdam, The Netherlands
Post 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

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu Feb 25, 2010 4:20 pm
Profile WWW
Rookie

Joined: Thu Sep 24, 2009 4:24 pm
Posts: 18
Post 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


Thu Feb 25, 2010 4:42 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.