## Friday, March 25, 2011

### Alchemy + libjpeg (4) - Final Words

The previous finding although allows us to compile with the correct header; it does not include the libjpeg at all. So the final swc is smaller and most importantly, it doesn't know where to look for the functions in libjpeg.h.

To include the library in the final swc, here is the line

 gcc jpeg_sample_linker.c -O3 -swc -o jpeg_sample_linker.swc /usr/local/lib/libjpeg.a 

SHAAATTTTT.. man...... this is tiring.

To build ur own c library, this post looks decent: