Robert Heller <[EMAIL PROTECTED]> writes:

> gcc can link C++ code, but you need to give it a 'hint' that you are in
> fact linking C++ code, usually by including the -l option(s) that g++
> would normally add:
>
> gcc -g -o test test.o Product.o DerivedProduct.o Creator.o \
>       DerivedCreator.o -lstdc++ -lc++

This (IMHO) is a very bad advice(TM).

The link line above is incorrect for all versions of gcc I am
aware of.

Correct link line may (and does) change with different versions of
g++, so *never* do this. Always use 'g++' to link C++ code.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to