[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#617751: ocaml-soundtouch: Shouldn't link against stdc++



Le 11/03/2011 05:43, Cyril Brulebois a écrit :
> noticed “thanks” to a buildd glitch (g++ missing):
> | /usr/bin/ocamlc -c soundtouch.mli
> | /usr/bin/ocamlc -c soundtouch.ml
> | ocamlmklib      -L/usr/lib   \
> |                                 -o soundtouch_stubs  soundtouch_stubs.o -lSoundTouch -lstdc++  \
> | 
> | /usr/bin/ld: cannot find -lstdc++
> 
> Last I checked, one links C++ code through g++, not through ld …
> -lstdc++. You may want to investigate that.

So you mean that by using some specific library, one should change
linker? Doesn't sound right to me... Do you have any reference that
explains why linking to -lstdc++ without g++ is bad practice? I've
already heard of that, but couldn't find any decent explanation.


Cheers,

-- 
Stéphane




Reply to: