Hi I wrote a little c++ program. It works fine if I compile it on my machine. But now I want to statically link everything so I can run the program on other some other arches. Where there might be no xerces-c for example (OpenBSD) g++ -g -Wall `curl-config --cflags` `curl-config --libs` -l xerces-c Ui.cpp GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp Options.cpp works fine as soon as I add the -static flag for g++ g++ -g -Wall -static `curl-config --cflags` `curl-config --libs` -l xerces-c Ui.cpp GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp Options.cpp /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgssapi_krb5 collect2: ld returned 1 exit status Any ideas ldconfig -p | grep gssapi_krb5 libgssapi_krb5.so.2 (libc6,x86-64) => /usr/lib64/libgssapi_krb5.so.2 libgssapi_krb5.so (libc6,x86-64) => /usr/lib64/libgssapi_krb5.so (Yes, I use a Makefile but it is easier to understand this way) Cheers Dietger ---- www.ribalba.de