* [gentoo-user-pl] problem z biblioteka w c++
@ 2005-03-21 11:11 Krzysztof Palka
2005-03-21 12:49 ` pave
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Palka @ 2005-03-21 11:11 UTC (permalink / raw
To: gentoo-user-pl
emerge ccmath
mam sobie fajna biblioteke
header: /usr/include/ccmath.h
static lib: /usr/lib/libccm.a
shared lib: /lib/libccm.so
w programie test.cpp pisze
#include <ccmath.h>
main () { ... csplp(..) ....};
g++ -lccm test.cpp
/tmp/ccxclZQf.o(.text+0x3a): In function `main':
: undefined reference to `csplp(double*, double*, double*, int, double)'
collect2: ld returned 1 exit status
make: *** [all] Error 1
Co robie zle? Sprawdzilem, jak usunalem wywoilanie funkcji z tej
biblioteki to i header przeszedl, i -lccm bylo bez bledow, skompilowalo
sie i wypisalo hello world. Kazde uzycie funkcji powoduje blad linkera,
za to w headerze ta funkcja oczywiscie jak widac przechodzi...
ke?
--
-----------------------------------------------------
Krzysztof Palka {*} http://cypreess.dione.cc
{*} Have you ever retired a human by mistake? {*}
-----------------------------------------------------
--
gentoo-user-pl@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user-pl] problem z biblioteka w c++
2005-03-21 11:11 [gentoo-user-pl] problem z biblioteka w c++ Krzysztof Palka
@ 2005-03-21 12:49 ` pave
2005-03-21 15:24 ` Krzysztof Palka
0 siblings, 1 reply; 3+ messages in thread
From: pave @ 2005-03-21 12:49 UTC (permalink / raw
To: gentoo-user-pl
On Mon, 2005-03-21 at 12:11 +0100, Krzysztof Palka wrote:
> emerge ccmath
>
> mam sobie fajna biblioteke
> header: /usr/include/ccmath.h
> static lib: /usr/lib/libccm.a
> shared lib: /lib/libccm.so
>
> w programie test.cpp pisze
> #include <ccmath.h>
> main () { ... csplp(..) ....};
>
> g++ -lccm test.cpp
g++ test.cpp -lccm
pozdro
pave
--
gentoo-user-pl@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user-pl] problem z biblioteka w c++
2005-03-21 12:49 ` pave
@ 2005-03-21 15:24 ` Krzysztof Palka
0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Palka @ 2005-03-21 15:24 UTC (permalink / raw
To: gentoo-user-pl
pave wrote:
> On Mon, 2005-03-21 at 12:11 +0100, Krzysztof Palka wrote:
>
>>emerge ccmath
>>
>>mam sobie fajna biblioteke
>> header: /usr/include/ccmath.h
>> static lib: /usr/lib/libccm.a
>> shared lib: /lib/libccm.so
>>
>>w programie test.cpp pisze
>>#include <ccmath.h>
>>main () { ... csplp(..) ....};
>>
>>g++ -lccm test.cpp
>
>
> g++ test.cpp -lccm
probowalem to nie dziala, w ten sam sposob linkuje inne biblioteki jak
GD i wszystko pieknie chodzi !
--
-----------------------------------------------------
Krzysztof Palka {*} http://cypreess.dione.cc
{*} Have you ever retired a human by mistake? {*}
-----------------------------------------------------
--
gentoo-user-pl@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-21 15:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-21 11:11 [gentoo-user-pl] problem z biblioteka w c++ Krzysztof Palka
2005-03-21 12:49 ` pave
2005-03-21 15:24 ` Krzysztof Palka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox