5 msgNo warning on unused variable
7 msgAccessing the vector elements
2 msgRegarding stack pointer
4 msgAltivec and GCC
4 msgProblem building gcc 4.1.1 (fortran) in MinGW
1 msgStrange cast problem
3 msggcc and binutils interdependency
2 msgdouble to int64 loses 1 problem
1 msggcc binaries for windows available at winports.org
1 msgABI problem: building libgcc_s for n64 MIPS glibc.
1 msgcompilation failure on sco

-x option for gcc
\ Anitha Boyapati (20 Oct 2006)
. \ Brian Dessent (20 Oct 2006)
. . \ Anitha Boyapati (20 Oct 2006)
. . \ Anitha Boyapati (20 Oct 2006)
. . . \ John Love-Jensen (20 Oct 2006)
. . . . \ Anitha Boyapati (23 Oct 2006)
. \ Anitha Boyapati (20 Oct 2006)
. \ Andrew Haley (20 Oct 2006)
. \ Kaz Kylheku (20 Oct 2006)

1 msggcc 4.1.1 include order
6 msgHandling pre-increment and post-increment in GCC
1 msgGNAT: Problems with Coverage metrics/instrument...
2 msgcoding rules for template classes
1 msgm32 option and libgcc.a
1 msgHow to find code in the gcc source tree
4 msggcc_assert()!
2 msgGimple to RTL conversion!
Subject:-x option for gcc
Group:Gcc-help
From:Anitha Boyapati
Date:20 Oct 2006



Hi,

[I am literally a novice.Kindly bear with me]

I wrote a c++ program (test.cc) which runs well with g++.
Now I tried to compile with with gcc now :

gcc -x c++ test.cc

Now the compiler shouts at me saying there are some undefined references.
(The list is truly long compared to the source program).

------------------------------------------------------------------
For instance :

[root@linux3 root]# gcc -x c++ test.cc
/tmp/ccjD2gLW.o(.text+0xc8): In function `main':
: undefined reference to `std::cout'
/tmp/ccjD2gLW.o(.text+0xcd): In function `main':
: 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*)'

--------------------------------------------------------------------


Surely I am missing something.Can somebody help me as a start?

(my version is gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20))

Thanks in advance.

--
Regards,
Anitha B,




© 2004-2008 readlist.com