c and c++ programming difference-III
By angnima
@angnima (772)
Nepal
March 3, 2007 8:00am CST
c and c++ programming difference-III:
C++ has a much larger library:
C++ has a much larger library than C,
and some things may be automatically
linked in by C++ when they are not with C.
For instance, if you're used to using g++
for math-heavy computations, then it may
come as a shock that when you are using
gcc to compile C, you need to explicitly
include the math library for things like
sin or even sqrt:
% g++ foo.cc
or
% gcc foo.c -lm
No responses