[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: windows static archive, missing symbols
From: |
Brian Dessent |
Subject: |
Re: windows static archive, missing symbols |
Date: |
Fri, 19 Jan 2007 22:05:01 -0800 |
Bob Rossi wrote:
> So, the correct way is to tell the author to remove the declspec's
> alltogether from the header file? That will work for both dynamic and
> static setup?
No, it's not the right way. The right way is to add -DPCRE_STATIC to
the CPPFLAGS. When linking against a DLL without __declspec(dllimport),
it will still work but it's suboptimal as there will be an extra jump
instruction through the function stub (and possibly an extra relocation
to resolve, I don't remember.) This means the binary is larger and
slower. Although the extent of this is debatable, you don't want to do
that if you can avoid it, which you can by just using -DPCRE_STATIC,
which is how it was designed to work.
Brian
- windows static archive, missing symbols, Bob Rossi, 2007/01/19
- Re: windows static archive, missing symbols, Howard Chu, 2007/01/19
- Re: windows static archive, missing symbols, Bob Rossi, 2007/01/20
- Re: windows static archive, missing symbols, Bob Rossi, 2007/01/20
- Re: windows static archive, missing symbols, Howard Chu, 2007/01/20
- Re: windows static archive, missing symbols,
Brian Dessent <=
- Re: windows static archive, missing symbols, Howard Chu, 2007/01/20
- Re: windows static archive, missing symbols, Brian Dessent, 2007/01/20
Re: windows static archive, missing symbols, Brian Dessent, 2007/01/19