1 |
On 28/05/07, Didi <ribalba@×××××.com> wrote: |
2 |
> Hi |
3 |
> |
4 |
> I wrote a little c++ program. It works fine if I compile it on my machine. |
5 |
> But now I want to statically link everything so I can run the program on |
6 |
> other some other arches. Where there might be no xerces-c for example |
7 |
> (OpenBSD) |
8 |
> |
9 |
> g++ -g -Wall `curl-config --cflags` `curl-config --libs` -l xerces-c Ui.cpp |
10 |
> GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp Options.cpp |
11 |
> |
12 |
> works fine as soon as I add the -static flag for g++ |
13 |
> |
14 |
> g++ -g -Wall -static `curl-config --cflags` `curl-config --libs` -l |
15 |
> xerces-c Ui.cpp GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp Options.cpp |
16 |
> |
17 |
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: |
18 |
> cannot find -lgssapi_krb5 |
19 |
> collect2: ld returned 1 exit status |
20 |
> |
21 |
> Any ideas |
22 |
> |
23 |
> ldconfig -p | grep gssapi_krb5 |
24 |
> libgssapi_krb5.so.2 (libc6,x86-64) => /usr/lib64/libgssapi_krb5.so.2 |
25 |
> libgssapi_krb5.so (libc6,x86-64) => /usr/lib64/libgssapi_krb5.so |
26 |
> |
27 |
> |
28 |
> (Yes, I use a Makefile but it is easier to understand this way) |
29 |
> |
30 |
> Cheers Dietger |
31 |
> |
32 |
> ---- |
33 |
> www.ribalba.de |
34 |
|
35 |
|
36 |
Sorry friend this list is for gentoo development and related issues. I |
37 |
suggest you try to find your answer somewhere else. |
38 |
|
39 |
Thanks |
40 |
-Rob |
41 |
|
42 |
-- |
43 |
/** |
44 |
* Gentoo Linux Developer |
45 |
* GPG : 0x2217D168 |
46 |
*/ |
47 |
-- |
48 |
gentoo-dev@g.o mailing list |