1 |
emerge ccmath |
2 |
|
3 |
mam sobie fajna biblioteke |
4 |
header: /usr/include/ccmath.h |
5 |
static lib: /usr/lib/libccm.a |
6 |
shared lib: /lib/libccm.so |
7 |
|
8 |
w programie test.cpp pisze |
9 |
#include <ccmath.h> |
10 |
main () { ... csplp(..) ....}; |
11 |
|
12 |
g++ -lccm test.cpp |
13 |
|
14 |
/tmp/ccxclZQf.o(.text+0x3a): In function `main': |
15 |
: undefined reference to `csplp(double*, double*, double*, int, double)' |
16 |
collect2: ld returned 1 exit status |
17 |
make: *** [all] Error 1 |
18 |
|
19 |
Co robie zle? Sprawdzilem, jak usunalem wywoilanie funkcji z tej |
20 |
biblioteki to i header przeszedl, i -lccm bylo bez bledow, skompilowalo |
21 |
sie i wypisalo hello world. Kazde uzycie funkcji powoduje blad linkera, |
22 |
za to w headerze ta funkcja oczywiscie jak widac przechodzi... |
23 |
|
24 |
ke? |
25 |
-- |
26 |
----------------------------------------------------- |
27 |
Krzysztof Palka {*} http://cypreess.dione.cc |
28 |
{*} Have you ever retired a human by mistake? {*} |
29 |
----------------------------------------------------- |
30 |
-- |
31 |
gentoo-user-pl@g.o mailing list |