COMP 206 Study Guide - Final Guide: Scanf Format String, Gnu Compiler Collection, C Dynamic Memory Allocation

315 views2 pages

Document Summary

Important linux path: (cid:862)/(cid:863) is the root of the file syste(cid:373). Matches any single character: ls test?. doc: [abc] matches any of the enclosed characters: ls t[ee][ss][tt]. doc/ 1 letter file, [a-z] matches any character in a range: ls [a-za-z], [!a(cid:271)(cid:272) ] matches any character except those listed. Static library: gcc -c swap. c ar rcs libswap. a swap. o gcc main. c libswap. a or gcc main. c -l. -lswap. Shared libraries: gcc -shared -fpic -o libswap. so swap. c gcc main. c -lswap -l export ld_library_path=:. Linux environment variables: to set a(cid:374) e(cid:374)(cid:448)iro(cid:374)(cid:373)e(cid:374)t (cid:448)aria(cid:271)le: $ export =: $ echo : ld_library_path is a spe(cid:272)ial (cid:448)aria(cid:271)le (cid:449)ho"s jo(cid:271) is to hold all the lo(cid:272)atio(cid:374)s where shared libraries exist. When you run a program, the shell searches. Ld_library_path in order for every required . so and uses the first it finds: note, (cid:862). (cid:863) is the path (cid:449)e add o(cid:374) to the (cid:272)olo(cid:374)-separated list.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents