C++ vector problem

Theo Markettos atm26 at cam.ac.uk
Mon Feb 18 10:46:46 PST 2002

I'm running the attached code under 2.95.4 release 1.  Under Linux-i386
(Debian testing gcc 2.95.4 (prerelease)) the same command line compiles
fine, but under RISC OS it moans about being unable to find iostream

*g++ -o region -Wall -O cc.region -v
Using builtin specs.
gcc version 2.95.4 20010319 (prerelease) [gccsdk 20010912]
 gccpkg:bin/arm-riscos-aof/2_95_4/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Darm -Driscos -D__arm__ -D__riscos__ -D__arm -D__riscos -Asystem(riscos) -Acpu(arm) -Amachine(acorn) -D__EXCEPTIONS -D__CHAR_UNSIGNED__ -D__OPTIMIZE__ -Wall -D__ARM_ARCH_2__ -D__APCS_26__ -D__JMP_BUF_SIZE=24 -icrossdirafter /unixlib region.cc /tmp/ccMd52hb.ii
gccpkg:bin.arm-riscos-aof.2_95_4.cpp: GNU CPP version 2.95.4 20010319 (prerelease) [gccsdk 20010912] (ARM/RISC OS with AOF)
gccpkg:bin.arm-riscos-aof.2_95_4.cpp: ignoring nonexistent directory `gccpkg:local/include'
gccpkg:bin.arm-riscos-aof.2_95_4.cpp: ignoring nonexistent directory `gccpkg:sys/include'
#include "..." search starts here:
#include <...> search starts here:
End of search list.
 gccpkg:bin/arm-riscos-aof/2_95_4/cc1plus /tmp/ccMd52hb.ii -quiet -dumpbase region.cc -O -Wall -version -o /tmp/ccrh0Vpc.s
GNU C++ version 2.95.4 20010319 (prerelease) [gccsdk 20010912] (arm-riscos-aof) compiled by GNU C version 2.95.4 20010319 (prerelease) [gccsdk 20010912].
 gccpkg:bin/arm-riscos-aof/2_95_4/as -o /tmp/ccklVOxd.o /tmp/ccrh0Vpc.s
 gccpkg:bin/arm-riscos-aof/2_95_4/ld -o region -Lgccpkg:bin/arm-riscos-aof/2_95_4/apcs26/unixlib -Lgccpkg:bin/arm-riscos-aof/2_95_4 /tmp/ccklVOxd.o -lstdc++ -lm -lgcc -lunixlib -lgcc
Error: The following symbols could not be found:
    'endl(ostream &) ' referenced in 'ADFS::Iapetus.$.!BOOT.Resources.!Scrap.ScrapDirs.IDa8ae6801.o.ccklVOxd'
    'cerr' referenced in 'ADFS::Iapetus.$.!BOOT.Resources.!Scrap.ScrapDirs.IDa8ae6801.o.ccklVOxd'
    'ostream::operator<<(char const *)' referenced in 'ADFS::Iapetus.$.!BOOT.Resources.!Scrap.ScrapDirs.IDa8ae6801.o.ccklVOxd'
Drlink: Link failed with 1 error
ld fatal error: program gccpkg:bin/drlink returned exit status 3072:
g++: Fatal compiler error: program ld

I've only just started C++ programming, so feel free to point out that
it's all my fault :-)

FWIW I installed gcc and cc1 over Christmas, but have only just downloaded
cc1plus, and have just redownloaded gcc with no change.  On that note,
would it be possible to g++ to give a more sensible error when cc1plus is
not present (it currently dies halfway through the compile with 'RISC OS

Also, can I suggest a CVSWeb interface to the CVS archives?  That would
make keeping up with current changes much easier, as you can sort them by


Theo Markettos                 theo at markettos.org.uk
Gonville and Caius College     theom at chiark.greenend.org.uk
Cambridge, CB2 1TA, UK         http://www.markettos.org.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: region.cc
Type: text/x-c++src
Size: 653 bytes
Desc: sample C++ file
URL: <http://www.riscos.info/pipermail/gcc/attachments/20020218/24ad9bdc/attachment.cc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: region.h
Type: text/x-chdr
Size: 675 bytes
Desc: sample header file
URL: <http://www.riscos.info/pipermail/gcc/attachments/20020218/24ad9bdc/attachment.h>

More information about the gcc mailing list