Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

building static version of Poco C++ libraries [closed]

can any body guide us on how to build static version of the Poco C++ libraries ?

like image 390
Ravikumar Tulugu Avatar asked Apr 13 '12 10:04

Ravikumar Tulugu


People also ask

How do I create a static library in CPP?

To build the static library, select Build > Build Solution on the menu bar. The build creates a static library, MathLibrary. lib, that can be used by other programs.

What are static libraries in C++?

A static library (also known as an archive) consists of routines that are compiled and linked directly into your program. When you compile a program that uses a static library, all the functionality of the static library that your program uses becomes part of your executable.

How do I install Poco library on Windows?

in the cmake-build directory to install POCO to /usr/local . The install directory can be changed by passing the -DCMAKE_INSTALL_PREFIX=/path/to/directory option to CMake during the configuration step. See the top-level CMakeLists. txt for a list of supported options for enabling and disabling specific libraries.


1 Answers

Assuming you use you use autotools to build Poco, run ./configure with the --static flag.

$ ./configure --static

See ./configure --help for a full list of flags.

like image 116
Benjamin Bannier Avatar answered Oct 22 '22 00:10

Benjamin Bannier