vine-users ML アーカイブ



[vine-users:059929] Re: gcc $B$G$N%3%s%Q%$%k$K$D$$$F(B

  • From: "SAWAI, Masahiko" <rururu@xxxxxxxxxxxxxx>
  • Subject: [vine-users:059929] Re: gcc $B$G$N%3%s%Q%$%k$K$D$$$F(B
  • Date: Wed, 23 Apr 2003 20:36:43 +0900 (JST)
$B_70f!w0l8D?M(B $B$G$9!%(B

<00f101c30986$4336ac30$2f33fc0a@TKOAKS2ATG9Q4S>$B$N5-;v$K$*$$$F(B
kojima@xxxxxxxxxxx$B$5$s$O=q$-$^$7$?!#(B
>
>$B<ALd$,$"$k$N$G$9$,$h$m$7$/$*4j$$$7$^$9!#(B
>C++$B$G(Blibjpeg$B$r;H$$(BJPEG$B$r07$&%3%s%=!<%k%"%W%j$r=q$$$F!"(B
>WIN$B$N4D6-$G$O%3%s%Q%$%k$HF0:n%A%'%C%/$r=*$($^$7$?!#(B
>$B$=$3$G(Blinux$B4D6-$G%3%s%Q%$%k$r$7$h$&$H;n$_$?$N$G$9$,!"(B
>
>In function `main':
>undefined reference to `jpeg_std_error(jpeg_error_mgr *)'
>undefined reference to `jpeg_stdio_src(jpeg_decompress_struct *, __sFILE *)'
>...
>..
>$B$3$&$$$&%(%i!<$,=P$^$9!#(B

$B>/$J$/$H$b(B Vine 2.6 $BI8=`$N(B libjpeg $B$G$O$=$N$^$^(B
 sawai[20:30](39) gcc main.cpp -ljpeg
$B$N$h$&$K%3%s%Q%$%k$G$-$^$7$?!%(B
$B%$%s%9%H!<%k$5$l$F$$$k%Q%C%1!<%8$O(B

 sawai[20:29](38) rpm -qa | grep jpeg
 libjpeg-6b-15vl1
 libjpeg-devel-6b-15vl1
 libjpeg6a-6a-7vl1

$B$G$9!%(B

>/usr/local/lib/$B$K$O(Blibjpeg.a libjpeg.so$B$H$b$KB8:_$7$^$9!#(B
>gcc -o test.cgi main.cpp -L/usr/local/lib/ -ljpeg

/usr/local $B0J2<$K$"$k$H$$$&$3$H$O(B Vine $BI8=`$N(B libjpeg$B$G$O$J$/$F(B
$B$4<+J,$G%$%s%9%H!<%k$7$?$H$$$&$3$H$G$7$g$&$+!)(B 

$B$=$N(B libjpeg $B$K$J$K$+LdBj$,$"$k$N$G$O$J$$$G$7$g$&$+!)(B

---
 _/ SAWAI, Masahiko
_/ rururu@xxxxxxxxxxxxxx