0
:

 

 

C

  
: 0
Mint , : , Hello World smile , , ... ... - :
[code=Cj
@nvidia ~/2015_WORK/HISTORY.nvidia/04/06 $ gcc -Wall -lm ctst.c -o ctst
/tmp/ccDNNiCu.o: In function `main':
ctst.c:(.text+0x1a): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
[/code]
, ld libm.so.
, , .
C ( libc.so)! scratch

, , ... - gcc Mint ... 5% crazy
... AltLinux 2008. .

, : , :
C:
  1.  
  2. olej@nvidia ~/2015_WORK/HISTORY.nvidia/04/06 $ gcc -Wall ctst.c -o ctst -lm
  3. olej@nvidia ~/2015_WORK/HISTORY.nvidia/04/06 $ ldd ctst
  4. linux-gate.so.1 => (0xb7738000)
  5. libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb76d7000)
  6. libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7529000)
  7. /lib/ld-linux.so.2 (0xb7739000)
  8. olej@nvidia ~/2015_WORK/HISTORY.nvidia/04/06 $ ./ctst
  9. 3.000000
  10.  
:
:
  1.  
  2. olej@nvidia ~/2015_WORK/HISTORY.nvidia/04/06 $ gcc -Wall ctst.c -lm -o ctst
  3.  
.
 
|
:
, .