From: Davin P. <dav...@gm...> - 2006-11-08 10:36:09
|
When I ran "make install" it said command copy not found (I am using Windows XP Home SP2). So I set UNIX = 1 and it installed OK. But when I try to compile myprog.c (copied from jpgalleg-2.5/examples/ex1.c) it gives me the following linker error: cd d:/home/4-jpgalleg/ make myprog.exe gcc myprog.c -o myprog.exe -lalleg -ljpgal c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(jpgalleg.o)(.text+0x83):jpgalleg.c: undefined reference to `pack_fread' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(jpgalleg.o)(.text+0xe3):jpgalleg.c: undefined reference to `register_datafile_object' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(jpgalleg.o)(.text+0xfa):jpgalleg.c: undefined reference to `register_bitmap_file_type' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(jpgalleg.o)(.text+0x154):jpgalleg.c: undefined reference to `file_size' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(jpgalleg.o)(.text+0x185):jpgalleg.c: undefined reference to `pack_fopen' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(jpgalleg.o)(.text+0x19d):jpgalleg.c: undefined reference to `pack_fread' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(jpgalleg.o)(.text+0x1a5):jpgalleg.c: undefined reference to `pack_fclose' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(jpgalleg.o)(.text+0x315):jpgalleg.c: undefined reference to `pack_fopen' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(jpgalleg.o)(.text+0x35f):jpgalleg.c: undefined reference to `pack_fclose' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(jpgalleg.o)(.text+0x384):jpgalleg.c: undefined reference to `pack_fwrite' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(encode.o)(.text+0x15cc):encode.c: undefined reference to `_rgb_r_shift_32' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(encode.o)(.text+0x15d6):encode.c: undefined reference to `_rgb_b_shift_32' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(encode.o)(.text+0x15dd):encode.c: undefined reference to `_rgb_g_shift_32' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(encode.o)(.text+0x1cca):encode.c: undefined reference to `create_bitmap_ex' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(encode.o)(.text+0x1cea):encode.c: undefined reference to `select_palette' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(encode.o)(.text+0x1d15):encode.c: undefined reference to `unselect_palette' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(decode.o)(.text+0x12af):decode.c: undefined reference to `_rgb_r_shift_24' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(decode.o)(.text+0x12bb):decode.c: undefined reference to `_rgb_b_shift_24' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(decode.o)(.text+0x12c1):decode.c: undefined reference to `_rgb_g_shift_24' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(decode.o)(.text+0x1cfb):decode.c: undefined reference to `create_bitmap_ex' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(decode.o)(.text+0x1faf):decode.c: undefined reference to `_color_load_depth' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(decode.o)(.text+0x1fda):decode.c: undefined reference to `_fixup_loaded_bitmap' c:/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libjpgal.a(decode.o)(.text+0x1ff6):decode.c: undefined reference to `generate_332_palette' make: *** [myprog.exe] Error 1 Compilation exited abnormally with code 2 at Wed Nov 08 23:26:56 Compilation took Zero time! What gives? Thanks in advance... -- Davin Pearson http://www.davinpearson.com |