Skip to content

Hongyu's weblog

Science, Technology, and Beyond

Day: January 8, 2010

Posted on January 8, 2010January 20, 2010

Different parameter order for GCC on Cygwin and Linux

For a test program, test.c, that used library libjpeg, both
gcc test.c -ljpeg -o test
and
gcc -ljpeg test.c -o test
worked on Linux (CentOS 5), but only the former worked on Cygwin. Odd.

Another difference is the ZLIB library. In linux, I compiled using -lz, while on cygwin, I use -llibz

Archives

January 2010
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Dec   Apr »
Proudly powered by WordPress