Compiling a C Program with Portable Ubuntu

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
ninjaronin18
Sophomore Member
Posts: 136
Joined: Thu May 01, 2008 12:39 am
Location: Pullman, Washington

Compiling a C Program with Portable Ubuntu

#1 Post by ninjaronin18 » Sun Jul 05, 2009 10:09 pm

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?
Lenovo/IBM T61p 6459-CTO
Intel C2D T9300 | Samsung 15.4" WSXGA+ | Quadro FX570m (256mb) | Crucial 4GB PC2-5300 DDR2-667 |WD Scorpio Blue 500 GB 5400 rpms | DVD/CD Recordable | Intel Pro/Wireless 3945ABG | Bluetooth | 6-cell | XP Pro 32-bit
Thinkcentre A51p
Thinkvision L220x

ninjaronin18
Sophomore Member
Posts: 136
Joined: Thu May 01, 2008 12:39 am
Location: Pullman, Washington

Re: Compiling a C Program with Portable Ubuntu

#2 Post by ninjaronin18 » Sun Jul 05, 2009 11:24 pm

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.
Lenovo/IBM T61p 6459-CTO
Intel C2D T9300 | Samsung 15.4" WSXGA+ | Quadro FX570m (256mb) | Crucial 4GB PC2-5300 DDR2-667 |WD Scorpio Blue 500 GB 5400 rpms | DVD/CD Recordable | Intel Pro/Wireless 3945ABG | Bluetooth | 6-cell | XP Pro 32-bit
Thinkcentre A51p
Thinkvision L220x

ninjaronin18
Sophomore Member
Posts: 136
Joined: Thu May 01, 2008 12:39 am
Location: Pullman, Washington

Re: Compiling a C Program with Portable Ubuntu

#3 Post by ninjaronin18 » Sun Jul 05, 2009 11:32 pm

Still doesn't work though.
Lenovo/IBM T61p 6459-CTO
Intel C2D T9300 | Samsung 15.4" WSXGA+ | Quadro FX570m (256mb) | Crucial 4GB PC2-5300 DDR2-667 |WD Scorpio Blue 500 GB 5400 rpms | DVD/CD Recordable | Intel Pro/Wireless 3945ABG | Bluetooth | 6-cell | XP Pro 32-bit
Thinkcentre A51p
Thinkvision L220x

tom lightbody
Junior Member
Junior Member
Posts: 334
Joined: Fri Jul 07, 2006 1:07 am
Location: cleveland

Re: Compiling a C Program with Portable Ubuntu

#4 Post by tom lightbody » Mon Jul 06, 2009 4:52 pm

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
the way up and the way down are the same (heraclitus)

ninjaronin18
Sophomore Member
Posts: 136
Joined: Thu May 01, 2008 12:39 am
Location: Pullman, Washington

Re: Compiling a C Program with Portable Ubuntu

#5 Post by ninjaronin18 » Mon Jul 06, 2009 9:19 pm

Okay, thanks!
Lenovo/IBM T61p 6459-CTO
Intel C2D T9300 | Samsung 15.4" WSXGA+ | Quadro FX570m (256mb) | Crucial 4GB PC2-5300 DDR2-667 |WD Scorpio Blue 500 GB 5400 rpms | DVD/CD Recordable | Intel Pro/Wireless 3945ABG | Bluetooth | 6-cell | XP Pro 32-bit
Thinkcentre A51p
Thinkvision L220x

Dead1nside
Senior Member
Senior Member
Posts: 780
Joined: Mon Jul 24, 2006 8:32 pm
Location: Reading, UK
Contact:

Re: Compiling a C Program with Portable Ubuntu

#6 Post by Dead1nside » Thu Aug 13, 2009 3:59 pm

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.
T41p 2373-GHG / 1.5Ghz 'Banias' / NMB Keyboard
T61 14.1'' 7661-CTO / Vista Business / WXGA / T7300 / 2GB RAM / 80GB HDD / X3100 / 3945ABG / NMB KB /
T400 14.1'' 2768-CTO / Vista Business / WXGA / P8400 / 4GB RAM / 200GB 7200RPM / HD 3470 / 5300AGN / WWAN / NMB KB

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 0 guests