[ILUG] Re: compiling c+ program

Paul J Collins sneakums at zork.net
Fri Apr 20 11:11:21 IST 2001


>>>>> "IK" == Ivan Kelly <ivan_kelly at iol.ie> writes:

    IK> you have to state the c library to use

    IK> gcc helloworld.cpp -o helloworld -lc

gcc links to libc be default.  g++ links to libstdc++ by default.

-- 
"Weaseling out of things is what separates us from the 
 animals ... except the weasel."
	-- Emad El-Haraty




More information about the ILUG mailing list