[newbie] C Programming

2000-05-04 Thread Pete Clapham

Hi, all --

I would like to thank those of you who answered my query about taking a log in GNU c.  
The program was, indeed, as I had 
thought, correct, but the linker does not link the math libraries unless the -lm 
switch is present.  Things now work fine.

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 programming problem

2000-04-30 Thread Scotchpie

Can anyone help?
I have decided to learn C and have followed the examples in the books C in 24
hours by Tony Zhang and Running Linux by Welsh and co.
The problem is, after following the text for the first program very carefully
(I used vi ) I compiled the program with   

gcc -o hello hello.c 

as I was told to.  This worked fine and when I went to test it with the command
hello at the prompt it came back that hello is not a command.  I can not
understand my mistake as I have followed the book to the letter.
In saying that, if I start up x and open my home file, click on hello and then
close x the phrase 'hello world' (it is my first program) appears above the
prompt.  Why can it not appear when I type I hello at the prompt as the two
books mention?
  -- 
scotchpie




Re: [newbie] C programming problem

2000-04-30 Thread flupke


It will work if you run ./hello on the command line.
The ./ directory (which means 'the directory where I am') is usually not
included in the path where the shell looks for executable files.

HTH
Flupke

On Sun, 30 Apr 2000, Scotchpie wrote:

 Can anyone help?
 I have decided to learn C and have followed the examples in the books C in 24
 hours by Tony Zhang and Running Linux by Welsh and co.
 The problem is, after following the text for the first program very carefully
 (I used vi ) I compiled the program with   
 
 gcc -o hello hello.c 
 
 as I was told to.  This worked fine and when I went to test it with the command
 hello at the prompt it came back that hello is not a command.  I can not
 understand my mistake as I have followed the book to the letter.
 In saying that, if I start up x and open my home file, click on hello and then
 close x the phrase 'hello world' (it is my first program) appears above the
 prompt.  Why can it not appear when I type I hello at the prompt as the two
 books mention?
   -- 
 scotchpie
 
 




Re: [newbie] C programming environment

2000-01-04 Thread Alex V Flinsch

On Tue, 04 Jan 2000, you wrote:
 On Mon, 03 Jan 2000, Payne Stanifer wrote:
  i was wondering what you all thought was the best C/C++ programming 
  environment (compiler,linker,etc.).  I was looking for something fairly 
 I was using Code Crusader for a while, which was/is pretty neat. . .then i
 picked up a copy of CodeWarrior for RedHat.  That's also very neat.  As far as
 error reporting, CodeWarrior is a bit better about it. . .


Code Crusader is pretty nice and free, I have not tried Code Warrior. I am
currently using Code Forge and really like it, easily worth the $50 for the
home user package,  the free version works well also.




 -- 
Alex
(Go easy on me, I'm a COBOL programmer in real life)



[newbie] C programming environment

2000-01-03 Thread Payne Stanifer

i was wondering what you all thought was the best C/C++ programming 
environment (compiler,linker,etc.).  I was looking for something fairly 
user-friendly, where compiling and debugging return clear explanations of 
why they didn't work. I have tried Emacs and didn't really like it. Any and 
all suggestion welcome.
Payne
__
Get Your Private, Free Email at http://www.hotmail.com



Re: [newbie] C programming environment

2000-01-03 Thread Seung-woo Nam

Payne Stanifer wrote:

 i was wondering what you all thought was the best C/C++ programming
 environment (compiler,linker,etc.).  I was looking for something fairly
 user-friendly, where compiling and debugging return clear explanations of
 why they didn't work. I have tried Emacs and didn't really like it. Any and
 all suggestion welcome.
 Payne
 __
 Get Your Private, Free Email at http://www.hotmail.com

Getting clear explanations is a matter of passing appropriate flags to gcc or
g++ compiler. You can check HOWTOs for those options or pick up one of those
Linux programming books. I guess what you are looking for is a nice editor (
if you are only doing simple programming excersizes) or full featured
programming environment. You can download many different editors with syntax
highlighting and compiling options from the internet. I usually check
Linuxberg website first. They have good collection of Linux
software.(www.linuxberg.com)

Seung-woo Nam



[newbie] C++ programming

1999-04-11 Thread mathieu

hi beings,

could someone tell me what the best C++ development environment 
for mandrake is ?  by best, i mean something that is user-friendly,
with a GUI debugger, and lots of documentation...

doesn't have to be free, as long as it works well.  on the mandrake
web site they had a link for a package called "code forge"; has anyone
used it / liked it ?  what about "code crusader / code medic" ?  

thanks,
mathieu