udp/lacewing — Issue #9: Unresolved external symbols - static debug build, Win32
Author: SortaCore
Created: 2012-01-12 10:01:39+00:00
State: open

I can't use liblacewing 0.2.6 statically.
In my main include file, I have:

```C++
// Lacewing include temporary fix
// See https://github.com/udp/lacewing/issues/8#issuecomment-3322726 for more information
#pragma comment (lib, "ws2_32.lib")
#pragma comment (lib, "mswsock.lib")
#pragma comment (lib, "crypt32.lib")
#pragma comment (lib, "secur32.lib")

#define LacewingFunction
#include "Lacewing.h"
```
This causes linker errors:

```C++
error LNK2001: unresolved external symbol "public: __thiscall Lacewing::RelayClient::RelayClient(struct Lacewing::Pump &)" (??0RelayClient@Lacewing@@QAE@AAUPump@1@@Z)	...\Data.obj
error LNK2001: unresolved external symbol "public: __thiscall Lacewing::FlashPolicy::FlashPolicy(struct Lacewing::Pump &)" (??0FlashPolicy@Lacewing@@QAE@AAUPump@1@@Z)	...\DSB1.obj
error LNK2001: unresolved external symbol "public: __thiscall Lacewing::RelayServer::RelayServer(struct Lacewing::Pump &)" (??0RelayServer@Lacewing@@QAE@AAUPump@1@@Z)	...\DSB1.obj
```
As per build instructions, I have included all the src\, src\windows, and src\relay in my application's project, which contain definitions to all those functions. I experience no errors with the liblacewing code, just with using those functions. Both DSB1 and Data files include the main include file.

Thanks for the help!