English 中文(简体)
是否有静态或动态的图书馆?
原标题:Do i have static or dynamic boost libraries?
  • 时间:2011-01-06 20:56:09
  •  标签:
  • c++
  • boost

页: 1

现在,我有图书馆与这些负责人保持平衡,例如,

libboost_serialization-vc100-mt
libboost_serialization-vc100-mt-1_45
libboost_serialization-vc100-mt-gd
libboost_serialization-vc100-mt-gd-1_45

我认为,这些图书馆应当是静态的图书馆,可供浏览和发行。 当我用<代码>管理编辑时 多阅读的Debug(/MTd)给出了一个错误:LNK1104:不能开放文件校准-vc100-mt-sgd-1_45.lib/code>。

哪里会错?

问题回答

某种混淆是两种静态的加固办法。

B2.exe 选择=static,表明你希望静态地将其(boost)联系起来。 如果你正在与MT或MT/MTd编辑您的VC项目,那么你还需要使用<代码>runtime-link=static<>/code>的备选办法,以表明你将固定地与VC运行时间图书馆连接起来。

这是第二版<代码> 开放时间链接=static,将其贴在校正名上。

我的建筑增强指挥线

b2.exe --toolset=msvc variant=release link=static threading=multi runtime-link=static stage

你有充满活力的版本。 静态定型号通过名称“s”加以限定。 确保在<代码>bjam的指挥线上注明<代码>link=static。 否则,你就不得不重建,以形成静态版本。

在这里,如何打破僵局

libboost_serialization-vc100-mt-sgd-1_45.lib

lib- if boost library starts with lib then its a static library , shared library do not start with lib prefix. Also static library will have a  -s  in the name.

mt- multi-threaded , obtained by specifying threading=multi when you ran bjam or b2.This is the default threading.

g- use debug libraries for building the code
d- build a debug version of your code

因此,您的汇编者正在寻找多面的静态诽谤图书馆(mt-sgd),因为你与MTd(Creates a debug multithreaded executable file using LIBCMTD.lib)。 我不停地猜测,必须搜寻静态图书馆。 如果你想要一个有活力的图书馆,则在你的法典中插入这些内容或界定一个宏观。

#define BOOST_ALL_DYN_LINK

Please check this document: http://www.boost.org/doc/libs/1_45_0/more/getting_started/windows.html#library-naming

你们可以找到所有信件的含义,以及如何相应地加强动力。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签