I've compiled POCO and everything works great.
Anyhow, I'm wondering how to force Visual Studio to link ALL the POCO libraries statically... I want zero-dependencies
thank you!
make static_release
$POCO_BASE/.configure --static-.PHONY: all libexecs cppunit tests samples clean distclean install
+.PHONY: all libexecs cppunit tests samples clean distclean install static_release
+static_release: libexecs
$POCO_BASE/.configure --static
make -s poco** Building executable (release) /home/parallels/trunk/Foundation/testsuite/bin/Linux/x86_64/static/testrunner
/home/parallels/trunk/lib/Linux/x86_64/libPocoFoundation.a(SharedLibrary.o): In function `Poco::SharedLibraryImpl::loadImpl(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)':
SharedLibrary.cpp:(.text+0x123): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/parallels/trunk/lib/Linux/x86_64/libPocoFoundation.a(Path.o): In function `Poco::PathImpl::homeImpl()':
Path.cpp:(.text+0x218): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
** Creating dependency info for src/TestLibrary.cpp
** Compiling src/TestPlugin.cpp (debug, shared)
** Compiling src/TestLibrary.cpp (debug, shared)
** Building dynamic library (debug, static) /home/parallels/trunk/Foundation/testsuite/bin/Linux/x86_64/static/TestLibraryd.so
/usr/bin/ld: /home/parallels/trunk/lib/Linux/x86_64/libPocoFoundationd.a(Exception.o): relocation R_X86_64_32S against `vtable for Poco::Exception' can not be used when making a shared object; recompile with -fPIC
/home/parallels/trunk/lib/Linux/x86_64/libPocoFoundationd.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [/home/parallels/trunk/Foundation/testsuite/bin/Linux/x86_64/static/TestLibraryd.so] Error 1
make[1]: *** [projects] Error 2
make: *** [Foundation-tests] Error 2
parallels@ubuntu:~/trunk$ g++ --version
g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1Users browsing this forum: No registered users and 2 guests