Re: [newbie] GCC...where are you???

2000-05-06 Thread James McLaughlin

As long as its a Hard Drive ...I dont think there is a problem :)

[EMAIL PROTECTED] wrote:
 
 
  Went through last night and reinstalled Linux using different
  hard drive  set just to see if it would clear up the gcc problem.
 
 Does anybody know if MDK 7.0 supports Seagate hard drives?
 
 Thanks,
 BG




Re: [newbie] GCC...where are you???

2000-05-05 Thread Anthony Huereca

You have to specifiy what files you want to compile. So the correct usage would
be something like "gcc -o executable_name source_code_name.c" Or for your
Hello World, "gcc -o helloworld helloworld.c". See "man gcc" for more info on
all the options.


 
 when i type gcc in a terminal window i get gcc.colorgcc: No input files
 
 I would like to be able to use the Gnu C++ compiler for a course in c programming
 
  and don't know how to get the darn thing to cooperate to where i can even do a 
hello world!
 
 --
 GIF87a¾


-- 
Anthony Huereca
http://m3000.1wh.com
Computers are not intelligent. They only think they are. 




Re: [newbie] GCC...where are you???

2000-05-05 Thread Hopper



gcc, the C compiler, and g++, the c++ compiler 
needs to be told which file you'd like to compile. 

If I've written a program and called it "dirtydeeds.c" or 
"dirtydeeds.cpp", when I want to compile it, I'd type:

gcc dirtydeeds.c

OR

g++ dirtydeeds.cpp

This will generate a file called a.out in the directory where 
my source file was located. Then just type:

a.out

to run the program.

If you're like me, you'll get a crap load of errors. Vi has a 
nice feature to show you the line number, which makes finding the offending line 
easy.

Regards,
Nathan

  - Original Message - 
  From: 
  Michael 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, May 04, 2000 5:38 
AM
  Subject: Re: [newbie] GCC...where are 
  you???
  when i type gcc in a terminal window i get gcc.colorgcc: No input filesI would like to be able to use the Gnu C++ compiler for a course in c programmingand don't know how to get the darn thing to cooperate to where i can even do a hello world!--
GIF87a¾ 


Re: [newbie] GCC...where are you???

2000-05-05 Thread Mike Tracy Holt




  I'm doing some learning myself, and someone 
  directed me to 'man gcc' and 'man g++'; that helped me a lot.
  For a 'hello world' c++ program, save the file as 
  helloworld.cpp then run 'g++ -o helloworld helloworld.cpp' (the first 
  helloworld being the executable file that you want to create, the second file 
  being the one that you are compiling).
  
  Mikewhen i type gcc in a terminal window i get gcc.colorgcc: No input filesI would like to be able to use the Gnu C++ compiler for a course in c programmingand don't know how to get the darn thing to cooperate to where i can even do a hello world!--
GIF87a¾ 


Re: [newbie] GCC...where are you???

2000-05-05 Thread Paul

On Thu, 4 May 2000, Michael wrote:

when i type gcc in a terminal window i get gcc.colorgcc: No input files

I would like to be able to use the Gnu C++ compiler for a course in c programming

 and don't know how to get the darn thing to cooperate to where i can even do a hello 
world!

It might help to type the name of a source program after the compiler
instruction.

Paul

)0(---)0(

Nothing is impossible for the person who
doesn't have to do it himself.

)0([[EMAIL PROTECTED]]-)0(
http://nlpagan.net - ICQ 147208
Registered Linux User 174403




RE: [newbie] GCC...where are you???

2000-05-05 Thread Bill . Gardner

 
 Went through last night and reinstalled Linux using different 
 hard drive  set just to see if it would clear up the gcc problem. 

Does anybody know if MDK 7.0 supports Seagate hard drives?

Thanks,
BG




Re: [newbie] GCC...where are you???

2000-05-05 Thread Steve Philp

David Ramsey wrote:
 
 [snip]
 pretty much select any package you want. And then it seems that it will
 make all the required entries in the environment and required symbolic
 links. Otherwise, if you just install the RPM file, it does not.

Please understand that the only thing the installer does is use RPM to
install a list of packages.  Just like you'd do from the command line. 
The same things happen in either case.  Symbolic link and environment
creation gets done by post-install scripts within the RPM package that
would run the same at install time as they do at the command line.

My guess is that you were missing other packages and took the "voodoo
problem resolution" method popularized by Windows and reinstalled.  If
you expect to get much further than the three-days-at-a-time Linux
usage, you're going to have to take a bit more time in researching and
resolving the problem.

Just as an example of the "voodoo problem resolution" method:  I work in
the IS department with one other person.  Part of our job entails
monitoring a SQLBase SQL server for crashed and hung processes.  We got
a call one afternoon that the server was hung.  I opened the console
tool, found the offending process, and killed it.  My partner, who was
in the bathroom at the time, came out and declared with a straight face
that flushing the urinal must have cleared it up.  THAT is what voodoo
problem resolution is.  No effort to understand the problem or
resolution, just declaring that "something" must have fixed it.  

-- 
Steve Philp, MCSE/MCP+I
Network Administrator
Advance Packaging Corporation
[EMAIL PROTECTED]




Re: [newbie] GCC...where are you???

2000-05-05 Thread Alan Shoemaker

BillMDK 7.0 is operating from my Seagate 9.1 gig scsi
drive right now.

Alan


[EMAIL PROTECTED] wrote:
 
 
  Went through last night and reinstalled Linux using different
  hard drive  set just to see if it would clear up the gcc problem.
 
 Does anybody know if MDK 7.0 supports Seagate hard drives?
 
 Thanks,
 BG




RE: [newbie] GCC...where are you???

2000-05-03 Thread David Ramsey

Well, actually the gcc was installed before. As for query it, not sure 
specifically what you mean. I went and check the RPM database and it showed 
as installed. I could go to the console and type the gcc command and it 
would come up and will of the options. I believe the problem is in the 
environment settings. I believe when I did not select the "Developer" 
option on installation, the environment variables was not setup correctly 
for it to make executables. But I pulled a list of environment and it was 
only 8 pages long. Nothing that specifically pointed to c or c++ compiler 
options.

I am like you. I have done allot of work to tailor the installation, and 
re-installing would be a pain. Actually got SAMBA to function fully and 
work with the domain controller, and integrated with the NT login script. 
Don't want to have to start from scratch.

Dave

-Original Message-
From:   James McLaughlin [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, May 03, 2000 4:53 PM
To: [EMAIL PROTECTED]
Subject:[newbie] GCC...where are you???

I am going to grab all of the files that are dependant of the gcc rpm and 
do
an install today.  HOPEFULLY this will work, and I will not have to go
through the whole messy upgrade process.  I would not have so much trouble
with this if I would have known sooner, but we already rebuilt the server
and got all of our programs running on it.  It would be a GREAT deal of
trouble to reinstall the server from scratch...way too much extra work 
todo.
I will try and keep the comm lines open here, and let some of you know how
this goes, or if I find another way to successfully install gcc.

Question for ya Dave:  After you installed the gcc rpm did you query it to
see if it really installed or not?  I would like to know if it comes back 
as
installed or still "missing".

Let me know what you find out..


Frustrated tech still..

-Original Message-
From: David Ramsey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 03, 2000 4:05 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [newbie] GCC is missingg


A. That might explain my problem! I have been trying to compile Mat
Trace Route. When I do so, the configure script checks for the compiler
GCC, and comes back and says it can't make executable file. I even went to
the installation CDROM and reinstalled all the GCC RPM files, and get the
same error. Suspect doing it this way does not set the right environment.
Any idea how to get around this without re-installing from scratch?

Dave

-Original Message-
From:   Monte Milanuk [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, May 03, 2000 6:01 AM
To: [EMAIL PROTECTED]
Subject:Re: [newbie] GCC is missingg

Welcome to one of the 'quirks' of Mandrake 7.0 ( I presume that is what
flavor you have).  If I recall, if you don't select 'Custom', and
'Development' during install, or otherwise explicitly specify to install
the compiler, you don't get it.  If you are downloading an *.rpm file,
you should be able to install that no problem, assuming you have all the
dependencies (required files/libraries,etc.) satisfied.

HTH

Monte

James McLaughlin wrote:

 I am wondering why every time I attempt to compile something I continue
to
 get errrors about my gcc or cc is missing.  I am guessing this is my C
 compilerI don't get itwhere the hell is it?  IF I do a locate I
come
 up with zilch!  Nothing is out there...help..

 I am downloading gcc but I wonder if I can even install that without a
 compiler. :(

 Horribly frustrated tech..

__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com