Possible Duplicate:
Linking C++ code with 'gcc' (without g++)
GCC provides the -x lang
option, which allows you to modify the assumed language during compilation. What is the equivalent for the link step? I wish to link a program that has C++ dependencies via the gcc
command.