public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC help
@ 2002-01-07 17:45 Jason Tang
  2002-01-07 19:41 ` Andrea 'Fyre Wyzard' Bocci
  0 siblings, 1 reply; 10+ messages in thread
From: Jason Tang @ 2002-01-07 17:45 UTC (permalink / raw)
  To: gcc-help

Hi, I am a complete green horn about using GCC.
I have no idea where to begin to even start writing programs in c++.
How do I get to the screen where I actually write the program?

Appreciate any help I get.
Thanks!

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GCC help
  2002-01-07 17:45 GCC help Jason Tang
@ 2002-01-07 19:41 ` Andrea 'Fyre Wyzard' Bocci
  0 siblings, 0 replies; 10+ messages in thread
From: Andrea 'Fyre Wyzard' Bocci @ 2002-01-07 19:41 UTC (permalink / raw)
  To: Jason Tang, gcc-help

At 09.46 08/01/2002 (GMT +0800), Jason Tang wrote:
>Hi, I am a complete green horn about using GCC.
>I have no idea where to begin to even start writing programs in c++.
>How do I get to the screen where I actually write the program?
>
>Appreciate any help I get.
>Thanks!

Well, with only GCC, you don't.
GCC is just the compiler. To write the program, you need and editor.
Wich one to use, it's mainly a matter of taste...
Supposing you're using Linux......you may try with emacs (quite big and 
complicated), VIM (at least awkward at the beginning), etc...
I prefer nedit - simple and easy to use.
The main line are:
1) You write a program using the editor.
2) You save the program (say, "test.c")
3) You compile it (ie.
gcc -o test test.c

4) It doesn't work :-)
5) You return to the editor, find what you did wrong, and try again...

If, on the other hand, you're looking for and IDE (Integrated Development 
Environment), like Microsoft Dev Studio, you might have a look at GNOME or 
KDE projects - I think KDevelop integrates with GCC quite nicely.

To learn to program in C++, you'll need a good book. Have a look at 
http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html.

I hope to have been helpfull,
fwyzard


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Gcc help
  2008-09-11 23:36 ` Mihai Donțu
@ 2008-09-12  0:45   ` Giovani Faccin
  0 siblings, 0 replies; 10+ messages in thread
From: Giovani Faccin @ 2008-09-12  0:45 UTC (permalink / raw)
  To: Mihai Donțu; +Cc: gcc-help, ivan k

When I was starting up with C++ I found that using an IDE that has
automatic makefile handling was very very useful.

Consider giving these guys a try:

Eclipse CDT:
http://www.eclipse.org/cdt/

DEVC++:
http://www.bloodshed.net/devcpp.html

They have a lot of fancy things that should help you get started.
Personally I use Eclipse.

Good luck!

Giovani

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Gcc help
  2008-09-11 23:02 ivan k
@ 2008-09-11 23:36 ` Mihai Donțu
  2008-09-12  0:45   ` Giovani Faccin
  0 siblings, 1 reply; 10+ messages in thread
From: Mihai Donțu @ 2008-09-11 23:36 UTC (permalink / raw)
  To: gcc-help; +Cc: ivan k

On Friday 12 September 2008, ivan k wrote:
> Ok i am really hoping this is the right email for thr
> question i have. I am a new programmer and am learning
> C++ right now. im still in high school and hoping to
> be a software engineer. So i downloaded what i think
> is you GCC 4.2.4 compiler. now i extracted the whole
> thing but i have know idea what do to next. I have
> written some code but have no idea how to use to
> compiler to test it out. there no exe file or nothing
> to run. I have looked over the website but i cant seem
> to find anything. might just be that im looking in the
> wrong places. A bit of help would be nice. if this is
> the wrong email to email to please lemme know which
> one i need to email.

You have, most likely, downloaded the *nix-targetted version[1]. Given the 
fact that you are looking for an *.exe, I think what you need is this[2]. 
Also, read this[3] too. :)

Enjoy!

[1] http://gcc.gnu.org
[2] http://www.mingw.org/
[3] http://www.mingw.org/node/24

-- 
Mihai Donțu

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Gcc help
@ 2008-09-11 23:02 ivan k
  2008-09-11 23:36 ` Mihai Donțu
  0 siblings, 1 reply; 10+ messages in thread
From: ivan k @ 2008-09-11 23:02 UTC (permalink / raw)
  To: gcc-help

Ok i am really hoping this is the right email for thr
question i have. I am a new programmer and am learning
C++ right now. im still in high school and hoping to
be a software engineer. So i downloaded what i think
is you GCC 4.2.4 compiler. now i extracted the whole
thing but i have know idea what do to next. I have
written some code but have no idea how to use to
compiler to test it out. there no exe file or nothing
to run. I have looked over the website but i cant seem
to find anything. might just be that im looking in the
wrong places. A bit of help would be nice. if this is
the wrong email to email to please lemme know which
one i need to email. 


      

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Gcc help
  2005-03-29 16:45 Gcc help andre
@ 2005-03-29 17:05 ` Eljay Love-Jensen
  0 siblings, 0 replies; 10+ messages in thread
From: Eljay Love-Jensen @ 2005-03-29 17:05 UTC (permalink / raw)
  To: andre, webmasters, overseers, gcc-help, gcc, gcc

Hi Andre,

Prebuilt GCC is available (downloadable) through Apple's Developer Tools.

http://developer.apple.com/tools/xcode/index.html

HTH,
--Eljay

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Gcc help
@ 2005-03-29 16:45 andre
  2005-03-29 17:05 ` Eljay Love-Jensen
  0 siblings, 1 reply; 10+ messages in thread
From: andre @ 2005-03-29 16:45 UTC (permalink / raw)
  To: webmasters, overseers, gcc-help, gcc, gcc

>>>/*please forward to appropriate people, I tried gnu@gnu.org twice and
it doesnt work.*/


I have a G3 Powerbook with OS 10.3, and I tried installing GCC on it.
I don't really know what I'm doing but I'm following instructions as much
as possible.
When trying to configure, I got

line 2332: cc: command not found
*** The command 'cc -o conftest -g  conftest.c' failed.
*** You must set the environment variable cc to a working compiler.

I read in the archives that I need to install a pre-compiled binary of GCC.
However, I do not know where to find one.  I looked everywhere and the
closest I think I got was openpkg.com but I'm just lost there.
Please please help.
I'm desperate.  I need to be able to program again!
Thanks
Andre


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GCC Help
  2003-03-14 22:00 GCC Help Gary.Abercrombie
@ 2003-03-15  0:03 ` LLeweLLyn Reese
  0 siblings, 0 replies; 10+ messages in thread
From: LLeweLLyn Reese @ 2003-03-15  0:03 UTC (permalink / raw)
  To: Gary.Abercrombie; +Cc: gcc-help

<Gary.Abercrombie@trw.com> writes:

> I have just downloaded gcc 3.3.2.  I plan to run on a PC with Windows 2000.  Where can I find
> installation instructions and guidance on setting up directories,
> etc.
[snip]

If you are using the mingw enviroment, please see www.mingw.org

If you are using the cygwin enviroment, see www.cygwin.org


^ permalink raw reply	[flat|nested] 10+ messages in thread

* GCC Help
@ 2003-03-14 22:00 Gary.Abercrombie
  2003-03-15  0:03 ` LLeweLLyn Reese
  0 siblings, 1 reply; 10+ messages in thread
From: Gary.Abercrombie @ 2003-03-14 22:00 UTC (permalink / raw)
  To: gcc-help


[-- Attachment #1.1: Type: text/plain, Size: 292 bytes --]

I have just downloaded gcc 3.3.2.  I plan to run on a PC with Windows
2000.  Where can I find installation instructions and guidance on
setting up directories, etc.

Gary<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" />

(256) 830-3302

(256) 658-5323 (cell)

 

 

[-- Attachment #1.2: Type: text/html, Size: 1156 bytes --]

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 4348 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* gcc help
@ 2002-03-16 17:44 Fred Butler
  0 siblings, 0 replies; 10+ messages in thread
From: Fred Butler @ 2002-03-16 17:44 UTC (permalink / raw)
  To: gcc-help

Hi,

I am running Solaris 8 and I hace gcc-3.0.3 and binutils-2.11.2 installed.
I am trying to compile a simple program:

#include<iostream.h>
main()
{
int a,b,c;
cout << "Enter two integers:\n";
cin >> a,b;
c = a + b;
cout << "This is the answer to the two numbers: " << c << '\n';
return 0;
}

When I do so I get the following list of errors. I am not sure where to go
from
Here. Can someone lend me a hand?

Regards,
Fred Butler

/var/tmp/cceOlpTG.o: In function `main':
/var/tmp/cceOlpTG.o(.text+0x1ac): undefined reference to `std::cout'
/var/tmp/cceOlpTG.o(.text+0x1b0): undefined reference to `std::cout'
/var/tmp/cceOlpTG.o(.text+0x1c4): undefined reference to `std::cin'
/var/tmp/cceOlpTG.o(.text+0x1c8): undefined reference to `std::cin'
/var/tmp/cceOlpTG.o(.text+0x1e8): undefined reference to `std::cout'
/var/tmp/cceOlpTG.o(.text+0x1ec): undefined reference to `std::cout'
/var/tmp/cceOlpTG.o: In function
`__static_initialization_and_destruction_0(int,
 int)':
/var/tmp/cceOlpTG.o(.text+0x260): undefined reference to
`std::ios_base::Init::I
nit()'
/var/tmp/cceOlpTG.o(.text+0x31c): undefined reference to
`std::ios_base::Init::~
Init()'
/var/tmp/cceOlpTG.o: In function `std::basic_ostream<char,
std::char_traits<char
> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char,
std::cha
r_traits<char> >&, char const*)':
/var/tmp/cceOlpTG.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEERSt13basic_ost
ream
IcT_ES5_PKc+0x154): undefined reference to `__cxa_begin_catch'
/var/tmp/cceOlpTG.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEERSt13basic_ost
ream
IcT_ES5_PKc+0x1c0): undefined reference to `__cxa_rethrow'
/var/tmp/cceOlpTG.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEERSt13basic_ost
ream
IcT_ES5_PKc+0x1d0): undefined reference to `__cxa_end_catch'
@
/var/tmp/cceOlpTG.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEERSt13basic_ost
ream
IcT_ES5_PKc+0x1c0): undefined reference to `__cxa_rethrow'
/var/tmp/cceOlpTG.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEERSt13basic_ost
ream
IcT_ES5_PKc+0x1d0): undefined reference to `__cxa_end_catch'
/var/tmp/cceOlpTG.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEERSt13basic_ost
ream
IcT_ES5_PKc+0x1e4): undefined reference to `__cxa_end_catch'
/var/tmp/cceOlpTG.o: In function `std::istream::operator>>(int&)':
/var/tmp/cceOlpTG.o(.gnu.linkonce.t._ZNSirsERi+0x160): undefined reference
to `_
_cxa_begin_catch'
/var/tmp/cceOlpTG.o(.gnu.linkonce.t._ZNSirsERi+0x1cc): undefined reference
to `_
_cxa_rethrow'
/var/tmp/cceOlpTG.o(.gnu.linkonce.t._ZNSirsERi+0x1dc): undefined reference
to `_
_cxa_end_catch'
/var/tmp/cceOlpTG.o(.gnu.linkonce.t._ZNSirsERi+0x1f4): undefined reference
to `_
_cxa_end_catch'
/var/tmp/cceOlpTG.o: In function `std::basic_ostream<char,
std::char_traits<char
> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char,
std::cha
r_traits<char> >&, char)':
/var/tmp/cceOlpTG.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEERSt13basic_ost
ream
IcT_ES5_c+0x158): undefined reference to `__cxa_begin_catch'
/var/tmp/cceOlpTG.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEERSt13basic_ost
ream
IcT_ES5_c+0x1c4): undefined reference to `__cxa_rethrow'
@


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-09-12  0:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-07 17:45 GCC help Jason Tang
2002-01-07 19:41 ` Andrea 'Fyre Wyzard' Bocci
2002-03-16 17:44 gcc help Fred Butler
2003-03-14 22:00 GCC Help Gary.Abercrombie
2003-03-15  0:03 ` LLeweLLyn Reese
2005-03-29 16:45 Gcc help andre
2005-03-29 17:05 ` Eljay Love-Jensen
2008-09-11 23:02 ivan k
2008-09-11 23:36 ` Mihai Donțu
2008-09-12  0:45   ` Giovani Faccin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).