if you add -Wall, gcc/g++ will give you warnings when you "do things wrong". This is what Salem means by "command line" - what you give gcc as a command-line, not which shell you may be using.
As to "if you define your own malloc with another interface", the difference you see with malloc in C and C++ is that C++ takes into account the arguments if you don't usearound the function. So the "renaming" you see is the fact that it's being "decorated" (aka "mangled") to indicate the argument types of the function.Code:extern "C"
--
Mats