Overview
Features
Download
Documentation
Community
Add-Ons & Services

Compiling Poco as DLL

Please post support and help requests here.

Compiling Poco as DLL

Postby gustavsen » 04 Nov 2008, 19:37

Hi,
I currently has been compiled poco under linux, under windows with cygwin and generate the libs with VS 8.0 using buildwin.cmd script.

but I don't found how generate Poco as DLL.
I saw that POCO_DLL must be defined but I don't get any result with this flag.

Any can help me?

regards in advance
Gustavsen
gustavsen
 
Posts: 8
Joined: 21 Oct 2008, 14:24

Re: Compiling Poco as DLL

Postby alex » 04 Nov 2008, 21:01

> but I don't found how generate Poco as DLL.
> I saw that POCO_DLL must be defined but I don't get any result with this flag.
>
> Any can help me?

Code: Select all

P:poco>buildwin
Usage:
------
buildwin VS_VERSION [ACTION] [LINKMODE] [CONFIGURATION] [SAMPLES]
VS_VERSION: "71|80|90"
ACTION:     "build|rebuild|clean"
LINKMODE:   "static|shared|both"
CONFIG:     "release|debug|both"
SAMPLES:    "yes|no"

Default is build all.


To build DLLs. specify 'shared' for LINKMODE. For example

Code: Select all

buildwin 80 build shared both no


will build both release and debug DLL versions.
alex
 
Posts: 1146
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Compiling Poco as DLL

Postby gustavsen » 04 Nov 2008, 21:53

Ok, I made these command, but I get all package__.lib __

I don't touch nothing from src download and I look into the project config and I don't saw nothing weird...

btw: I am linux programmer, I really unknown about VS :D

regards
Gustavsen
gustavsen
 
Posts: 8
Joined: 21 Oct 2008, 14:24

Re: Re: Compiling Poco as DLL

Postby guenter » 04 Nov 2008, 22:11

> Ok, I made these command, but I get all package__.lib __
>
> I don't touch nothing from src download and I look into the project config and I don't saw nothing weird...
>
> btw: I am linux programmer, I really unknown about VS :D
>
> regards
> Gustavsen

Look in the __bin__ directory - there you'll find the DLLs.

On Windows, even if you build DLLs, you'll also get LIB files (the import libraries). Unlike Linux/Unix, you cannot specify a DLL on the linker command line on Windows - you have to specify the import library. There is a lengthy Wikipedia article that explains how DLLs work: http://en.wikipedia.org/wiki/Dynamic-link_library
guenter
 
Posts: 1157
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Compiling Poco as DLL

Postby gustavsen » 05 Nov 2008, 13:15

Thanks Gunter (:redface:)
gustavsen
 
Posts: 8
Joined: 21 Oct 2008, 14:24


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests