Compiling a C Program with Portable Ubuntu
-
ninjaronin18
- Sophomore Member
- Posts: 136
- Joined: Thu May 01, 2008 12:39 am
- Location: Pullman, Washington
Compiling a C Program with Portable Ubuntu
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
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
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
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
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
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

- Posts: 334
- Joined: Fri Jul 07, 2006 1:07 am
- Location: cleveland
Re: Compiling a C Program with Portable Ubuntu
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
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
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
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

- Posts: 780
- Joined: Mon Jul 24, 2006 8:32 pm
- Location: Reading, UK
- Contact:
Re: Compiling a C Program with Portable Ubuntu
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.
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
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
-
- Similar Topics
- Replies
- Views
- Last post
-
-
The Newest GPD Pocket with Z8750 CPU Windows 10 System or Ubuntu 16.04
by laozhu » Thu Jan 12, 2017 5:02 am » in Off-Topic Stuff - 12 Replies
- 1432 Views
-
Last post by QWERTY Andreas
Wed Feb 15, 2017 3:52 am
-
-
-
How to improve audio on a Thinkpad T530 under Ubuntu?
by wrybread » Sun Mar 05, 2017 2:14 am » in Linux Questions - 1 Replies
- 1193 Views
-
Last post by wrybread
Fri Apr 07, 2017 5:38 pm
-
Who is online
Users browsing this forum: No registered users and 0 guests



