Link error and -fsquangle
Alexandre Oliva
oliva@dcc.unicamp.br
Wed Sep 9 17:24:00 GMT 1998
Dimitri PAPADOPOULOS-ORFANOS <papadopo@shfj.cea.fr> writes:
>> When compiling a 'hello world' program with -fsquangle I get:
>> ld32: ERROR 33: Unresolved text symbol "ostream::operator<<(ostream
>> &(*)(ostream &))" -- 1st referenced by /var/tmp/ccbH8Z2O.o.
You must build the C++ library with -fsquangle too.
> By the way, how to force g++ to use GNU's as instead of Sun's as?
Add a link to GNU as in any of the directories printed by the command:
gcc -print-search-dirs | grep '^programs:'
That's the PATH gcc uses to search for as, ld, etc.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list