[newbie] C++ question
Hi all, Perhaps this is not the place to ask, but I am getting nowhere searching the web. I am trying to learn C++ programming. At my work (for which I need to learn this) I am futzing with a program which so far works. The machine I use runs on Tru64 Unix. When I try to compile the same program at home, the compiler (I use g++ at home) tells me that all kinds of things are unknown. The header-files could be the problem, I suspect, but I don't know where or what. Part of the programcode I wrote: #include iostream #include strstream #include fstream #include stdlib.h // ### void VoegToe(char* foto, int hoog, int breed, char* bestand) { cout Toevoegen... endl; ofstream fout(bestand, ios::app); if (!fout) { cout Er is iets mis! fout ?? endl; return; } Of course, the code goes on, but the compiler already tells me that cout and endl are not defined already. Can someone shed some light on this? Have I forgotten to install some devel-packages (I have looked at this but could not find anymore to install.) Or do you need more information? Thanks for help or pointers, Paul Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
RE: [newbie] C++ question
try writing : using namespace std; after the headers From: [EMAIL PROTECTED] Reply-To: newbie@linux-mandrake.com To: newbie@linux-mandrake.com Subject: [newbie] C++ question Date: Thu, 6 Jan 2005 12:39:51 +0100 (CET) Hi all, Perhaps this is not the place to ask, but I am getting nowhere searching the web. I am trying to learn C++ programming. At my work (for which I need to learn this) I am futzing with a program which so far works. The machine I use runs on Tru64 Unix. When I try to compile the same program at home, the compiler (I use g++ at home) tells me that all kinds of things are unknown. The header-files could be the problem, I suspect, but I don't know where or what. Part of the programcode I wrote: #include iostream #include strstream #include fstream #include stdlib.h // ### void VoegToe(char* foto, int hoog, int breed, char* bestand) { cout Toevoegen... endl; ofstream fout(bestand, ios::app); if (!fout) { cout Er is iets mis! fout ?? endl; return; } Of course, the code goes on, but the compiler already tells me that cout and endl are not defined already. Can someone shed some light on this? Have I forgotten to install some devel-packages (I have looked at this but could not find anymore to install.) Or do you need more information? Thanks for help or pointers, Paul Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com _ Don't just search. Find. Check out the new MSN Search! http://search.msn.com/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
[newbie] C/C++ IDE Mandrake 9.2
On the Mandrake 9.2 download installation, does anyone remember the name of the package containing a C/C++ IDE (other than KDevelop)? I saw it a couple days ago when I was installing some other packages and thought to myself Hey, that looks interesting, I'll have to come back and check it out. Of course, now I can't remember the name, and I've tried search by name and by description to no avail. Thanks. -- Guy Rouillier Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C programs and graphical environment - may be OT
On Tue, 2003-09-09 at 11:25, J Adam Latham wrote: If anyone has any advice as to how to get the C programs to execute when booting into a non-graphical environment it'll be most appreciated ... Thanks in advance ... Best, Adam Sounds like a system search path is being munged somewhere...have you checked all the environmental variables or reconfigured them in any way? stephen kuhn - owner == illawarra computer services a kuhn media australia company http://kma.0catch.com -- * This message was composed on a 100% Microsoft free computer * We expressly refuse to utilise Microsoft DRM encoded documents -- Many Myths are based on truth -- Spock, The Way to Eden, stardate 5832.3 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C programs and graphical environment - may be OT
On Tuesday 09 Sep 2003 2:25 am, J Adam Latham wrote: Hello all ... I'm beginning to learn C programming and recently came across an odd occurence. When my system is set to boot into graphical mode (via MCC-Boot) everything with the C programs works fine ... They compile and execute. However, if I disable the graphical environment at boot (i.e., boot into a shell, if that's the right terminology) the C programs will compile w/out error, but they won't execute ... Instead, I get the following message - bash: a.out: command not found. It sounds like you are logging in as root when not in the graphical environment. Root usually does not have the current directory in the execution path, as a security protection against trojans. ./a.out should work. A better plan would be to log in as a regular user. -- Richard Urwin Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C programs and graphical environment - may be OT
Thanks for responding, but actually I am logging in as myself (not root). On Monday 08 September 2003 11:47 pm, Richard Urwin wrote: On Tuesday 09 Sep 2003 2:25 am, J Adam Latham wrote: Hello all ... I'm beginning to learn C programming and recently came across an odd occurence. When my system is set to boot into graphical mode (via MCC-Boot) everything with the C programs works fine ... They compile and execute. However, if I disable the graphical environment at boot (i.e., boot into a shell, if that's the right terminology) the C programs will compile w/out error, but they won't execute ... Instead, I get the following message - bash: a.out: command not found. It sounds like you are logging in as root when not in the graphical environment. Root usually does not have the current directory in the execution path, as a security protection against trojans. ./a.out should work. A better plan would be to log in as a regular user. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C programs and graphical environment - may be OT
On Monday 08 September 2003 10:48 pm, Stephen Kuhn wrote: On Tue, 2003-09-09 at 11:25, J Adam Latham wrote: If anyone has any advice as to how to get the C programs to execute when booting into a non-graphical environment it'll be most appreciated ... Thanks in advance ... Best, Adam Sounds like a system search path is being munged somewhere...have you checked all the environmental variables or reconfigured them in any way? Not that I am aware of ... What should the environment variables be in order to execute the program, and how could I check such a thing? stephen kuhn - owner == illawarra computer services a kuhn media australia company http://kma.0catch.com -- * This message was composed on a 100% Microsoft free computer * We expressly refuse to utilise Microsoft DRM encoded documents -- Many Myths are based on truth -- Spock, The Way to Eden, stardate 5832.3 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] C programs and graphical environment - may be OT
Hello all ... I'm beginning to learn C programming and recently came across an odd occurence. When my system is set to boot into graphical mode (via MCC-Boot) everything with the C programs works fine ... They compile and execute. However, if I disable the graphical environment at boot (i.e., boot into a shell, if that's the right terminology) the C programs will compile w/out error, but they won't execute ... Instead, I get the following message - bash: a.out: command not found. Even when I then go into an X environment I still get the error message. But if I go back into MCC-Boot and select launch into a graphical environment and reboot, everything works fine ... If anyone has any advice as to how to get the C programs to execute when booting into a non-graphical environment it'll be most appreciated ... Thanks in advance ... Best, Adam Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] C++ Compiler?
Will gcc compile C++ code? -Cody Harris Linux Rox My Sox! Check out HCHS! http://vectec.net Proud to use Mandrake Linux 8.1 as a server. Not proud to use Windows as a primary server. Registered Linux user #315598 Registered Linux Computer #200951 Wrote on a Windoze Computer :( Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C++ Compiler?
On Wed, 23 Jul 2003 14:51:50 -0300 Cody Harris [EMAIL PROTECTED] wrote: Will gcc compile C++ code? Yes, as long as you have gcc-c++ and its assoc. libs installed Charles -- You can go anywhere you want if you look serious and carry a clipboard -- Murphy's Laws on Work n°4 - Mandrake Linux 9.2 on PurpleDragon Kernel- 2.4.21.5mdk http://www.eslrahc.com - pgp0.pgp Description: PGP signature
Re: [newbie] C++ Compiler?
Why is yout message blank? - Original Message - From: Charles A Edwards [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 4:42 PM Subject: Re: [newbie] C++ Compiler? Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C++ Compiler?
On Wed, 2003-07-23 at 19:51, Cody Harris wrote: Will gcc compile C++ code? Yes, no problem. Paul -- The tongue is but three inches long, yet it can kill a man six feet high. -Japanese Proverb http://nlpagan.net - Linux Mandrake - Ximian Evolution Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C++ Compiler?
On Wednesday 23 Jul 2003 8:43 pm, Cody Harris wrote: Why is yout message blank? Possibly Outlook Express doesn't display signed messages correctly? Anne Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C++ Compiler?
On Wednesday July 23 2003 04:10 pm, Cody Harris wrote: Maybe...it says all messages have an attachment...but it won't let me see it. I believe Anne already surmised your bigger problem. Your 'X-Mailer: Microsoft Outlook Express 6.00.2800.1158' is the problem. Possibly Outlook Express doesn't display signed messages correctly? Anne Charles, signs his emails with pgp. M$ tries to be as non-standard as possible. With 80% of Net users, they hope they become the standard. But they're thankfully losin ground. You can help. If you must connect with any M$ OS (lack of security already a given), at least use a non-M$ mail program. Your security an compatibility will almost certainly be enhanced. Anyhow as Charles suggested you need the C++ packages installed. Use rpmdrake an search 'c++', or boot the install CD an choose, upgrade, Development, if you didn't when you did install. -- Tom Brinkman Corpus Christi, Texas Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] C header files
I'm installing vmware - running the config script, it's asking for the location of the directory of the C header files matching my kernel. Usually I can find files but not this Any help?? thanks, Curt -- Registered Linux User #299730 Registered Machine #2046 *~*~*~*~*~*~*~*~60.51518 N, 150.79705 W*~*~*~*~*~*~*~*~*~*~*~*~*~*~ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C header files
On 18 Jul 2003 12:18:47 -0500 Curt Tresenriter [EMAIL PROTECTED] wrote: I'm installing vmware - running the config script, it's asking for the location of the directory of the C header files matching my kernel. You need to install the kernel-source rpm for the version of the kernel you are running. The files will be installed in /usr/src/linux-kernel-version Charles -- Avec! - Mandrake Linux 9.2 on PurpleDragon Kernel- 2.4.21.3mdk http://www.eslrahc.com - pgp0.pgp Description: PGP signature
Re: [newbie] C header files
On Friday 18 Jul 2003 6:18 pm, Curt Tresenriter wrote: I'm installing vmware - running the config script, it's asking for the location of the directory of the C header files matching my kernel. Usually I can find files but not this Any help?? thanks, Curt Install the kernel-source RPM using your Mandrake Software manager. Make sure you install the one matching the kernel you are using. derek -- -- www.jennings.homelinux.net Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C header files
On Fri, 2003-07-18 at 13:45, Derek Jennings wrote: On Friday 18 Jul 2003 6:18 pm, Curt Tresenriter wrote: I'm installing vmware - running the config script, it's asking for the location of the directory of the C header files matching my kernel. Usually I can find files but not this Any help?? thanks, Curt Install the kernel-source RPM using your Mandrake Software manager. Make sure you install the one matching the kernel you are using. derek Went there, but the only choice was for a different kernel. When I opened the prog to remove software, the sources for my kernel were listed! (I did install them) When I say locate kernel-source, I get /usr/share/doc/kernel-source-2.4.21 /usr/share/doc/kernel-source-2.4.21/README.kernel-sources /usr/share/doc/kernel-source-2.4.21/README.Mandrake /usr/share/doc/kernel-2.4.21.0.13mdk-1/README.kernel-sources Somethings wrong here, no? Curt -- Registered Linux User #299730 Registered Machine #2046 *~*~*~*~*~*~*~*~60.51518 N, 150.79705 W*~*~*~*~*~*~*~*~*~*~*~*~*~*~ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C header files
On Fri, 2003-07-18 at 13:23, Charles A Edwards wrote: On 18 Jul 2003 12:18:47 -0500 Curt Tresenriter [EMAIL PROTECTED] wrote: I'm installing vmware - running the config script, it's asking for the location of the directory of the C header files matching my kernel. You need to install the kernel-source rpm for the version of the kernel you are running. The files will be installed in /usr/src/linux-kernel-version Charles Thank you Charles! I'd swear I chose that rpm at install time. Curt -- Registered Linux User #299730 Registered Machine #2046 *~*~*~*~*~*~*~*~60.51518 N, 150.79705 W*~*~*~*~*~*~*~*~*~*~*~*~*~*~ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] C header files
Hi all Much conventional question this time (sorry about the last one I really didn't mean to offend or annoy). Anyway I'm trying to install VMware 3.1 and after installation I get this message when trying to run: VMware Workstation Error: VMware Workstation is installed, but it has not been (correctly) configured for your running kernel. To (re-)configure it, your system administrator must find and run vmware-config.pl. After running vmware-config.pl I get this message: None of VMware Workstation's pre-built vmmon modules is suitable for your running kernel. Do you want this script to try to build the vmmon module for your system (you need to have a C compiler installed on your system)? After choosing yes I receive another message: Argument gcc (GCC) 3 isn't numeric in numeric ge (=) at /usr/bin/vmware-config.pl line 1476, STDIN line 1. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] Where are these files please they are not in the directory it suggested [/usr/src/linux/include]. I've tried allsorts but with no luck. Thanks in advance Andrew Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C header files
Argument gcc (GCC) 3 isn't numeric in numeric ge (=3D) at=20 /usr/bin/vmware-config.pl line 1476, STDIN line 1. What is the location of the directory of C header files that match your=20 running kernel? [/usr/src/linux/include]=20 Looks like you forgot to install the kernel-headers rpm. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C header files
On Sunday 02 March 2003 01:45 pm, David E. Fox wrote: Argument gcc (GCC) 3 isn't numeric in numeric ge (=3D) at=20 /usr/bin/vmware-config.pl line 1476, STDIN line 1. What is the location of the directory of C header files that match your=20 running kernel? [/usr/src/linux/include]=20 Looks like you forgot to install the kernel-headers rpm. More likely kernel-sources your=20 running kernel? [/usr/src/linux/include]=20 ^ -- Greg Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C header files
On Sun, 2003-03-02 at 19:17, Andrew Scotchmer wrote: Hi all Much conventional question this time (sorry about the last one I really didn't mean to offend or annoy). Anyway I'm trying to install VMware 3.1 and after installation I get this message when trying to run: VMware Workstation Error: VMware Workstation is installed, but it has not been (correctly) configured for your running kernel. To (re-)configure it, your system administrator must find and run vmware-config.pl. After running vmware-config.pl I get this message: None of VMware Workstation's pre-built vmmon modules is suitable for your running kernel. Do you want this script to try to build the vmmon module for your system (you need to have a C compiler installed on your system)? After choosing yes I receive another message: Argument gcc (GCC) 3 isn't numeric in numeric ge (=) at /usr/bin/vmware-config.pl line 1476, STDIN line 1. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] Where are these files please they are not in the directory it suggested [/usr/src/linux/include]. I've tried allsorts but with no luck. Thanks in advance Andrew You're going to need to install the kernel sources and header files - I think they're on CD3 - but could be on CD2 - either which, once you get the kernel sources and headers installed, you can then safely run the config script for VMWare without any further hassles. I manually added the kernel sources because I didn't want to depend on the Mandrake Control Centre and the Software Manager - but someone else might have a better way of doing the installation of the kernel sources... -- Mon, 3 Mar 2003 09:40:00 +1100 9:40am up 4 days, 23:43, 5 users, load average: 0.01, 0.12, 0.22 -- |____ | kuhn media australia| | / ,, /| |'-. | http://kma.0catch.com | | .\__/ || | | |=| | _ / `._ \|_|_.-' | stephen kuhn| | | / \__.`=._) (_ | email: [EMAIL PROTECTED] | | |/ ._/ || | email: [EMAIL PROTECTED]| | |'. `\ | | |icq: 5483808 | | ;/ / | | | | | smk ) /_/| |.---.| | mobile: 0410-728-389| | ' `-`' | Berkeley, New South Wales, AU | -- linux user:267497 * RH 8.0 * PC/Mac/Linux/Networking/Consulting -- You never ever volunteered. Not even if a sergant stood there and said, We need someone to drink alcohol, bottles of, and make love, passionate, to women, for the use of. There was *always* a snag. If a choir of angels asked for volunteers for Paradise to step forward, Nobby knew enough to take one smart pace to the rear. (Feet of Clay) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C header files
Greg Meyer wrote: On Sunday 02 March 2003 01:45 pm, David E. Fox wrote: Looks like you forgot to install the kernel-headers rpm. More likely kernel-sources may be, he is still pushing his cart, only now he has new cardboard. peace out. tc,hago. g . -- think green... save a tree, save a life, save time, save bandwidth, save storage. send email... text/plain - disable pgp/gpg/geek code attachments =+= if you are proud to be an american, then buy made in america. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C++ question.
On Wed 2003-02-12 at 00:06:24 -0800, [EMAIL PROTECTED] wrote: Hi, I am using the GNU gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk) to compile the program listed below. I get the compile time error: 23: field `cb' has incomplete type Can somebody please give me a hint on why the compiler is complaining? Because you try to use class C before it is defined (you declared it above, but the definition comes afterwards). As long as the class is only declared, you may only use it in limited context. For example, you may create a pointer or reference to the class, you may also define new types based on the class (typedef). But when you define class D, the compiler tries determine the memory layout of the class, and thefore has to know more about C than it does at that point. A more detailed explanation can be found in http://www.cuj.com/experts/2002/austern.htm?topic=experts HTH, Benjamin. [... reduced example to the relevant part ...] class C; class D { C cb; }; class C { int foo; }; int main() { } msg119264/pgp0.pgp Description: PGP signature
[newbie] C/L question
I see the following: chown [-R] [user][.][group] files from which I gather that a space goes after the -R, but not between the other components? What does the [.] stand for? Anne -- Registered Linux User No.293302 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C/L question
On Sat, 1 Feb 2003 16:46:31 + Anne Wilson [EMAIL PROTECTED] wrote: On Saturday 01 Feb 2003 3:50 pm, Todd Slater wrote: From man chown: x Thanks Todd. I have to confess I much prefer paper manuals, so I tend to check books before reading man pages. And really, this above is a prime example of why newbies often don't read them. The info is all there, but when you read it you feel punch-drunk g Anne Believe me, I understand. I think it takes a little practice to be able to quickly find what you're looking for and understand it in the man pages. But often for me, it's more convenient than trying to look it up in a book. I once asked for recommendations on books for learning shell programming; one person said man bash is all you need. For a newbie like me, what bad advice! Have you ever read man bash? Now that I know a little bit, I can go back and get some info, but as a newbie it was nearly useless. Todd -- Todd Slater Mandrake Newbie mailing list help: mailto:[EMAIL PROTECTED]?subject=help Got a great Mandrake-Linux tip bookmarked? Send it to me and I'll include it in my newbie tips fortune file! Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C/L question
On Saturday 01 February 2003 11:46 am, Anne Wilson wrote: Thanks Todd. I have to confess I much prefer paper manuals, so I tend to check books before reading man pages. And really, this above is a prime example of why newbies often don't read them. The info is all there, but when you read it you feel punch-drunk g Anne Anne, don't feel lonely - sometimes man pages leave me feeling like I just walked into rocket scientist territory as well. I firmly believe that man pages should never be written by the same people who wrote whatever software the man page is covering... grin -- /\ Dark Lord \/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C/L question
On Sun, 2003-02-02 at 02:15, Anne Wilson wrote: I see the following: chown [-R] [user][.][group] files from which I gather that a space goes after the -R, but not between the other components? What does the [.] stand for? Anne Here's a for instance chown -Rf nobody:netusers /home/shared_drive/* -- Sun, 2 Feb 2003 07:30:00 +1100 7:30am up 2 days, 10:27, 4 users, load average: 0.63, 0.52, 0.36 -- |____ | kuhn media australia| | / ,, /| |'-. | http://kma.0catch.com | | .\__/ || | | |=| | _ / `._ \|_|_.-' | stephen kuhn| | | / \__.`=._) (_ | email: [EMAIL PROTECTED] | | |/ ._/ || | email: [EMAIL PROTECTED]| | |'. `\ | | |icq: 5483808 | | ;/ / | | | | | smk ) /_/| |.---.| | mobile: 0410-728-389| | ' `-`' | Berkeley, New South Wales, AU | -- linux user:267497 * RH 8.0 * PC/Mac/Linux/Networking/Consulting -- Why I Can't Go Out With You: I'd LOVE to, but... -- I've got a Friends of the Lowly Rutabaga meeting. -- I promised to help a friend fold road maps. -- I've been scheduled for a karma transplant. -- I'm staying home to work on my cottage cheese sculpture. -- It's my parakeet's bowling night. -- I'm building a plant from a kit. -- There's a disturbance in the Force. -- I'm doing door-to-door collecting for static cling. -- I'm teaching my ferret to yodel. -- My crayons all melted together. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] C/L question
On Sun, 02 Feb 2003 07:31:21 +1100 Stephen Kuhn [EMAIL PROTECTED] wrote: On Sun, 2003-02-02 at 02:15, Anne Wilson wrote: I see the following: chown [-R] [user][.][group] files from which I gather that a space goes after the -R, but not between the other components? What does the [.] stand for? Anne Here's a for instance chown -Rf nobody:netusers /home/shared_drive/* Take care with the recursive option (-R) on a directory structure. I recently got caught out big time and changed the ownership of my WHOLE /home (Only 8Gb!! and 7 users to fix - took days!!) This commandline _could_ do this too! Especially if being run as root. If you are intending only to change the ownership of the files _below_ /home/shared_drive you should omit the the training '/*' because any symbolic links you have in that structure could be followed into other structures!! Forewarned - Forearmed Cheers John Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] c shell path
Can someone tell me how to create variables and add to the path in C shell??? I can't use many programs because of this, Thanks Aarom Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] c shell path
On Thu, 2003-01-23 at 05:24, Aaron Mehl wrote: Can someone tell me how to create variables and add to the path in C shell??? I can't use many programs because of this, Thanks Aarom You can edit the ~/home/yournamegoeshere/.bashrc to put variables into it or modify - but you'll have to logout and login again to make sure they're working properly... -- Thu, 23 Jan 2003 06:50:01 +1100 6:50am up 6 days, 16:33, 4 users, load average: 0.09, 0.15, 0.17 -- |____ | kuhn media australia| | / ,, /| |'-. | http://kma.0catch.com | | .\__/ || | | |=| | _ / `._ \|_|_.-' | stephen kuhn| | | / \__.`=._) (_ | email: [EMAIL PROTECTED] | | |/ ._/ || | email: [EMAIL PROTECTED]| | |'. `\ | | |icq: 5483808 | | ;/ / | | | | | smk ) /_/| |.---.| | mobile: 0410-728-389| | ' `-`' | Berkeley, New South Wales, AU | -- linux user:267497 * RH 8.0 * PC/Mac/Linux/Networking/Consulting -- The amount of weight an evangelist carries with the almighty is measured in billigrahams. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] c shell path
Hi, I don't use any of these shells, so I don't remember the exact details, but if I'm not mistaken, tcsh reads both ~/.cshrc and ~/.tcshrc. So if you want to have this variable for both shells, put setenv JAVA_HOME whatever In ~/.cshrc. If this file doesn't exist, just create it. Of course, if you are a sysadmin on this machine you might want to set it for all users in (something like) /etc/cshrc. Anyway, all the details about these files should be in man tcshrc HTH Moshe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Aaron Mehl Sent: Thursday, January 23, 2003 10:27 AM To: linux newbie Cc: Moshe Kaminsky Subject: RE: [newbie] c shell path Thanks, Yes as in tsch shell, I see no ~/.cshrc at all. I am trying to set up some xml/java stuff and need to set JAVA_HOME On Thu, 2003-01-23 at 01:14, Moshe Kaminsky wrote: Hi, If you really mean *C* shell (csh) then it should probably go into the ~/.cshrc file. You do something like: setenv PATH your path:$PATH Note that the order of the directories is important, the program found in the first of them is the one taken. Which mean that if I have /usr/java/j2re1.4.1_01/bin in my path and I add /usr/java/j2re1.4.1_01 it will only read the first entry?? Thanks Aaron Moshe Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] C++
Assalamu alaikum, can you compile these programs and tell me what you get? Ayoub //: C13:PStashTest.cpp // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt //{L} PStash // Test of pointer Stash #include PStash.h #include ../TICPP-2nd-ed-Vol-one-code/require.h #include iostream #include fstream #include string using namespace std; class Counted { int id; static int count; public: Counted() : id(count++){ cout Constructed id = id endl;} ~Counted(){ cout Destructed id = id endl;} friend ostream operator(ostream os, Counted a); }; ostream operator(ostream os, Counted a) { os a.id; return os;} int main() { PStash intStash; // 'new' works with built-in types, too. Note // the pseudo-constructor syntax: for(int i = 0; i 25; i++) intStash.add(new Counted); for(int j = 0; j intStash.count(); j++) cout intStash[ j ] = *(Counted*)intStash[j] endl; // Clean up: for(int k = 0; k intStash.count(); k++) delete (Counted*)intStash.remove(k); ifstream in (ch13_3.cpp); assure(in, ch13_3.cpp); PStash stringStash; string line; while(getline(in, line)) stringStash.add(new string(line)); // Print out the strings: for(int u = 0; stringStash[u]; u++) cout stringStash[ u ] = *(string*)stringStash[u] endl; // Clean up: for(int v = 0; v stringStash.count(); v++) delete (string*)stringStash.remove(v); } ///:~ //: C13:PStash.cpp {O} // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt // Pointer Stash definitions #include PStash.h #include ../TICPP-2nd-ed-Vol-one-code/require.h #include iostream #include cstring // 'mem' functions using namespace std; int PStash::add(void* element) { const int inflateSize = 10; if(next = quantity) inflate(inflateSize); storage[next++] = element; return(next - 1); // Index number } // No ownership: PStash::~PStash() { for(int i = 0; i next; i++) require(storage[i] == 0, PStash not cleaned up); delete []storage; } // Operator overloading replacement for fetch void* PStash::operator[](int index) const { require(index = 0, PStash::operator[] index negative); if(index = next) return 0; // To indicate the end // Produce pointer to desired element: return storage[index]; } void* PStash::remove(int index) { void* v = operator[](index); // Remove the pointer: if(v != 0) storage[index] = 0; return v; } void PStash::inflate(int increase) { const int psz = sizeof(void*); void** st = new void*[quantity + increase]; memset(st, 0, (quantity + increase) * psz); memcpy(st, storage, quantity * psz); quantity += increase; delete []storage; // Old storage storage = st; // Point to new memory } ///:~ //: C13:PStash.h // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt // Holds pointers instead of objects #ifndef PSTASH_H #define PSTASH_H class PStash { int quantity; // Number of storage spaces int next; // Next empty space // Pointer storage: void** storage; void inflate(int increase); public: PStash() : quantity(0), storage(0), next(0) {} ~PStash(); int add(void* element); void* operator[](int index) const; // Fetch // Remove the reference from this PStash: void* remove(int index); // Number of elements in Stash: int count() const { return next; } }; #endif // PSTASH_H ///:~ //: :require.h // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt // Test for error conditions in programs // Local using namespace std for old compilers #ifndef REQUIRE_H #define REQUIRE_H #include cstdio #include cstdlib #include fstream #include string inline void require(bool requirement, const std::string msg = Requirement failed){ using namespace std; if (!requirement) { fputs(msg.c_str(), stderr); fputs(\n, stderr); exit(1); } } inline void requireArgs(int argc, int args, const std::string msg = Must use %d arguments) { using namespace std; if (argc != args + 1) { fprintf(stderr, msg.c_str(), args); fputs(\n, stderr); exit(1); } } inline void requireMinArgs(int argc, int minArgs, const std::string msg = Must use at least %d arguments) { using namespace std; if(argc minArgs + 1) { fprintf(stderr, msg.c_str(), minArgs); fputs(\n, stderr); exit(1); } } inline void assure(std::ifstream in, const std::string filename = ) { using namespace std; if(!in) { fprintf(stderr, Could not open file %s\n,
RE: [newbie] C-compiler
The one that ships with Linux, GCC. =) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of ege7 Sent: Thursday, January 31, 2002 12:12 PM To: [EMAIL PROTECTED] Subject: [newbie] C-compiler Hi! What is the best c-compiler? Regards! Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] C-compiler
Hi! What is the best c-compiler? Regards! Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] c compiler and its problem in 8.0
On Mon, 31 Dec 2001, Pen Gwynne wrote: Eric, Please do gcc -v or cc -v and tell us what it says. I have the following 4 line program: int main() { printf(Hello World!); } - snip -- Now let me say this. My prompt is the normal, or default [pen@myhost dir]$ When I run the program what I see is: Hello World![pen@myhost dir]$ For a start you could try adding \n to the end of the string. That should separate the message and the prompt. printf(Hello World!\n); You should also be aware of one more funny thing that Linux does. After running a.out, the hello world example, As soon as I type something, anything, then the hello world program output and my prompt line: Hello World![pen@myhost dir]$ is comes just: [pen@myhost dir]$ Not sure I understand what you are saying, but any output from the program will be buffered until the shell sees a newline. It looks like the program never printed anything at all. Hope this helps. /Pen -- Len Lawrence @ The Thistle Foundation Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] c compiler and its problem in 8.0
What warnings are you getting? Anyway, you need to add a return value unless you change to function from int main() to void main(). void main() is considered to be bad programming though. Add return 0; as your last line in the main() function. That will return the integer value of 0 (zero) to the system and is required if you use int main(). The int in int main() means that you are returning an integer value to the operating system. You should have a statement of #include stdio.h at the beginning of the program, also. Usually, a compiler will complain unless you include a header file with the function prototype and the compiler normally complains if you declare a function with a return value but don't provide a return value statement within the body of the function (the data types have to match also). At 05:52 PM 12/31/2001 -0500, eric wrote: Dear Pen: I tried your 4 lines program, it still not print out even I use gcc -v or cc -v to compile, actually after the gcc -v I got a lot of junks waring. Same thing, at bash it is not be printed, but it can be shown at csh. rpm -q gcc 2.96-0.48mdk (probably straight from 8.0 standard edition) rpm -q bash bash-2.04-18mdk(straight from 8.0 standard edition) you may check your bash in your 8.1 , is that same edition as mine in 8.0? may be that is the problem. eric, [EMAIL PROTECTED] Pen Gwynne wrote: Eric, Please do gcc -v or cc -v and tell us what it says. I have the following 4 line program: int main() { printf(Hello World!); } It compiles and run properly, even without the normal #include files. I am using a straight Mandrake 8.1 installation and my version of gcc is 2.96 2731. Now let me say this. My prompt is the normal, or default [pen@myhost dir]$ When I run the program what I see is: Hello World![pen@myhost dir]$ You should also be aware of one more funny thing that Linux does. After running a.out, the hello world example, As soon as I type something, anything, then the hello world program output and my prompt line: Hello World![pen@myhost dir]$ is comes just: [pen@myhost dir]$ It looks like the program never printed anything at all. Hope this helps. /Pen Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] c compiler and its problem in 8.0
Eric, Please do gcc -v or cc -v and tell us what it says. I have the following 4 line program: int main() { printf(Hello World!); } It compiles and run properly, even without the normal #include files. I am using a straight Mandrake 8.1 installation and my version of gcc is 2.96 2731. Now let me say this. My prompt is the normal, or default [pen@myhost dir]$ When I run the program what I see is: Hello World![pen@myhost dir]$ You should also be aware of one more funny thing that Linux does. After running a.out, the hello world example, As soon as I type something, anything, then the hello world program output and my prompt line: Hello World![pen@myhost dir]$ is comes just: [pen@myhost dir]$ It looks like the program never printed anything at all. Hope this helps. /Pen Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] c compiler and its problem in 8.0
Dear Pen: I tried your 4 lines program, it still not print out even I use gcc -v or cc -v to compile, actually after the gcc -v I got a lot of junks waring. Same thing, at bash it is not be printed, but it can be shown at csh. rpm -q gcc 2.96-0.48mdk (probably straight from 8.0 standard edition) rpm -q bash bash-2.04-18mdk(straight from 8.0 standard edition) you may check your bash in your 8.1 , is that same edition as mine in 8.0? may be that is the problem. eric, [EMAIL PROTECTED] Pen Gwynne wrote: Eric, Please do gcc -v or cc -v and tell us what it says. I have the following 4 line program: int main() { printf(Hello World!); } It compiles and run properly, even without the normal #include files. I am using a straight Mandrake 8.1 installation and my version of gcc is 2.96 2731. Now let me say this. My prompt is the normal, or default [pen@myhost dir]$ When I run the program what I see is: Hello World![pen@myhost dir]$ You should also be aware of one more funny thing that Linux does. After running a.out, the hello world example, As soon as I type something, anything, then the hello world program output and my prompt line: Hello World![pen@myhost dir]$ is comes just: [pen@myhost dir]$ It looks like the program never printed anything at all. Hope this helps. /Pen Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] c compiler and its problem in 8.0
eric wrote: Dear mandrake 8.0 standard user: I used simple c program hello world, in printf(hello world) it did not print at all, until I add \n\n at the end of the line of hello world, then it print as what it should be. but that kind of result is not correct. it never happen at redhat 7.1 or debian-progeny 1.0, they all can print even without \n\n at the end of string. need help, and thanks inn advance, eric lin, http://www.onlineexchange.com/shilin url so far, will add later What that means is that our compiler is stricter... It insists on proper C code. Civileme Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] c compiler and its problem in 8.0
Dear tester: Thanks your fast replay, but whether put \n or not put \n at string will violate the c syntax so it wont print in printf still worth to discuss-I will check my c programming book later to discuss with our community. /* I actually download and install many new gcc and its related mdk.rpm from cooker, it still not work the way redhat or debian work */. url:http://www.ezinfocenter.com/4436786 http://www.onlineexchange.com/shilin tester wrote: eric wrote: Dear mandrake 8.0 standard user: I used simple c program hello world, in printf(hello world) it did not print at all, until I add \n\n at the end of the line of hello world, then it print as what it should be. but that kind of result is not correct. it never happen at redhat 7.1 or debian-progeny 1.0, they all can print even without \n\n at the end of string. need help, and thanks inn advance, eric lin, http://www.onlineexchange.com/shilin url so far, will add later What that means is that our compiler is stricter... It insists on proper C code. Civileme Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] c compiler and its problem in 8.0
Dear mandrake 8.0 standard user: I used simple c program hello world, in printf(hello world) it did not print at all, until I add \n\n at the end of the line of hello world, then it print as what it should be. but that kind of result is not correct. it never happen at redhat 7.1 or debian-progeny 1.0, they all can print even without \n\n at the end of string. need help, and thanks inn advance, eric lin, http://www.onlineexchange.com/shilin url so far, will add later Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] c porgramming
In reply to pepe's words, written Tue, 28 Aug 2001 14:25:20 -0500 what are th edifferences in hte programation in C in a windows compiler and in linux... i got errors when compiling a porg in linux. help MS-C perhaps. They have their own little thingies. Very not compliant with mainstream C... Paul -- There are no stupid questions, but there are a lot of inquisitive idiots. http://nlpagan.net - Registered Linux User 174403 Linux Mandrake 8.0 - Sylpheed 0.5.3 Want to buy your Pack or Services from MandrakeSoft? Go to http://.mandrakestore.com
[newbie] c porgramming
what are th edifferences in hte programation in C in a windows compiler and in linux... i got errors when compiling a porg in linux. help _ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp Want to buy your Pack or Services from MandrakeSoft? Go to http://.mandrakestore.com
Re: [newbie] c porgramming
jejeje creo que deberia cuidar mejor tu ingles, si hay diferecias cuando programas en C para windows y para linux en especial con cosas que utilicen cosas que son especificas del sistema. Lo que te sugiero es que consigas alguna buenas pagina sobre programacion en C bajo linux alli encontraras una mejor explicacion que la que yo te pueda dar. hehehe you should take care of your english, yes there is differences between programing C under windows and linux, especially with those things specific to the system. What I suggest is get some good web page about programing C in linux, there you will find better explanation that I can give you. - Original Message - From: pepe torrres [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 3:25 PM Subject: [newbie] c porgramming what are th edifferences in hte programation in C in a windows compiler and in linux... i got errors when compiling a porg in linux. help _ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp Want to buy your Pack or Services from MandrakeSoft? Go to http://.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://.mandrakestore.com
Re: [newbie] C Compiler
civileme wrote: On Friday 20 July 2001 20:56, George Baker wrote: A V Flinsch wrote: On Wednesday 18 July 2001 17:03, you wrote: Trying to install koffice 2.0.1 and kfinance 0.2.0 and keep getting the message that the C Compiler can't create executables. I have installed gcc and gcc -c++. This is the config.log I get: You need to install glibc-devel -- Alex Kernel Panic is General Failure's second in command I installed glibc-devel and now get this message. Can't seem to find any libs that deal with X includes. [root@localhost kfinance-0.2.0]# ./configure loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g...yes checking how to run the C++ preprocessor... g++ -E checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths! [root@localhost kfinance-0.2.0]# -- Thanks George Baker South Africa You need the stuff from XFree that says -devel- in the rpms. It checks for X by looking for a header file. Civileme Well installed XFree - devel- , and then got message about qt headers, so I searched and installed the qt -devel- stuff but have now got a new message after running ./configure: checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for objdirlibs creating libtool checking whether NLS is requested... yes checking for msgfmt... msgfmt checking for gmsgfmt... msgfmt found msgfmt program is not GNU msgfmt; ignore it checking for xgettext... : checking for KDE... configure: error: in the prefix, you've chosen, are no kde headers installed. This will fail. So, check this please and use another prefix! [root@localhost kfinance-0.2.0]# What am I missing now? Gee, but it is quite a process to install a .tar.gzip package. -- Thanks George Baker South Africa
Re: [newbie] C Compiler
On Friday 20 July 2001 20:56, George Baker wrote: A V Flinsch wrote: On Wednesday 18 July 2001 17:03, you wrote: Trying to install koffice 2.0.1 and kfinance 0.2.0 and keep getting the message that the C Compiler can't create executables. I have installed gcc and gcc -c++. This is the config.log I get: You need to install glibc-devel -- Alex Kernel Panic is General Failure's second in command I installed glibc-devel and now get this message. Can't seem to find any libs that deal with X includes. [root@localhost kfinance-0.2.0]# ./configure loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g...yes checking how to run the C++ preprocessor... g++ -E checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths! [root@localhost kfinance-0.2.0]# -- Thanks George Baker South Africa You need the stuff from XFree that says -devel- in the rpms. It checks for X by looking for a header file. Civileme
[newbie] C Compiler
Trying to install koffice 2.0.1 and kfinance 0.2.0 and keep getting the message that the C Compiler can't create executables. I have installed gcc and gcc -c++. This is the config.log I get: Thanks George Baker South Africa This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:558: checking for gcc configure:671: checking whether the C compiler (gcc ) works configure:687: gcc -o conftestconftest.c 15 /usr/bin/ld: cannot open crt1.o: No such file or directory collect2: ld returned 1 exit status configure: failed program was: #line 682 configure #include confdefs.h main(){return(0);}
Re: [newbie] C compiling errors
It was Sat, 30 Jun 2001 20:51:15 -0700 when Rajagopal Iyengar wrote: Hi, I have a Mandrake 7.0 version of linux on my pentinum III 450 Mhz. I have included both include and lib libraries in my path. I am trying to compile a C program and it says it cannot find the files. I looked at the include and lib directories, the files are there? Do I need to set up any other environment variables? Hi Raj, Could you send a report on the messages that come up? The files is kind of vague. There are so many files, so much diskspace... You can dump the output of the compile to a file by doing cc prog.c output.txt or make prog output.txt Paul -- Major premise: Sixty men can do sixty times as much work as one man. Minor premise: A man can dig a posthole in sixty seconds. Conclusion: Sixty men can dig a posthole in one second. -Ambrose Bierce, The Devil's Dictionary http://nlpagan.net - Registered Linux User 174403 Linux Mandrake 8.0 - Sylpheed 0.4.99 ** http://www.care2.com - when you care **
[newbie] C compiling errors
Hi, I have a Mandrake 7.0 version of linux on my pentinum III 450 Mhz. I have included both include and lib libraries in my path. I am trying to compile a C program and it says it cannot find the files. I looked at the include and lib directories, the files are there? Do I need to set up any other environment variables? Appreciate your help. Thanks. Raj
[newbie] C++ in 21 days for linux?
Does SAMS make such a book as Learn C++ in 21 days for linux ?
Re: [newbie] C++ in 21 days for linux?
Yes http://www.amazon.com/exec/obidos/ASIN/067232072X/o/qid=992066308/sr=8-1/002-0714472-4397661 --- Jon Doe [EMAIL PROTECTED] wrote: Does SAMS make such a book as Learn C++ in 21 days for linux ? = Regards, OOzy What is the purpose of life? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
[newbie] c++ compiler question
I am trying to compile ddd. When I run the configure, I get this error: checking whether the C compiler (gcc) compiles and links a simple C program... yes checking for c++... c++ checking whether the C++ compiler (c++ /usr/bin/c++ ) works... yes checking whether the C++ compiler (c++ /usr/bin/c++ ) is a cross-compiler... yes checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking whether the C++ compiler (c++) compiles a simple program... no configure: error: You must set the environment variable CXX to a working C++ compiler. Also check the CXXFLAGS settings. See the file 'config.log' for further diagnostics. My c++ is in /usr/bin, which is in the path. But I tried exporting CXX to that and it still won't work. Any ideas? I'm running Mandrake 7.1 Barbara
Re: [newbie] -C code=
You need to type ./ before the program name! You must read the following when ls -l your_bin_file, for example: -r-xr-xr-x1 userowner group 4024 Jan 12 09:55 your_bin_file the x flags at left indicate a executable file. If this is a binary file, already compiled and linked, to execute type from the directory where it's located: ./your_bin_file and type ENTER (RETURN), if you don use ./ the system try to find your the name you type as a binary file in $PATH. if chmod +x don't work properly, use: chmod 755 your_bin_file read the flags as: 7 - permissions for the owner to read, write and execute; 5 - permissions to the group to read and execute; 5 - permissions to all to read and execute. If I understand your prpblem, it will solve the problem! Jose On Sunday 14 January 2001 14:06, you wrote: i just downloaded a c program and it said to make it executable 'chmod +x file', and when im going to run it it just says that the file doesnt exist.. helP. Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1" Content-Transfer-Encoding: quoted-printable Content-Description:
RE: [newbie] -C code=
... If this is a binary file, already compiled and linked, to execute type from the directory where it's located: ./your_bin_file and type ENTER (RETURN), if you don use ./ the system try to find your the name you type as a binary file in $PATH. ... For anyone doing any kind of binary executable or script development this is indeed a good reason for adding "." to your $PATH variable. In most environments where I've worked with Unix, "." was usually the first directory in $PATH so that you could have your own utility or program supercede one that came with the system. If you don't want the latter to happen then put the "." on the end of $PATH. Cheers, Rick
Re: [newbie] -C code=
On Monday 15 January 2001 07:46, you wrote: For anyone doing any kind of binary executable or script development this is indeed a good reason for adding "." to your $PATH variable. In most environments This is very bad advice for security reasons. You should never put '.' in your path - or if you do, at least put it at the end. The reason is basically that if some hacker gets into your system, he can throw in replacements for various standard commands. And, if he hacks into your account, he can put it in your default directory - he might not be able to put it somewhere else because of permissions. If you're doing script development, make a private bin directory off of your $HOME, and put your stuff in there, and add $HOME/bin to the $PATH. Rick -- David E. Fox Thanks for letting me [EMAIL PROTECTED]change magnetic patterns [EMAIL PROTECTED] on your hard disk. ---
RE: [newbie] -C code=
Even better advice. Most of my experience was pre-heavy-hacking era (say 5 years ago) and was inside decent firewalls. I agree with your analysis and will take it to heart when I get Linux up on DSL here at home. Cheers and thanks, Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David E. Fox Sent: Monday, January 15, 2001 11:42 AM To: [EMAIL PROTECTED] Subject: Re: [newbie] -C code= On Monday 15 January 2001 07:46, you wrote: For anyone doing any kind of binary executable or script development this is indeed a good reason for adding "." to your $PATH variable. In most environments This is very bad advice for security reasons. You should never put '.' in your path - or if you do, at least put it at the end. The reason is basically that if some hacker gets into your system, he can throw in replacements for various standard commands. And, if he hacks into your account, he can put it in your default directory - he might not be able to put it somewhere else because of permissions. If you're doing script development, make a private bin directory off of your $HOME, and put your stuff in there, and add $HOME/bin to the $PATH. Rick -- David E. Fox Thanks for letting me [EMAIL PROTECTED]change magnetic patterns [EMAIL PROTECTED] on your hard disk. ---
[newbie] -C code=
i just downloaded a c program and it said to make it executable 'chmod +x file', and when im going to run it it just says that the file doesnt exist.. helP.
Re: [newbie] -C code=
On Sun, 14 Jan 2001, lll wrote: i just downloaded a c program and it said to make it executable 'chmod +x file', and when im going to run it it just says that the file doesnt exist.. helP. What did you download? The c-source code? Making that +x won't help. You have to compile it first: gcc programname The result is "a.out". You can keep that or make that another name: mv a.out sensible_name Then chmod +x sensible_name After that you have to ./sensible_name (note the ./ at the start) to make things run. Good luck! Paul -- Press any key to continue. Any other key to abort. http://nlpagan.net - ICQ 147208 - Registered Linux User 174403 Linux Mandrake 7.2 - Pine 4.31
Re: [newbie] -C code=
lll wrote: i just downloaded a c program and it said to make it executable 'chmod +x file', and when im going to run it it just says that the file doesnt exist.. helP. are you using the format ./program_name or typing the full path of the program. If the directory that the program is in is not in your path you need to use one of the above methods. Don S
Re: [newbie] -C code=
Did you replace the word 'file' with the actual file name? If the file is 'myprogram.c', then you should 'chmod +x myprogram.c', and you need to be working in the same directory ('cd mydir', where 'mydir' is the directory where your *.c file exists) as the file is in, or include the path to the directory if not. Dave At 11:06 AM 1/14/01 -0500, you wrote: i just downloaded a c program and it said to make it executable 'chmod +x file', and when im going to run it it just says that the file doesnt exist.. helP. 0101 1010 0111 01101100 0110 01100111 01101001 01110011 01100100 01100101 0111 01100100 01001110 0110 01101110 01100111 01101100 01101001 01110110 01100101 01100100 01101001 01100111 01101001 01110100 0111 01101100 (Go figure it out.)
[newbie] c/c++ development
anyonecan tell me where I can find c and c++ development reference? Merry Christmas! Mike
RE: [newbie] C++ resources
check out www.ibooks.com they have a book called, Thinking in C++, I think they are offering it free as a special promotion. They also have all the linux books from the LDP for free too. -Original Message- From: Roger Sherman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 5:52 PM To: [EMAIL PROTECTED] Subject: Re: [newbie] C++ resources Its not on the web (at least mine isn't, lol), but I just got Practical C++ Programming (O'Reilly), and it's pretty good... peace, Rog http://www.slammingrooves.com Registered Linux user #190719 On Tue, 19 Dec 2000, Jeremy Sudderth wrote: Hello everybody, I was wondering if you know any good C++ resources on the web. I am trying to learn now that I have gcc configured on my system at home. TIA
Re: [newbie] C++ resources
Mark Johnson wrote: check out www.ibooks.com they have a book called, Thinking in C++, I think they are offering it free as a special promotion. They also have all the linux books from the LDP for free too. Last I looked, this book was available free off the author's website too. Society Design Mailing List http://www.egroups.com/group/Society_Design For any and all aspects of designing societies, from discussion of real- world utopian ideas to fantastic fictional or roleplaying worlds. ---Revenant [[EMAIL PROTECTED]] --
[newbie] C++ resources
Hello everybody, I was wondering if you know any good C++ resources on the web. I am trying to learn now that I have gcc configured on my system at home. TIA
Re: [newbie] C++ resources
Its not on the web (at least mine isn't, lol), but I just got Practical C++ Programming (O'Reilly), and it's pretty good... peace, Rog http://www.slammingrooves.com Registered Linux user #190719 On Tue, 19 Dec 2000, Jeremy Sudderth wrote: Hello everybody, I was wondering if you know any good C++ resources on the web. I am trying to learn now that I have gcc configured on my system at home. TIA
Re: [newbie] c++ standard header missing
On Mon, 30 Oct 2000, you wrote: find / -name "iostream.h" but no return :) #I check with webmin and kpackage to confirm this and my box have this package is this enaugh? or is there any more package i'm missing? - gcc-c++-2.95.2-7mdk.i586.rpm installed - libstdc++-2.95.2-7mdk.i586.rpm installed - libstdc++-compat-2.95.2-7mdk.i586.rpm installed if anything I'm missing here? any url to download? (perhaps a good c++ header and working with 7.1 ;)) yep, look for libstdc++-devel on the second 7.1 disk. That is where all of the headers for c++ live in -- Alex (Go easy on me, I'm a COBOL programmer in real life)
[newbie] c++ standard header missing
Hi all, I have problem when compiling this prg. My Info Package : courier-0.28.tar.gz (http://www.courier-mta.org) uname -a : Linux xylonite.org 2.2.15-4mdksecure #1 SMP Wed May 10 14:16:48 CEST 2000 i686 unknown Distro : Mandrake 7.1 (Essential Pack 7.1) #When I'm running 'make' command it's say ### fay@xylonite courier-0.28]$ make Making all in afx make[1]: Entering directory `/home/fay/courier-0.28/afx' c++ -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_REGCOMP=1 -I. -I. -Wall -g -O2 -c string.C c++ -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_REGCOMP=1 -I. -I. -Wall -g -O2 -c string2.C c++ -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_REGCOMP=1 -I. -I. -Wall -g -O2 -c exception.C c++ -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_REGCOMP=1 -I. -I. -Wall -g -O2 -c afxregex.C In file included from In file included from string.C:6: afx.h:17: iostream.h: No such file or directory string.C:9: iostream.h: No such file or directory string2.C:6: afx.h:17: iostream.h: No such file or directory string2.C:8: iostream.h: No such file or directory make[1]: *** [string2.o] Error 1 make[1]: *** Waiting for unfinished jobs make[1]: *** [string.o] Error 1 In file included from exception.C:14: afx.h:17: iostream.h: No such file or directory make[1]: *** [exception.o] Error 1 make: *** [all-recursive] Error 1 [fay@supreme courier-0.28]$ In file included from afxregex.h:17, from afxregex.C:6: afx.h:17: iostream.h: No such file or directory [fay@xylonite courier-0.28]$ ### iostream.h is part of the C++ standard header files, it looks like there is no C++ standard header in my box. To confirm this use the following command: find / -name "iostream.h" but no return :) #I check with webmin and kpackage to confirm this and my box have this package is this enaugh? or is there any more package i'm missing? - gcc-c++-2.95.2-7mdk.i586.rpm installed - libstdc++-2.95.2-7mdk.i586.rpm installed - libstdc++-compat-2.95.2-7mdk.i586.rpm installed if anything I'm missing here? any url to download? (perhaps a good c++ header and working with 7.1 ;)) thanks, regards, fay
[newbie] C++ program?
Hello all, I have aninteresting question for everyone. I am in the process of totally converting my systems over to Linux because i'm tired of winbloze. However, In order for me to do this, I need to find an ansi-standard compliant C++ compiler that runs in Mandrake. Does such a program exist? Free is even better! :) Any help is greatly appreciated! - Joe :) - Original Message - From: "Joe Brault" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 05, 2000 10:44 AM Subject: Re: [newbie] 7.1 Install CD?? Charles, Thanks for the instructions! They were very easy to follow and helped a lot! Although for some reason it kept failing on the simulation of the burn process... any thoughts? - Joe :) - Original Message - From: "Charles A Edwards" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 05, 2000 8:03 AM Subject: Re: [newbie] 7.1 Install CD?? - Original Message - From: "Joe Brault" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 04, 2000 10:46 PM Subject: Re: [newbie] 7.1 Install CD?? Charles, I downloaded the image, and will be using NERO Burning Rom to burn my CD. This program came with my CDRW drive (Creative Labs). [snip] Did you download the ISO image? What program will you be using to burn the cd? Charles Since the install ISO is 649MB you should not try to burn it on a 650MB blank. Pony and several others make 700MB CD-Rs but be sure you do not pick up an audio only CD-R. NERO trys to make it hard to record from an ISO. There is no info in the manual or on their web site. Here is what you need to do: 1) Find the folder to which you downloaded the ISOs, right click on each and choose rename; mandrake 71-ext.iso change to mandrake 71-ext.nrg mandrake 71-inst.iso change to mandrake 71-inst.nrg 2) Launch NERO 3) Close the New Compilation window so that you have only the main window open. 4) From the toolbar along the top of the window select CD Recorder/ Choose Recorder and be sure your CD-RW is picked as the recording device. 5) From the File menu select Burn image. In the pop-up window navigate to the folder with the .nrg file and click on one and click OK 6) A Foreign Image File box will open. Click OK. 7)A Foreign Image Setting box will open. Change it were necessary to show the following values: Data mode 1; Block Size 2048: and the Swapped option should be checked.Click OK. 8) A Write CD window will open. If you have not done much burning and are not familiar with your CD-RWs abilities check all 4 boxes, test speed, simulate, burn, and finalize. By doing this NERO will auto select the burn speed.Finally in the top right of the window click the Write button and the process of burning the CD will begin. When the 1st CD is finished follow steps 5-8 to create the 2nd. Hope I have not made it seem too complicated. If you have any problems or other questions you can reply to the list or, contact me direct if you choose. Charles
RE: [newbie] C++ program?
g++ for the compiler, KDevelop for IDE (www.kdevelop.org), you've got it all there if you do a Developer type installation. BTW: every bit of it is all free... -Original Message- From: Joe Brault [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 05, 2000 11:40 AM To: [EMAIL PROTECTED] Subject: [newbie] C++ program? Hello all, I have aninteresting question for everyone. I am in the process of totally converting my systems over to Linux because i'm tired of winbloze. However, In order for me to do this, I need to find an ansi-standard compliant C++ compiler that runs in Mandrake. Does such a program exist? Free is even better! :) Any help is greatly appreciated! - Joe :) - Original Message - From: "Joe Brault" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 05, 2000 10:44 AM Subject: Re: [newbie] 7.1 Install CD?? Charles, Thanks for the instructions! They were very easy to follow and helped a lot! Although for some reason it kept failing on the simulation of the burn process... any thoughts? - Joe :) - Original Message - From: "Charles A Edwards" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 05, 2000 8:03 AM Subject: Re: [newbie] 7.1 Install CD?? - Original Message - From: "Joe Brault" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 04, 2000 10:46 PM Subject: Re: [newbie] 7.1 Install CD?? Charles, I downloaded the image, and will be using NERO Burning Rom to burn my CD. This program came with my CDRW drive (Creative Labs). [snip] Did you download the ISO image? What program will you be using to burn the cd? Charles Since the install ISO is 649MB you should not try to burn it on a 650MB blank. Pony and several others make 700MB CD-Rs but be sure you do not pick up an audio only CD-R. NERO trys to make it hard to record from an ISO. There is no info in the manual or on their web site. Here is what you need to do: 1) Find the folder to which you downloaded the ISOs, right click on each and choose rename; mandrake 71-ext.iso change to mandrake 71-ext.nrg mandrake 71-inst.iso change to mandrake 71-inst.nrg 2) Launch NERO 3) Close the New Compilation window so that you have only the main window open. 4) From the toolbar along the top of the window select CD Recorder/ Choose Recorder and be sure your CD-RW is picked as the recording device. 5) From the File menu select Burn image. In the pop-up window navigate to the folder with the .nrg file and click on one and click OK 6) A Foreign Image File box will open. Click OK. 7)A Foreign Image Setting box will open. Change it were necessary to show the following values: Data mode 1; Block Size 2048: and the Swapped option should be checked.Click OK. 8) A Write CD window will open. If you have not done much burning and are not familiar with your CD-RWs abilities check all 4 boxes, test speed, simulate, burn, and finalize. By doing this NERO will auto select the burn speed.Finally in the top right of the window click the Write button and the process of burning the CD will begin. When the 1st CD is finished follow steps 5-8 to create the 2nd. Hope I have not made it seem too complicated. If you have any problems or other questions you can reply to the list or, contact me direct if you choose. Charles
RE: [newbie] C++ program?
Joe, LM has a c/c++ compiler that you can install during the installation process (or after if you choose) check under the development information during install =-Original Message- =From: Joe Brault [mailto:[EMAIL PROTECTED]] =Sent: Thursday, October 05, 2000 12:40 PM =To: [EMAIL PROTECTED] =Subject: [newbie] C++ program? = = =Hello all, I have aninteresting question for everyone. I am =in the process =of totally converting my systems over to Linux because i'm tired of =winbloze. However, In order for me to do this, I need to find an =ansi-standard compliant C++ compiler that runs in Mandrake. =Does such a =program exist? Free is even better! :) Any help is greatly =appreciated! = = - Joe :) =- Original Message - =From: "Joe Brault" [EMAIL PROTECTED] =To: [EMAIL PROTECTED] =Sent: Thursday, October 05, 2000 10:44 AM =Subject: Re: [newbie] 7.1 Install CD?? = = = Charles, = = Thanks for the instructions! They were very easy to =follow and helped =a = lot! Although for some reason it kept failing on the =simulation of the =burn = process... any thoughts? = = - Joe :) = - Original Message - = From: "Charles A Edwards" [EMAIL PROTECTED] = To: [EMAIL PROTECTED] = Sent: Thursday, October 05, 2000 8:03 AM = Subject: Re: [newbie] 7.1 Install CD?? = = = = - Original Message - = From: "Joe Brault" [EMAIL PROTECTED] = To: [EMAIL PROTECTED] = Sent: Wednesday, October 04, 2000 10:46 PM = Subject: Re: [newbie] 7.1 Install CD?? = = = Charles, = = I downloaded the image, and will be using NERO =Burning Rom to burn = my = CD. This program came with my CDRW drive (Creative Labs). = = [snip] =Did you download the ISO image? =What program will you be using to burn the cd? = = Charles = = = Since the install ISO is 649MB you should not try to =burn it on a =650MB = blank. Pony and several others make 700MB CD-Rs but be =sure you do not = pick = up an audio only CD-R. = NERO trys to make it hard to record from an ISO. There =is no info in = the = manual or on their web site. Here is what you need to do: = 1) Find the folder to which you downloaded the ISOs, =right click on each = and = choose rename; = mandrake 71-ext.iso change to mandrake 71-ext.nrg = mandrake 71-inst.iso change to mandrake 71-inst.nrg = 2) Launch NERO = 3) Close the New Compilation window so that you have only the main =window = open. = 4) From the toolbar along the top of the window select CD =Recorder/ =Choose = Recorder and be sure your CD-RW is picked = as the recording device. = 5) From the File menu select Burn image. In the pop-up =window navigate =to = the folder with the .nrg file and click on one and click OK = 6) A Foreign Image File box will open. Click OK. = 7)A Foreign Image Setting box will open. Change it were =necessary to =show = the following values: Data mode 1; Block Size 2048: and =the Swapped =option = should be checked.Click OK. = 8) A Write CD window will open. If you have not done much =burning and =are = not familiar with your CD-RWs abilities check all 4 =boxes, test speed, = simulate, burn, and finalize. By doing this NERO will =auto select the =burn = speed.Finally in the top right of the window click the =Write button and = the = process of burning the CD will begin. = When the 1st CD is finished follow steps 5-8 to create the 2nd. = Hope I have not made it seem too complicated. If you have any =problems = or = other questions you can reply to the list or, contact me =direct if you = choose. = = Charles = = = = = = = =
Re: [newbie] C++ program?
On Thu, 05 Oct 2000, you wrote: the c++ compiler for Mandrake is using g++ file.cxx -options file you can look up for more info if you type: man g++ Rob Hello all, I have aninteresting question for everyone. I am in the process of totally converting my systems over to Linux because i'm tired of winbloze. However, In order for me to do this, I need to find an ansi-standard compliant C++ compiler that runs in Mandrake. Does such a program exist? Free is even better! :) Any help is greatly appreciated! - Joe :) - Original Message - From: "Joe Brault" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 05, 2000 10:44 AM Subject: Re: [newbie] 7.1 Install CD?? Charles, Thanks for the instructions! They were very easy to follow and helped a lot! Although for some reason it kept failing on the simulation of the burn process... any thoughts? - Joe :) - Original Message - From: "Charles A Edwards" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 05, 2000 8:03 AM Subject: Re: [newbie] 7.1 Install CD?? - Original Message - From: "Joe Brault" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 04, 2000 10:46 PM Subject: Re: [newbie] 7.1 Install CD?? Charles, I downloaded the image, and will be using NERO Burning Rom to burn my CD. This program came with my CDRW drive (Creative Labs). [snip] Did you download the ISO image? What program will you be using to burn the cd? Charles Since the install ISO is 649MB you should not try to burn it on a 650MB blank. Pony and several others make 700MB CD-Rs but be sure you do not pick up an audio only CD-R. NERO trys to make it hard to record from an ISO. There is no info in the manual or on their web site. Here is what you need to do: 1) Find the folder to which you downloaded the ISOs, right click on each and choose rename; mandrake 71-ext.iso change to mandrake 71-ext.nrg mandrake 71-inst.iso change to mandrake 71-inst.nrg 2) Launch NERO 3) Close the New Compilation window so that you have only the main window open. 4) From the toolbar along the top of the window select CD Recorder/ Choose Recorder and be sure your CD-RW is picked as the recording device. 5) From the File menu select Burn image. In the pop-up window navigate to the folder with the .nrg file and click on one and click OK 6) A Foreign Image File box will open. Click OK. 7)A Foreign Image Setting box will open. Change it were necessary to show the following values: Data mode 1; Block Size 2048: and the Swapped option should be checked.Click OK. 8) A Write CD window will open. If you have not done much burning and are not familiar with your CD-RWs abilities check all 4 boxes, test speed, simulate, burn, and finalize. By doing this NERO will auto select the burn speed.Finally in the top right of the window click the Write button and the process of burning the CD will begin. When the 1st CD is finished follow steps 5-8 to create the 2nd. Hope I have not made it seem too complicated. If you have any problems or other questions you can reply to the list or, contact me direct if you choose. Charles
Re: [newbie] C++ program?
It was Oct 5, 2000, 11:39, when Joe Brault keyboarded: Hello all, I have aninteresting question for everyone. I am in the process of totally converting my systems over to Linux because i'm tired of winbloze. However, In order for me to do this, I need to find an ansi-standard compliant C++ compiler that runs in Mandrake. Does such a program exist? Free is even better! :) Any help is greatly appreciated! - Joe :) Hi Joe, c++ as well as gcc (plain c) are included with Mandrake. Paul -- Three things are certain: Death, taxes and lost data. Guess which has occured. http://nlpagan.net - ICQ 147208 - Registered Linux User 174403 -=PINE 4.21 on Linux Mandrake 7.1=-
RE: [newbie] C++ program?
Try the gnu one ... it's on the Linux Install CD Mark -Original Message- From: Joe Brault [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 05, 2000 9:40 AM To: [EMAIL PROTECTED] Subject: [newbie] C++ program? Hello all, I have aninteresting question for everyone. I am in the process of totally converting my systems over to Linux because i'm tired of winbloze. However, In order for me to do this, I need to find an ansi-standard compliant C++ compiler that runs in Mandrake. Does such a program exist? Free is even better! :) Any help is greatly appreciated! - Joe :) - Original Message - From: "Joe Brault" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 05, 2000 10:44 AM Subject: Re: [newbie] 7.1 Install CD?? Charles, Thanks for the instructions! They were very easy to follow and helped a lot! Although for some reason it kept failing on the simulation of the burn process... any thoughts? - Joe :) - Original Message - From: "Charles A Edwards" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 05, 2000 8:03 AM Subject: Re: [newbie] 7.1 Install CD?? - Original Message - From: "Joe Brault" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 04, 2000 10:46 PM Subject: Re: [newbie] 7.1 Install CD?? Charles, I downloaded the image, and will be using NERO Burning Rom to burn my CD. This program came with my CDRW drive (Creative Labs). [snip] Did you download the ISO image? What program will you be using to burn the cd? Charles Since the install ISO is 649MB you should not try to burn it on a 650MB blank. Pony and several others make 700MB CD-Rs but be sure you do not pick up an audio only CD-R. NERO trys to make it hard to record from an ISO. There is no info in the manual or on their web site. Here is what you need to do: 1) Find the folder to which you downloaded the ISOs, right click on each and choose rename; mandrake 71-ext.iso change to mandrake 71-ext.nrg mandrake 71-inst.iso change to mandrake 71-inst.nrg 2) Launch NERO 3) Close the New Compilation window so that you have only the main window open. 4) From the toolbar along the top of the window select CD Recorder/ Choose Recorder and be sure your CD-RW is picked as the recording device. 5) From the File menu select Burn image. In the pop-up window navigate to the folder with the .nrg file and click on one and click OK 6) A Foreign Image File box will open. Click OK. 7)A Foreign Image Setting box will open. Change it were necessary to show the following values: Data mode 1; Block Size 2048: and the Swapped option should be checked.Click OK. 8) A Write CD window will open. If you have not done much burning and are not familiar with your CD-RWs abilities check all 4 boxes, test speed, simulate, burn, and finalize. By doing this NERO will auto select the burn speed.Finally in the top right of the window click the Write button and the process of burning the CD will begin. When the 1st CD is finished follow steps 5-8 to create the 2nd. Hope I have not made it seem too complicated. If you have any problems or other questions you can reply to the list or, contact me direct if you choose. Charles
Re: [newbie] C compilers
Didn't mean to bash Iowa (it's generally an okay place for family things and growing corn, etc...), I just HAD to comment on this guy's signature! One of those dumb-things-ya-gotta-do-sometimes! I have been there for work before, so I thought I would mention my view on things. So if any Corn Huskers were offended by my message, sorry. Steve W. (and no, I haven't made my first billion dollars yet, but closer than some to doing so) - Original Message - From: "Brendan K Callahan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 26, 2000 3:18 PM Subject: Re: [newbie] C compilers Are there any graphical interfaces for the compiler? I'm used to using Borland Turbo C++ (v3.x and v4.x) for Windows. More clearly defined, I like having scrollable windows, multiple windows, the open file dialog and such. Anyone know anything? I use the compiler that comes with Mandrake which is also the same one in Redhat and the others. If it's C you're programming in invoke 'gcc', if you're doing C++ use 'g++'. Although actually either one will work for both C and C++. I've gotten some funny errors from gcc when compiling a C++ program. -- Brendan K Callahan, Grinnell, IA, US K0EES, Extra Class License http://www.mp3.com/darkmare_romeo K0EES, Extra Class License dahdidah dahdahdahdahdah dit dit dididit
Re: [newbie] C compilers
On Sun, 27 Aug 2000, Steve Weltman wrote: Didn't mean to bash Iowa (it's generally an okay place for family things and growing corn, etc...), I just HAD to comment on this guy's signature! One of those dumb-things-ya-gotta-do-sometimes! I have been there for work before, so I thought I would mention my view on things. So if any Corn Huskers were offended by my message, sorry. Steve W. (and no, I haven't made my first billion dollars yet, but closer than some to doing so) Well we weren't offended until you associated the Corn Huskers with Iowa! The great state of Nebraska is home to the Corn Huskers. All fussin' and feudin' and inbreedin' aside, we Midwesterners (especially Nebraskans) take our football seriously. They (Iowa) are on one side of the Missouri river and we are on the other side... which happens to be the winning side! ;-) TRBishop [EMAIL PROTECTED] - Original Message - From: "Brendan K Callahan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 26, 2000 3:18 PM Subject: Re: [newbie] C compilers Are there any graphical interfaces for the compiler? I'm used to using Borland Turbo C++ (v3.x and v4.x) for Windows. More clearly defined, I like having scrollable windows, multiple windows, the open file dialog and such. Anyone know anything? I use the compiler that comes with Mandrake which is also the same one in Redhat and the others. If it's C you're programming in invoke 'gcc', if you're doing C++ use 'g++'. Although actually either one will work for both C and C++. I've gotten some funny errors from gcc when compiling a C++ program. -- Brendan K Callahan, Grinnell, IA, US K0EES, Extra Class License http://www.mp3.com/darkmare_romeo K0EES, Extra Class License dahdidah dahdahdahdahdah dit dit dididit
Re: [newbie] C compilers
Are there any graphical interfaces for the compiler? I'm used to using Borland Turbo C++ (v3.x and v4.x) for Windows. More clearly defined, I like having scrollable windows, multiple windows, the open file dialog and such. Anyone know anything? I use the compiler that comes with Mandrake which is also the same one in Redhat and the others. If it's C you're programming in invoke 'gcc', if you're doing C++ use 'g++'. Although actually either one will work for both C and C++. I've gotten some funny errors from gcc when compiling a C++ program. -- Brendan K Callahan, Grinnell, IA, US K0EES, Extra Class License http://www.mp3.com/darkmare_romeo K0EES, Extra Class License dahdidah dahdahdahdahdah dit dit dididit
RE: [newbie] C compilers
Practical C++ Programming Steve Quilline O'Reilly Associates Their C and C++ books are the absolute best I've ever seen. -- Mark ** =/\= No Penguins were harmed | ICQ#27816299 ** _||_ in the making of this | ** =\/= message...| Registered Linux user #182496 On Sat, 26 Aug 2000, Michael Khachiki wrote: Hey I jus started too. I use KDevelop from xwindows. But you can use g++ or gcc. Dose any one know any good C++ books for Linux? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kathleen Dickason Sent: Saturday, August 26, 2000 9:07 AM To: [EMAIL PROTECTED] Subject: [newbie] C compilers Does anyone here use Linux to program in C? I am just learning. Which compiler do you use? Thanks, Kathleen
Re: [newbie] C compilers
I can answer that question with on word Codewarrior you'll never go back to Boreland again. :)_ -- Mark ** =/\= No Penguins were harmed | ICQ#27816299 ** _||_ in the making of this | ** =\/= message...| Registered Linux user #182496 On Sat, 26 Aug 2000, Brendan K Callahan wrote: Are there any graphical interfaces for the compiler? I'm used to using Borland Turbo C++ (v3.x and v4.x) for Windows. More clearly defined, I like having scrollable windows, multiple windows, the open file dialog and such. Anyone know anything? I use the compiler that comes with Mandrake which is also the same one in Redhat and the others. If it's C you're programming in invoke 'gcc', if you're doing C++ use 'g++'. Although actually either one will work for both C and C++. I've gotten some funny errors from gcc when compiling a C++ program.
Re: [newbie] C compilers
Thanks, I tried gcc and found I like it :) Can't help with the C++ books cos I'm learning C, but fatbrain.com has a *ton* of programming books... Michael Khachiki wrote: Hey I jus started too. I use KDevelop from xwindows. But you can use g++ or gcc. Dose any one know any good C++ books for Linux? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kathleen Dickason Sent: Saturday, August 26, 2000 9:07 AM To: [EMAIL PROTECTED] Subject: [newbie] C compilers Does anyone here use Linux to program in C? I am just learning. Which compiler do you use? Thanks, Kathleen -- Kathleen Dickason Registered Linux user #182139
Re: [newbie] C compilers
I think there is a graphical debugger called ddd but I don't know about a compiler... Brendan K Callahan wrote: Are there any graphical interfaces for the compiler? I'm used to using Borland Turbo C++ (v3.x and v4.x) for Windows. More clearly defined, I like having scrollable windows, multiple windows, the open file dialog and such. Anyone know anything? I use the compiler that comes with Mandrake which is also the same one in Redhat and the others. If it's C you're programming in invoke 'gcc', if you're doing C++ use 'g++'. Although actually either one will work for both C and C++. I've gotten some funny errors from gcc when compiling a C++ program. -- Brendan K Callahan, Grinnell, IA, US K0EES, Extra Class License http://www.mp3.com/darkmare_romeo K0EES, Extra Class License dahdidah dahdahdahdahdah dit dit dididit -- Kathleen Dickason Registered Linux user #182139
Re: [newbie] C compilers
Here they are: Sniff++ (www.takefive.com/penguin/) CodeWarrior for GNU (www.metroworks.com) C-Forge (www.codeforge.com/) Visual K (www.viskprog.org/) Code Crusader (with code medic dbg) (www.newplanetsoftware.com/jcc/) Builder Xccessory Pro Jbuilder 3.5 Foundation Cole GIDE GLG ToolKit GLUT K Develop MetaCard VDK Builder Wwxstudio TCL Developer Studio Gnome Filer C Meister AnyJ Etc..., etc... + many developers library's + debuggers + utilities Eric MC µBrendan K Callahan wrote: Are there any graphical interfaces for the compiler? I'm used to using Borland Turbo C++ (v3.x and v4.x) for Windows. More clearly defined, I like having scrollable windows, multiple windows, the open file dialog and such. Anyone know anything? I use the compiler that comes with Mandrake which is also the same one in Redhat and the others. If it's C you're programming in invoke 'gcc', if you're doing C++ use 'g++'. Although actually either one will work for both C and C++. I've gotten some funny errors from gcc when compiling a C++ program. -- Brendan K Callahan, Grinnell, IA, US K0EES, Extra Class License http://www.mp3.com/darkmare_romeo K0EES, Extra Class License dahdidah dahdahdahdahdah dit dit dididit
RE: [newbie] C compilers
Mark, What version of CodeWarrior are you using? I contacted the support people there and they said their *current* version does not run under Mandrake-Linux (they have RedHat SuSE versions). But they said they are beta testing their next version which WILL run under Mandrake-Linux 7.1. I, too, am doing an evaluation of C++ development environments for Linux, and my short list consists of: KDevelop, Moonshine (I think I'm gonna pick this one just for the NAME! ;-), C-Forge, and WipeOut. Any comments/suggestions on which of these you think is "best" would be greatly welcomed. Thanks! Lisa [EMAIL PROTECTED] -- From: Mark Weaver[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: Saturday, August 26, 2000 5:55 AM To: [EMAIL PROTECTED] Subject: Re: [newbie] C compilers I can answer that question with on word Codewarrior you'll never go back to Boreland again. :)_ -- Mark ** =/\= No Penguins were harmed | ICQ#27816299 ** _||_ in the making of this | ** =\/= message... | Registered Linux user #182496 On Sat, 26 Aug 2000, Brendan K Callahan wrote: Are there any graphical interfaces for the compiler? I'm used to using Borland Turbo C++ (v3.x and v4.x) for Windows. More clearly defined, I like having scrollable windows, multiple windows, the open file dialog and such. Anyone know anything? I use the compiler that comes with Mandrake which is also the same one in Redhat and the others. If it's C you're programming in invoke 'gcc', if you're doing C++ use 'g++'. Although actually either one will work for both C and C++. I've gotten some funny errors from gcc when compiling a C++ program.
Re: [newbie] C compilers
Kathleen Dickason wrote: I think there is a graphical debugger called ddd but I don't know about a compiler... Brendan K Callahan wrote: Are there any graphical interfaces for the compiler? I'm used to using Borland Turbo C++ (v3.x and v4.x) for Windows. More clearly defined, I like having scrollable windows, multiple windows, the open file dialog and such. Anyone know anything? I use the compiler that comes with Mandrake which is also the same one in Redhat and the others. If it's C you're programming in invoke 'gcc', if you're doing C++ use 'g++'. Although actually either one will work for both C and C++. I've gotten some funny errors from gcc when compiling a C++ program. -- Brendan K Callahan, Grinnell, IA, US K0EES, Extra Class License http://www.mp3.com/darkmare_romeo K0EES, Extra Class License dahdidah dahdahdahdahdah dit dit dididit -- Kathleen Dickason Registered Linux user #182139 There's an IDE Programming app called Codewarrior that is probably one of the best developement tools that exists for Linux. It's relatively inexpensive as far as these things go. I think around $70 dollars. -- Mark You know...if my wife were any nicer to me I'd have to buy a new suite!
Re: [newbie] C compilers
"Hanson, Lisa M" wrote: Mark, What version of CodeWarrior are you using? I contacted the support people there and they said their *current* version does not run under Mandrake-Linux (they have RedHat SuSE versions). But they said they are beta testing their next version which WILL run under Mandrake-Linux 7.1. I, too, am doing an evaluation of C++ development environments for Linux, and my short list consists of: KDevelop, Moonshine (I think I'm gonna pick this one just for the NAME! ;-), C-Forge, and WipeOut. Any comments/suggestions on which of these you think is "best" would be greatly welcomed. Thanks! Lisa [EMAIL PROTECTED] -- From: Mark Weaver[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: Saturday, August 26, 2000 5:55 AM To: [EMAIL PROTECTED] Subject: Re: [newbie] C compilers I can answer that question with on word Codewarrior you'll never go back to Boreland again. :)_ -- Mark ** =/\= No Penguins were harmed | ICQ#27816299 ** _||_ in the making of this | ** =\/= message... | Registered Linux user #182496 On Sat, 26 Aug 2000, Brendan K Callahan wrote: Are there any graphical interfaces for the compiler? I'm used to using Borland Turbo C++ (v3.x and v4.x) for Windows. More clearly defined, I like having scrollable windows, multiple windows, the open file dialog and such. Anyone know anything? I use the compiler that comes with Mandrake which is also the same one in Redhat and the others. If it's C you're programming in invoke 'gcc', if you're doing C++ use 'g++'. Although actually either one will work for both C and C++. I've gotten some funny errors from gcc when compiling a C++ program. I haven't bought my version of Codewarrior yet. I've seen it though and it's nice! At the moment I'm using what comes with linux, and sometimes I boot windows and use my Boreland IDE. I had started leaning C++ a while back, but then I got REAL busy with school and didn't have the time. Now that all my computer classes are over and I've got two semesters left I have more time to get back to C++. -- Mark You know...if my wife were any nicer to me I'd have to buy a new suite!
Re: [newbie] C compilers
Thanks, I tried gcc and found I like it :) Can't help with the C++ books cos I'm learning C, but fatbrain.com has a *ton* of programming books... Michael Khachiki wrote: Hey I jus started too. I use KDevelop from xwindows. But you can use g++ or gcc. Dose any one know any good C++ books for Linux? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kathleen Dickason Sent: Saturday, August 26, 2000 9:07 AM To: [EMAIL PROTECTED] Subject: [newbie] C compilers Does anyone here use Linux to program in C? I am just learning. Which compiler do you use? Thanks, Kathleen -- Kathleen Dickason Registered Linux user #182139 -- Kathleen Dickason Registered Linux user #182139
Re: [newbie] C compilers
Thank you - I tried gcc and found I like it a lot. I don't care as much about fancy as about functional, so I am happily set up with vim and gcc now. :) Have you tried lcc? I heard it's similar to gcc but not identical and I wondered what the difference was. I've written your book title down, to go with kernighan and ritchie's _the c programming language_ when i am a bit farther along! Pete Clapham wrote: Kathleen -- I use gcc to program in C. It works fine, and it's installed automatically with Mandrake if you install the "developer" mode (when installing do customized, then developer). It's not as fancy as, say, Borland on Windows, but it works well. If you want a book that will actually let you learn C, I would recommend the book by Donald (I think) Kochan (the last name is correct). If memory serves, the title is Programming in C (creative title, here), second edition. It's paperback, green, with a diamond on the front cover. On Fri, 25 Aug 2000 18:06:52 -0500, Kathleen Dickason wrote: Does anyone here use Linux to program in C? I am just learning. Which compiler do you use? Thanks, Kathleen Pete Clapham Department of Biological, Geological, and Environmental Sciences Cleveland State University Cleveland, Ohio, 44115 Voice: [216] 687-4820 Fax: [216] 523-7200 [EMAIL PROTECTED] -- Kathleen Dickason Registered Linux user #18213 -- Kathleen Dickason Registered Linux user #182139
Re: [newbie] C compilers
Thanks! Gcc is seeming to work well for me for C. Its error messages if I don't get a clean compile are easy for me to understand...I type gcc -Wall -ggdb hello.c -o hello This is FUN. Hello, World! ;) (apologies for lame newbie joke) Mark Weaver wrote: Hi Kathleen, I use the compiler that comes with Mandrake which is also the same one in Redhat and the others. If it's C you're programming in invoke 'gcc', if you're doing C++ use 'g++'. Although actually either one will work for both C and C++. I've gotten some funny errors from gcc when compiling a C++ program. the command line to invoke the compiler looks like this: source code file name: hello.cc binary name after compile: hello command line syntax:g++ -g -Wall -ohello hello.cc ENTER if your program is coded correctly when you hit the enter key your machine will whir for a second and then come back to the command prompt. a clean compile is nothing but the command prompt. Then type the name of the binary and watch your program run. -- Mark ** =/\= No Penguins were harmed | ICQ#27816299 ** _||_ in the making of this | ** =\/= message...| Registered Linux user #182496 On Fri, 25 Aug 2000, Kathleen Dickason wrote: Does anyone here use Linux to program in C? I am just learning. Which compiler do you use? Thanks, Kathleen -- Kathleen Dickason Registered Linux user #182139 -- Kathleen Dickason Registered Linux user #182139
Re: [newbie] C compilers
On Sat, 26 Aug 2000, you wrote: I can answer that question with on word Codewarrior you'll never go back to Boreland again. :)_ -- Mark Thanks to everyone for the resounding referal to Codewarrier! -- Brendan K Callahan, Grinnell, IA, US K0EES, Extra Class License http://www.mp3.com/darkmare_romeo K0EES, Extra Class License dahdidah dahdahdahdahdah dit dit dididit
[newbie] C compilers
Does anyone here use Linux to program in C? I am just learning. Which compiler do you use? Thanks, Kathleen
RE: [newbie] C compilers
Hey I jus started too. I use KDevelop from xwindows. But you can use g++ or gcc. Dose any one know any good C++ books for Linux? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kathleen Dickason Sent: Saturday, August 26, 2000 9:07 AM To: [EMAIL PROTECTED] Subject: [newbie] C compilers Does anyone here use Linux to program in C? I am just learning. Which compiler do you use? Thanks, Kathleen
Re: [newbie] C compilers
Kathleen -- I use gcc to program in C. It works fine, and it's installed automatically with Mandrake if you install the "developer" mode (when installing do customized, then developer). It's not as fancy as, say, Borland on Windows, but it works well. If you want a book that will actually let you learn C, I would recommend the book by Donald (I think) Kochan (the last name is correct). If memory serves, the title is Programming in C (creative title, here), second edition. It's paperback, green, with a diamond on the front cover. On Fri, 25 Aug 2000 18:06:52 -0500, Kathleen Dickason wrote: Does anyone here use Linux to program in C? I am just learning. Which compiler do you use? Thanks, Kathleen Pete Clapham Department of Biological, Geological, and Environmental Sciences Cleveland State University Cleveland, Ohio, 44115 Voice: [216] 687-4820 Fax: [216] 523-7200 [EMAIL PROTECTED]
Re: [newbie] C compilers
Hi Kathleen, I use the compiler that comes with Mandrake which is also the same one in Redhat and the others. If it's C you're programming in invoke 'gcc', if you're doing C++ use 'g++'. Although actually either one will work for both C and C++. I've gotten some funny errors from gcc when compiling a C++ program. the command line to invoke the compiler looks like this: source code file name: hello.cc binary name after compile: hello command line syntax:g++ -g -Wall -ohello hello.cc ENTER if your program is coded correctly when you hit the enter key your machine will whir for a second and then come back to the command prompt. a clean compile is nothing but the command prompt. Then type the name of the binary and watch your program run. -- Mark ** =/\= No Penguins were harmed | ICQ#27816299 ** _||_ in the making of this | ** =\/= message...| Registered Linux user #182496 On Fri, 25 Aug 2000, Kathleen Dickason wrote: Does anyone here use Linux to program in C? I am just learning. Which compiler do you use? Thanks, Kathleen
Re: [newbie] C Libraries - Where are they?
Pete, When you did the install did you install for developer, or workstation. In order to get all the libraries that you need to compile with you have to install for developer. -- Mark I love my Linux Box... REASON # 2 ...X-windows is just a suedonym. Registered Linux user # 182496 On Wed, 12 Jul 2000, Pete Clapham wrote: Hi, all -- I reloaded Mandrake 7.0 after running satisfactorily with 6.1, and there's a problem with the C libraries. They worked fine under 6.1, but gcc can't find them with 7.0 using a Make file. Does one need to treat gcc differently with 7.0 than with 6.1? Does anybody have any ideas as to how to compile a program? Thanks. pete Pete Clapham Department of Biological, Geological, and Environmental Sciences Cleveland State University Cleveland, Ohio, 44115 Phone: [216] 687-4820 Fax: [216] 523-7175 EMail: [EMAIL PROTECTED]
Re: [newbie] C Libraries - Where are they?
Mark, I was wondering if developer had everything that the workstation had but more? Roman Mark Weaver wrote: Pete, When you did the install did you install for developer, or workstation. In order to get all the libraries that you need to compile with you have to install for developer. -- Mark I love my Linux Box... REASON # 2 ...X-windows is just a suedonym. Registered Linux user # 182496 On Wed, 12 Jul 2000, Pete Clapham wrote: Hi, all -- I reloaded Mandrake 7.0 after running satisfactorily with 6.1, and there's a problem with the C libraries. They worked fine under 6.1, but gcc can't find them with 7.0 using a Make file. Does one need to treat gcc differently with 7.0 than with 6.1? Does anybody have any ideas as to how to compile a program? Thanks. pete Pete Clapham Department of Biological, Geological, and Environmental Sciences Cleveland State University Cleveland, Ohio, 44115 Phone: [216] 687-4820 Fax: [216] 523-7175 EMail: [EMAIL PROTECTED] begin:vcard n:#179293;Roman x-mozilla-html:FALSE adr:;; version:2.1 note:Roman - Register Linux User #179293 fn:Roman - Register Linux User #179293 end:vcard
Re: [newbie] C Libraries - Where are they?
Hi Roman, O my goodness yes. TONS more than workstation. Workstation is exactly what is says it is and nothing more. That's why if you're ever planning on doing more with a machine than just desktop work it is a must to install the developer installation. I always, ever since I started with Linux in RedHat 5.2, use the custom/developer install. With RH 5.2 you had a choice of KDE WS, Gnome WS, server, developer, or custom. I always chose the custom and leaned heavily towards the developer isntalls. That way I was sure to get all the libraries that I would need to install software and eventually be able to write for Linux. My own system of course. I have no delusions of ever doing anything for the OS. I dont' have that kind of time. My day job keeps mme plently busy enough. Romanator wrote: Mark, I was wondering if developer had everything that the workstation had but more? Roman Mark Weaver wrote: Pete, When you did the install did you install for developer, or workstation. In order to get all the libraries that you need to compile with you have to install for developer. -- Mark I love my Linux Box... REASON # 2 ...X-windows is just a suedonym. Registered Linux user # 182496 On Wed, 12 Jul 2000, Pete Clapham wrote: Hi, all -- I reloaded Mandrake 7.0 after running satisfactorily with 6.1, and there's a problem with the C libraries. They worked fine under 6.1, but gcc can't find them with 7.0 using a Make file. Does one need to treat gcc differently with 7.0 than with 6.1? Does anybody have any ideas as to how to compile a program? Thanks. pete Pete Clapham Department of Biological, Geological, and Environmental Sciences Cleveland State University Cleveland, Ohio, 44115 Phone: [216] 687-4820 Fax: [216] 523-7175 EMail: [EMAIL PROTECTED] -- Mark I love my Linux box... REASON #1 -- ...it isn't Windows! Registered Linux user #1299563
Re: [newbie] C Libraries - Where are they?
I would like to thank those who answered my plea for help (below). The answer from Mark Weaver did the trick. I did have to do a new install, but it fixed not only the compile problem but also the network card problem I had had before. pete On Thu, 13 Jul 2000 07:27:23 -0400 (EDT), Mark Weaver wrote: Pete, When you did the install did you install for developer, or workstation. In order to get all the libraries that you need to compile with you have to install for developer. -- Mark I love my Linux Box... REASON # 2 ...X-windows is just a suedonym. Registered Linux user # 182496 On Wed, 12 Jul 2000, Pete Clapham wrote: Hi, all -- I reloaded Mandrake 7.0 after running satisfactorily with 6.1, and there's a problem with the C libraries. They worked fine under 6.1, but gcc can't find them with 7.0 using a Make file. Does one need to treat gcc differently with 7.0 than with 6.1? Does anybody have any ideas as to how to compile a program? Thanks. pete Pete Clapham Department of Biological, Geological, and Environmental Sciences Cleveland State University Cleveland, Ohio, 44115 Phone: [216] 687-4820 Fax: [216] 523-7175 EMail: [EMAIL PROTECTED] Pete Clapham Department of Biological, Geological, and Environmental Sciences Cleveland State University Cleveland, Ohio, 44115 Phone: [216] 687-4820 Fax: [216] 523-7175 EMail: [EMAIL PROTECTED]
[newbie] C Libraries - Where are they?
Hi, all -- I reloaded Mandrake 7.0 after running satisfactorily with 6.1, and there's a problem with the C libraries. They worked fine under 6.1, but gcc can't find them with 7.0 using a Make file. Does one need to treat gcc differently with 7.0 than with 6.1? Does anybody have any ideas as to how to compile a program? Thanks. pete Pete Clapham Department of Biological, Geological, and Environmental Sciences Cleveland State University Cleveland, Ohio, 44115 Phone: [216] 687-4820 Fax: [216] 523-7175 EMail: [EMAIL PROTECTED]
Re: [newbie] C compiler cannot create executables
Most likely is that gcc was never installed. Put in your installation disk and tell it you want to do an upgrade in expert mode. Go through and have it install the compiler. Make sure you have it install all the development libraries also. And Bob's your uncle. Dana - Original Message - From: Steven Cook [EMAIL PROTECTED] To: Linux-Mandrake [EMAIL PROTECTED] Sent: Friday, July 07, 2000 4:42 PM Subject: [newbie] C compiler cannot create executables *This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, This is my first post as I just subscribed, so I'm sorry if I'm going over old ground. I recently installed Mandrake 7.0 on a new disk in a PII 233Mhz machine. I am trying to learn how to install packages from a "tarball" but run into a problem when I try to run ./configure, it fails with the following error:- "checking whether C compiler (gcc) worksno configure: error: installation or configuration problem: C compiler cannot create executables" I looked in the configure log and found the following, however I have no idea what it's trying to tell me, am I missing a file (conftest or conftest.c)? "This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:562: checking for extra includes configure:593: checking for extra libs configure:692: checking host system type configure:713: checking target system type configure:731: checking build system type configure:790: checking for a BSD compatible install configure:847: checking for -p flag to install configure:870: checking whether build environment is sane configure:908: checking whether make sets ${MAKE} configure:954: checking for working aclocal configure:967: checking for working autoconf configure:980: checking for working automake configure:993: checking for working autoheader configure:1006: checking for working makeinfo configure:1031: checking for a BSD compatible install configure:1125: checking for a C-Compiler configure:1131: checking for gcc configure:1237: checking whether the C compiler (gcc ) works configure:1253: gcc -o conftestconftest.c 15 /usr/bin/ld: cannot open crt1.o: No such file or directory collect2: ld returned 1 exit status configure: failed program was: #line 1248 "configure" #include "confdefs.h" main(){return(0);} " I'd really appreciate any help, I've already "verified" that gcc is installed correctly, but have no idea where to go from here! Thanks Steven Cook