GCC tips
Contents
- How to compile a 32bit program on 64bit system
- install related package and header file, like glibc-devel.i686
- If you meet error like:
|
|
Then you need to install libgcc.i686 3. gcc -m32 -o test test.c
How to compile a program with .so file
- cc simple_parse.c -o simple_parse -ljansson -L .
export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
Author Hangbin Liu
LastMod 2018-12-13 (1672b97)