public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41111] New: c++ problems to compile
@ 2009-08-18 19:49 jaamfi at gmail dot com
2009-08-18 19:50 ` [Bug c++/41111] " jaamfi at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: jaamfi at gmail dot com @ 2009-08-18 19:49 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1903 bytes --]
Im running Debian Etch, gcc 4.1.2
Im studying c++, and just wrote a very basic code.
Then I tried to compile.
#gcc teste.cpp
and got this message:
gcc: error trying to exec 'cc1plus': execvp: Arquivo ou diretório não
encontrado
Ok, so I installed g++.
#aptitude install g++
and tried to compile again.
#gcc -x c++ teste.cpp -save-temps
and now i have this bigger message:
teste.o: In function `__static_initialization_and_destruction_0(int, int)':
teste.cpp:(.text+0x23): undefined reference to `std::ios_base::Init::Init()'
teste.o: In function `__tcf_0':
teste.cpp:(.text+0x6c): undefined reference to `std::ios_base::Init::~Init()'
teste.o: In function `main':
teste.cpp:(.text+0x8e): undefined reference to `std::cout'
teste.cpp:(.text+0x93): undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::operator<< <std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
teste.cpp:(.text+0x9b): undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::endl<char, std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&)'
teste.cpp:(.text+0xa3): undefined reference to `std::basic_ostream<char,
std::char_traits<char> >::operator<<(std::basic_ostream<char,
std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char>
>&))'
teste.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
And I got these 3 archs, teste.o teste.ii teste.s (from the -save-temps)
Any ideas?
--
Summary: c++ problems to compile
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jaamfi at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41111
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/41111] c++ problems to compile
2009-08-18 19:49 [Bug c++/41111] New: c++ problems to compile jaamfi at gmail dot com
@ 2009-08-18 19:50 ` jaamfi at gmail dot com
2009-08-18 19:52 ` jaamfi at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jaamfi at gmail dot com @ 2009-08-18 19:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jaamfi at gmail dot com 2009-08-18 19:50 -------
Created an attachment (id=18397)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18397&action=view)
templates
>From the compile
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41111
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/41111] c++ problems to compile
2009-08-18 19:49 [Bug c++/41111] New: c++ problems to compile jaamfi at gmail dot com
2009-08-18 19:50 ` [Bug c++/41111] " jaamfi at gmail dot com
@ 2009-08-18 19:52 ` jaamfi at gmail dot com
2009-08-18 19:52 ` jaamfi at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jaamfi at gmail dot com @ 2009-08-18 19:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jaamfi at gmail dot com 2009-08-18 19:52 -------
Created an attachment (id=18398)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18398&action=view)
from save-temps
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41111
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/41111] c++ problems to compile
2009-08-18 19:49 [Bug c++/41111] New: c++ problems to compile jaamfi at gmail dot com
2009-08-18 19:50 ` [Bug c++/41111] " jaamfi at gmail dot com
2009-08-18 19:52 ` jaamfi at gmail dot com
@ 2009-08-18 19:52 ` jaamfi at gmail dot com
2009-08-18 19:54 ` redi at gcc dot gnu dot org
2009-08-18 19:57 ` jaamfi at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: jaamfi at gmail dot com @ 2009-08-18 19:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jaamfi at gmail dot com 2009-08-18 19:52 -------
Created an attachment (id=18399)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18399&action=view)
from save-temps
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41111
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/41111] c++ problems to compile
2009-08-18 19:49 [Bug c++/41111] New: c++ problems to compile jaamfi at gmail dot com
` (2 preceding siblings ...)
2009-08-18 19:52 ` jaamfi at gmail dot com
@ 2009-08-18 19:54 ` redi at gcc dot gnu dot org
2009-08-18 19:57 ` jaamfi at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu dot org @ 2009-08-18 19:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from redi at gcc dot gnu dot org 2009-08-18 19:54 -------
use g++ not gcc
http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Invoking-G_002b_002b.html
--
redi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41111
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/41111] c++ problems to compile
2009-08-18 19:49 [Bug c++/41111] New: c++ problems to compile jaamfi at gmail dot com
` (3 preceding siblings ...)
2009-08-18 19:54 ` redi at gcc dot gnu dot org
@ 2009-08-18 19:57 ` jaamfi at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: jaamfi at gmail dot com @ 2009-08-18 19:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jaamfi at gmail dot com 2009-08-18 19:57 -------
(In reply to comment #4)
> use g++ not gcc
>
> http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Invoking-G_002b_002b.html
>
thaks jonathan!! it seemed very simple!
god bless!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41111
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-08-18 19:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-18 19:49 [Bug c++/41111] New: c++ problems to compile jaamfi at gmail dot com
2009-08-18 19:50 ` [Bug c++/41111] " jaamfi at gmail dot com
2009-08-18 19:52 ` jaamfi at gmail dot com
2009-08-18 19:52 ` jaamfi at gmail dot com
2009-08-18 19:54 ` redi at gcc dot gnu dot org
2009-08-18 19:57 ` jaamfi at gmail dot com
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).