問題タブ [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:/MD
プロジェクトが/MT
「コード生成」で使用するように設定されているにもかかわらず、 Visual Studio が でビルドされている理由を理解しようとしています。これが問題の根本のようです。
c++ - Windows7x64でのVisualStudio2008 SP1(msvc9)を使用したstlportコンパイルが機能しない
https://stlport.svn.sourceforge.net/svnroot/stlport/trunk/STLportからstlportをダウンロードし、Windows7x64上のVisualStudio2008SP1でコンパイルしようとしました。readmeには次のように書かれています: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の呼び出しを削除します。メソッドの本体全体で#ifndefBOOST_EXCEPTION_DISABLEを使用しました。(ただし、以下の回答を参照してください。)
次に、不足している部品をいくつか提供する必要があります。次のヘッダーファイルを作成します。
そして、bad_allocをサポートするために削除された例外クラスを持つソースファイル:
boost / shared_ptr.hppを含める場合は常に、ヘッダーを含めます。ソースをコンパイルしてライブラリに追加します。
android - STLport NDK r5/Android のビルドに関する問題
Android用のSTLportを構築しようとしています。次の手順を実行しましたが、機能していません。
1 - 以下を使用して STLport リポジトリのクローンを作成します。
git クローン git://stlport.git.sourceforge.net/gitroot/stlport/stlport
2 - 以下を使用して環境を構成します。
3 - src ディレクトリから、次を使用してビルドします
make SYSROOT"{MY NDK path}/platforms/android-5/arch-arm/" release-static
しかし、次のエラーが発生しました。
欠落しているインクルードディレクトリまたは構成はありますか?
ありがとう、
セルジオ
c++ - DigitalMars-入力ファイル「iostream」を開くことができません
「DigitalMars」を使用して次のプログラムをコンパイルしています。
そして、これは私が得るものです:
C:\ Users \ Software Engineer \ Desktop \ C ++ \ dm852c \ dm \ bin> dmc print1致命的なエラー:入力ファイル'iostream'を開くことができません---エラーレベル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++ - VisualStudio2005でPythonでC++拡張機能を取得するための簡単な方法
Visual Studio2005のSTLPort5.1.0およびBoot.Python1.46.1との互換性に非常に深刻な問題がありますが、PythonでC++コードを呼び出す方法は他にあるのではないかと考えていました。
誰かが助けてくれる場合に備えて、次のコードは問題なくコンパイルされ、実行されます。char const * greet(){return "hello、world"; }
リンクエラーは、もう少し複雑なことをすると始まります。
残念ながら、他のコンパイルエラーが表示されているため、リンクエラーを再現できるようにコードを壊してしまいました。しかし、エラーは、STLPortメソッドを参照していると思われる「stlp」で始まる未定義のシンボルのリンクエラーでした。
したがって、現時点では、互換性の点で少し扱いやすいBoostの代替手段を探しています。
c++ - stdlib として stlport を使用したリンク エラー Boost.Python
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"
最も重要なこととして、次のリンク エラーが発生します。 Error 2 error LNK2019: unresolved external symbol "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.objペア 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ペア 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 は参照カウント メカニズムを介して文字列を実装していますか?