ÀÌ ¿¹ÀÇ ¹®Á¦ ù¹ø°º¸´Ù ½±´Ù. xloadimage ÇÁ·Î±×·¥À» ³» ±×·¡ÇÈ
µµ±¸ ¸ðÀ½¿¡ Ãß°¡Çϸé ÁÁ°Ú´Ù°í »ý°¢Çß´Ù. ³ª´Â xloadi41.gz
ÆÄÀÏÀ»
Mui¿Í Quercia°¡ ¾´
X User Tools¶ó´Â ÈǸ¢ÇÑ Ã¥ÀÇ
ºÎ·Ï CD¿¡ ÀÖ´Â ¼Ò½º µð·ºÅ͸®¿¡¼ Á÷Á¢ º¹»çÇß´Ù.
±â´ëÇÑ ´ë·Î, tar xzvf·Î ÆÄÀÏÀ» Ç® ¼ö ÀÖ¾ú´Ù.
ÇÏÁö¸¸ make´Â °í¾àÇØ º¸ÀÌ´Â ¿¡·¯¸¦ ³»°í´Â Áß´ÜµÇ¾î ¹ö·È´Ù.
gcc -c -O -fstrength-reduce -finline-functions -fforce-mem
-fforce-addr -DSYSV -I/usr/X11R6/include
-DSYSPATHFILE=\"/usr/lib/X11/Xloadimage\" mcidas.c
In file included from /usr/include/stdlib.h:32,
from image.h:23,
from xloadimage.h:15,
from mcidas.c:7:
/usr/lib/gcc-lib/i486-linux/2.6.3/include/stddef.h:215:
conflicting types for `wchar_t'
/usr/X11R6/include/X11/Xlib.h:74: previous declaration of
`wchar_t'
make[1]: *** [mcidas.o] Error 1
make[1]: Leaving directory
`/home/thegrendel/tst/xloadimage.4.1'
make: *** [default] Error 2
¿¡·¯ ¸Þ½ÃÁö¿¡ °áÁ¤ÀûÀÎ ´Ü¼°¡ µé¾îÀÖ´Ù.
image.h
ÆÄÀÏÀÇ 23° ÁÙÀ» º¸¸é...
#include <stdlib.h>
Aha, xloadimageÀÇ ¼Ò½º ¾îµò°¡¿¡¼ wchar_t°¡ Ç¥ÁØ include
ÆÄÀÏÀÎ stdlib.h
¿¡¼ Á¤ÀÇµÈ °ÍÀ¸·Î ´Ù½Ã Á¤ÀǵǾú´Ù.
¸ÕÀú stdlib.h´Â Æ÷ÇÔ½Ãų ÇÊ¿ä°¡ ¾øÀ» µí ÇϹǷΠimage.h
ÀÇ
23° ÁÙÀ» ÁÖ¼®¹®À¸·Î ¸¸µé¾î º¸ÀÚ.
ÀÌÁ¦ ¼³Ä¡ °úÁ¤Àº ¾Æ¹«·± Ä¡¸íÀûÀÎ ¿¡·¯ ¾øÀÌ ÁøÇàµÈ´Ù. xloadimage ÆÐÅ°Áö´Â Áö±Ý Á¤È®È÷ ÀÛµ¿ÇÏ°í ÀÖ´Ù.