问题标签 [stlport]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
visual-c++ - Visual C++ 说“LNK1104:无法打开文件 'stlport_statix.lib'”
尝试在 Visual Studio 2008 中链接我的 C++ 解决方案时,我收到消息“LNK1104:无法打开文件 'stlport_statix.lib'”。
我已经安装了 STLport,并且正确的路径设置在Tools->Options->Projects And Solutions->VC++ Directories->Library Files
. 然而,STLport 不提供一个名为的文件stlport_statix.lib
,只有stlport_static.lib
.
Visual Studio 从哪里得到将结尾“c”与“x”交换的想法?
请注意,这很可能是一个非常简单的错误,因为我不熟悉 Microsoft 堆栈(来自 Linux/gcc 背景)。
编辑:我发现了“x”的来源,它的意思是“使用动态 RTL 构建的静态 STLport 库”。构建 STLPort 的人没有构建那个版本,因为我们不应该使用它。
Edit2:我现在正试图弄清楚为什么 Visual Studio 使用 构建/MD
,即使该项目设置为/MT
在“代码生成”下使用。这似乎是问题的根源。
c++ - 在 Windows 7 x64 上使用 Visual Studio 2008 SP1 (msvc9) 进行 stlport 编译不起作用
我从https://stlport.svn.sourceforge.net/svnroot/stlport/trunk/STLport下载了 stlport,并尝试在 Windows 7 x64 上使用 Visual Studio 2008 SP1 编译它。自述文件说要使用:configure -c msvc9 但 -c 是一个未知的编译器选项,所以我使用了:configure msvc9 这似乎根据输出工作,但它没有。build/lib 目录保持为空。
你有什么建议吗?
c++ - 如何在 Android NDK 和 STLport 中使用 boost 库(包括 shared_ptr)
这更像是一个答案而不是一个问题,因为我已经弄清楚了,至少就干净地编译库而言。对我来说主要问题是让 shared_ptr 工作。
原料:
提升 v. 1.45.0
http://www.anddev.org/viewtopic.php?p=29939上的 STLport 版本。
NDK 版本 r4b。
方向:
在您的 Android.mk 文件中添加:
在 stlport/stl/_string.h 的第 613 行删除对 __stl_throw_length_error 的调用。如果您愿意,可以使用 _STLP_NO_EXCEPTIONS。
在第 261 行之后编辑 boost/boost/smart_ptr/shared_ptr.hpp 以摆脱 shared_ptr 构造函数中对 boost::throw_exception 的调用。我在方法的整个主体周围使用了#ifndef BOOST_EXCEPTION_DISABLE。(但请参阅下面的答案。)
接下来,您需要提供一些缺失的部分。使用以下内容创建头文件:
以及带有简化异常类以支持 bad_alloc 的源文件:
在包含 boost/shared_ptr.hpp 的任何地方都包含标题。编译源代码并将其添加到您的库中。
android - 构建 STLport NDK r5/Android 时出现问题
我正在尝试为 Android 构建 STLport。我得到了以下步骤,但它们不起作用:
1 - 使用克隆 STLport 存储库:
git clone git://stlport.git.sourceforge.net/gitroot/stlport/stlport
2 - 使用配置环境:
3 - 从 src 目录使用
制作 SYSROOT"{MY NDK 路径}/platforms/android-5/arch-arm/" release-static
但我收到以下错误:
我缺少任何包含目录或配置吗?
谢谢,
塞尔吉奥
c++ - 数字火星 - 无法打开输入文件“iostream”
我正在使用“Digital Mars”编译以下程序:
而且,这就是我得到的:
C:\Users\Software Engineer\Desktop\C++\dm852c\dm\bin>dmc print1 致命错误:无法打开输入文件 'iostream' --- errorlevel 1
有什么想法吗?
谢谢。
android - stlport 未定义的引用
我正在尝试使用 froyo 源代码中的 stlport 版本做一些工作。我越来越
和
我找到了这个页面并尝试了他推荐的 -D 标志,但它没有用。:http ://www.philhassey.com/blog/2010/07/21/android-day-2-the-ndk/
任何帮助是极大的赞赏。
c++ - VS2008中带有智能指针类的STLPort模棱两可的复制构造函数
我们编写了一个智能指针类,并通过内置的 Visual Studio STL 实现成功地使用它。
问题是我们已经意识到我们的性能瓶颈存在于从 Linux 移植的代码中的 STL 库中(其中 STL 比我们使用它的方式快得多)。所以我试图在 STLPort 中链接,看看它是否能解决我们的性能问题。
但是,当使用 STLPort 5.2.1 时,我会遇到与模棱两可的复制构造函数相关的非常奇怪的构建错误。我把它精简为一个 50 行的 C++ 程序
我从 VS2008SP1 得到的错误是
我有点卡在如何在这里进行,有人知道这是怎么回事吗?
c++ - 在 Visual Studio 2005 中使用 Python 获取 C++ 扩展的无痛方式
我在 Visual Studio 2005 中与 STLPort 5.1.0 和 Boot.Python 1.46.1 有一些非常严重的兼容性问题,我想知道是否有任何其他方法可以让 Python 调用 C++ 代码。
以防万一有人可以提供帮助:以下代码编译并运行没有问题: char const* greet() { return "hello, world"; }
当我做一些稍微复杂的事情时,链接错误就开始了:
不幸的是,由于出现了其他编译错误,我感到非常沮丧,以至于我已经将我的代码破坏到可以重现链接错误的程度。但错误是链接以“stlp”开头的未定义符号的错误,我认为这是指 STLPort 方法。
所以在这一点上,我只是在寻找一种在兼容性方面更容易处理的 Boost 替代方案。
c++ - 将错误 Boost.Python 与 stlport 链接为 stdlib
我正在尝试为 python 创建 C++ 扩展。我的 C++ 代码依赖于 STLPort 5.1.0。我已经用 stdlib=stlport 编译了 boost.python。这发生在我的编译器 Microsoft Visual Studio 2005 中。
但是当我尝试编译我的测试项目时,我不断收到以下链接错误。
stdafx.h 包含:
TestProject.cpp: #include "stdafx.h" #include "TestProject.h"
最重要的是,以下链接错误结果:错误 2 错误 LNK2019:未解析的外部符号“class boost::python::api::object __cdecl boost::python::objects::function_object(struct boost::python::objects: :py_function const &,struct stlpd_std::pair const &)" (?function_object@objects@python@boost@@YA?AVobject@api@23@ABUpy_function@123@ABU?$pair@PBUkeyword@detail@python@boost@ @PBU1234@@stlpd_std@@@Z) 在函数 "class boost::python::api::object __cdecl boost::python::detail::make_function_aux,class stlpd_std::allocator > (__thiscall World::*) 中引用(void),struct boost::python::default_call_policies,struct boost::mpl::vector2,class stlpd_std::allocator >,struct World &>,struct boost::mpl::int_<0> >(class stlpd_std: :basic_string,class stlpd_std::allocator > (__thiscall World::*)(void),struct boost::python::default_call_policies const &,struct boost::mpl::vector2,class stlpd_std::allocator >,struct World &> const &,struct stlpd_std::pair const &,struct boost ::mpl::int_<0>)" (??$make_function_aux@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@ XZUdefault_call_policies@python@boost@@U?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@6@U? $int_@$0A@@86@@detail@python@boost@@YA?AVobject@api@12@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@ D@2@@stlpd_std@@XZABUdefault_call_policies@12@ABU?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl @2@ABU?$pair@PBUkeyword@detail@python@boost@@PBU1234@@7@U?$int_@$0A@@mpl@2@@Z) TestProject.objstruct boost::python::default_call_policies const &,struct boost::mpl::vector2,class stlpd_std::allocator >,struct World &> const &,struct stlpd_std::pair const &,struct boost::mpl::int_ <0>)" (??$make_function_aux@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZUdefault_call_policies@python@boost@ @U?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@6@U?$int_@$0A@ @86@@detail@python@boost@@YA?AVobject@api@12@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std @@XZABUdefault_call_policies@12@ABU?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@2@ABU?$ pair@PBUkeyword@detail@python@boost@@PBU1234@@7@U?$int_@$0A@@mpl@2@@Z) TestProject.objstruct boost::python::default_call_policies const &,struct boost::mpl::vector2,class stlpd_std::allocator >,struct World &> const &,struct stlpd_std::pair const &,struct boost::mpl::int_ <0>)" (??$make_function_aux@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZUdefault_call_policies@python@boost@ @U?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@6@U?$int_@$0A@ @86@@detail@python@boost@@YA?AVobject@api@12@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std @@XZABUdefault_call_policies@12@ABU?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@2@ABU?$ pair@PBUkeyword@detail@python@boost@@PBU1234@@7@U?$int_@$0A@@mpl@2@@Z) TestProject.objpython::default_call_policies const &,struct boost::mpl::vector2,class stlpd_std::allocator >,struct World &> const &,struct stlpd_std::pair const &,struct boost::mpl::int_<0>) " (??$make_function_aux@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZUdefault_call_policies@python@boost@@U?$ vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@6@U?$int_@$0A@@86@@ detail@python@boost@@YA?AVobject@api@12@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZABUdefault_call_policies@ 12@ABU?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@2@ABU?$pair@PBUkeyword@ detail@python@boost@@PBU1234@@7@U?$int_@$0A@@mpl@2@@Z) TestProject.objpython::default_call_policies const &,struct boost::mpl::vector2,class stlpd_std::allocator >,struct World &> const &,struct stlpd_std::pair const &,struct boost::mpl::int_<0>) " (??$make_function_aux@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZUdefault_call_policies@python@boost@@U?$ vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@6@U?$int_@$0A@@86@@ detail@python@boost@@YA?AVobject@api@12@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZABUdefault_call_policies@ 12@ABU?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@2@ABU?$pair@PBUkeyword@ detail@python@boost@@PBU1234@@7@U?$int_@$0A@@mpl@2@@Z) TestProject.objdefault_call_policies const &,struct boost::mpl::vector2,class stlpd_std::allocator >,struct World &> const &,struct stlpd_std::pair const &,struct boost::mpl::int_<0>)" (? ?$make_function_aux@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZUdefault_call_policies@python@boost@@U?$vector2@V ?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@6@U?$int_@$0A@@86@@detail@python @boost@@YA?AVobject@api@12@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZABUdefault_call_policies@12@ABU ?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@2@ABU?$pair@PBUkeyword@detail@python @boost@@PBU1234@@7@U?$int_@$0A@@mpl@2@@Z) TestProject.objdefault_call_policies const &,struct boost::mpl::vector2,class stlpd_std::allocator >,struct World &> const &,struct stlpd_std::pair const &,struct boost::mpl::int_<0>)" (? ?$make_function_aux@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZUdefault_call_policies@python@boost@@U?$vector2@V ?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@6@U?$int_@$0A@@86@@detail@python @boost@@YA?AVobject@api@12@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZABUdefault_call_policies@12@ABU ?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@2@ABU?$pair@PBUkeyword@detail@python @boost@@PBU1234@@7@U?$int_@$0A@@mpl@2@@Z) TestProject.objvector2,class stlpd_std::allocator >,struct World &> const &,struct stlpd_std::pair const &,struct boost::mpl::int_<0>)" (??$make_function_aux@P8World@@AE?AV? $basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZUdefault_call_policies@python@boost@@U?$vector2@V?$basic_string@DV?$char_traits@D@ stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@6@U?$int_@$0A@@86@@detail@python@boost@@YA?AVobject@api@12 @P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZABUdefault_call_policies@12@ABU?$vector2@V?$basic_string@DV? $char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@2@ABU?$pair@PBUkeyword@detail@python@boost@@PBU1234@@7@U? $int_@$0A@@mpl@2@@Z) TestProject.objvector2,class stlpd_std::allocator >,struct World &> const &,struct stlpd_std::pair const &,struct boost::mpl::int_<0>)" (??$make_function_aux@P8World@@AE?AV? $basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZUdefault_call_policies@python@boost@@U?$vector2@V?$basic_string@DV?$char_traits@D@ stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@6@U?$int_@$0A@@86@@detail@python@boost@@YA?AVobject@api@12 @P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZABUdefault_call_policies@12@ABU?$vector2@V?$basic_string@DV? $char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@2@ABU?$pair@PBUkeyword@detail@python@boost@@PBU1234@@7@U? $int_@$0A@@mpl@2@@Z) TestProject.objpair const &,struct boost::mpl::int_<0>)" (??$make_function_aux@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@ 2@@stlpd_std@@XZUdefault_call_policies@python@boost@@U?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@ mpl@6@U?$int_@$0A@@86@@detail@python@boost@@YA?AVobject@api@12@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@ @V?$allocator@D@2@@stlpd_std@@XZABUdefault_call_policies@12@ABU?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@ @AAUWorld@@@mpl@2@ABU?$pair@PBUkeyword@detail@python@boost@@PBU1234@@7@U?$int_@$0A@@mpl@2@@Z) TestProject.objpair const &,struct boost::mpl::int_<0>)" (??$make_function_aux@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@ 2@@stlpd_std@@XZUdefault_call_policies@python@boost@@U?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@ mpl@6@U?$int_@$0A@@86@@detail@python@boost@@YA?AVobject@api@12@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@ @V?$allocator@D@2@@stlpd_std@@XZABUdefault_call_policies@12@ABU?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@ @AAUWorld@@@mpl@2@ABU?$pair@PBUkeyword@detail@python@boost@@PBU1234@@7@U?$int_@$0A@@mpl@2@@Z) TestProject.obj(??$make_function_aux@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZUdefault_call_policies@python@boost@@U?$vector2 @V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@6@U?$int_@$0A@@86@@detail @python@boost@@YA?AVobject@api@12@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZABUdefault_call_policies@12 @ABU?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@2@ABU?$pair@PBUkeyword@detail @python@boost@@PBU1234@@7@U?$int_@$0A@@mpl@2@@Z) TestProject.obj(??$make_function_aux@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZUdefault_call_policies@python@boost@@U?$vector2 @V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@6@U?$int_@$0A@@86@@detail @python@boost@@YA?AVobject@api@12@P8World@@AE?AV?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@XZABUdefault_call_policies@12 @ABU?$vector2@V?$basic_string@DV?$char_traits@D@stlpd_std@@V?$allocator@D@2@@stlpd_std@@AAUWorld@@@mpl@2@ABU?$pair@PBUkeyword@detail @python@boost@@PBU1234@@7@U?$int_@$0A@@mpl@2@@Z) TestProject.obj对象对象
c++ - STLPort 的字符串实现是使用引用计数吗?
STLPort 是否通过引用计数机制实现字符串?