What do you want to save?
Add Code snippet
New code examples in category C
-
Phoenix Logan 2022-03-15 07:20:11
undefined reference to `sqrt'
The math library must be linked in when building the executable. How to do this varies by environment, but in Linux/Unix, just add -lm to the command: gcc test.c -o test -lm The math library is named libm.so, and the -l command option assumes a lib pref... Add solution -
Awgiedawgie 2022-03-12 15:10:02
is c and c++ platform independent
In C, C++ the compiled code (compiler given code) is machine language code which is understandable only by the cureent operating system. Hence this compiled code can not be executed in another platform. Due to this reason these languages are consider... Add solution