Page 1 of 1

Compiling a C Program with Portable Ubuntu

Posted: Sun Jul 05, 2009 10:09 pm
by ninjaronin18
I'm relatively new to Linux. Anyways, I was wondering why when I use the terminal to compile a C Program that I wrote with the text editor in Portable Ubuntu, it would not detect the stdio.h. I'm thinking either the standard library was not installed with Portable Ubuntu (since Portable Ubuntu is not installed in the first place but merely extracted) or the path to the standard library is not right. Any suggestions?

Re: Compiling a C Program with Portable Ubuntu

Posted: Sun Jul 05, 2009 11:24 pm
by ninjaronin18
Okay, I found some stuff. Key this into the terminal: sudo apt-get install build-essential. The password for sudo is 123456. I'm in the process of doing this now. Hopefully, the stdio.h standard library package installs.

Re: Compiling a C Program with Portable Ubuntu

Posted: Sun Jul 05, 2009 11:32 pm
by ninjaronin18
Still doesn't work though.

Re: Compiling a C Program with Portable Ubuntu

Posted: Mon Jul 06, 2009 4:52 pm
by tom lightbody
portable ubuntu runs as an app under Windows
evidently support for programming isn't there

1. if what you want is a compiler for Windows, several
ports exist of gcc--cygwin, e.g.

or (for linux executables)

2. how about shrinking the XP partition with "gparted,"
then installing *real* ubuntu (dual boot)--or for
the purest experience, *real* debian

Re: Compiling a C Program with Portable Ubuntu

Posted: Mon Jul 06, 2009 9:19 pm
by ninjaronin18
Okay, thanks!

Re: Compiling a C Program with Portable Ubuntu

Posted: Thu Aug 13, 2009 3:59 pm
by Dead1nside
Not quite sure what you're asking. I assume you know the relevant commands to link, compile and execute under Linux using GCC.

I shrunk the NTFS partition of my laptop precisely to learn programming and gain experience in Linux. This is a really good way to do it. Fedora Linux can shrink it and also has good support for cross-compiling Windows apps under Linux, in the recent Fedora 11 release.