From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from parrot.gentoo.org (lists.gentoo.org [156.56.111.196]) by robin.gentoo.org (8.13.3/8.13.3) with ESMTP id j2LBBGRB008505 for ; Mon, 21 Mar 2005 11:11:17 GMT Received: (qmail 6658 invoked by uid 89); 21 Mar 2005 11:11:14 +0000 Received: (qmail 17985 invoked from network); 21 Mar 2005 11:11:14 +0000 Received: from emix.uci.agh.edu.pl (149.156.96.16) by lists.gentoo.org with SMTP; 21 Mar 2005 11:11:14 +0000 Received: from localhost (localhost [127.0.0.1]) by emix.uci.agh.edu.pl (Postfix) with ESMTP id 891802D0A4A for ; Mon, 21 Mar 2005 12:11:11 +0100 (CET) Received: from emix.uci.agh.edu.pl ([127.0.0.1]) by localhost (emix [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14272-188 for ; Mon, 21 Mar 2005 12:11:11 +0100 (CET) Received: from [172.25.3.35] (r4.ists.pl [193.25.4.14]) by emix.uci.agh.edu.pl (Postfix) with ESMTP id 4EE222D0ABC for ; Mon, 21 Mar 2005 12:11:11 +0100 (CET) X-NAT-Received: from 172.25.3.35:33007 [ident-empty] by smtp-proxy.isp with TPROXY id 1111403474.15502 Message-ID: <423EABD0.2000704@dione.cc> Date: Mon, 21 Mar 2005 12:11:12 +0100 From: Krzysztof Palka User-Agent: Mozilla Thunderbird 0.8 (X11/20041218) X-Accept-Language: en-us, en Precedence: bulk List-Post: , , List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user-pl@gentoo.org Reply-To: gentoo-user-pl@gentoo.org MIME-Version: 1.0 To: gentoo-user-pl@lists.gentoo.org Subject: [gentoo-user-pl] problem z biblioteka w c++ X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at agh.edu.pl X-Archives-Salt: 9f2f67e8-5909-48e2-9fb7-6e633198d811 X-Archives-Hash: c6516fe3a5dd06b119190c0dd2bba070 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 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