Skip to content

Linker warning LNK4221 in Foundation for SignalHandler.obj, String.obj and ByteOrder.obj #345

@mar-na

Description

@mar-na

Poco 1.4.6p2 Visual Studio

When I compile under Windows with VS I get following linker warnings:
2>SignalHandler.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
2>String.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
2>ByteOrder.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library

SignalHandler

The reason is that SignalHandler is for POSIX only and so the cpp file is "empty".
But it is included in the VS project file.

A solution is to remove it from the VS project file.

String

String.cpp is only needed if POCO_NO_TEMPLATE_ICOMPARE is defined (e.g. needed for PA-RISC based HP-UX platforms)
Solution: ?

ByteOrder

String.cpp is empty.
It is not needed, or?
A Solution is delete ByteOrder.cpp.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions