Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/146.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
皮克斯USD LNK2019:未解析的外部符号 我正在使用一个C++程序,使用Nvidia()的Python 3预构建的库创建.USDA文件。有很多外部库,我无法确定是哪一个导致了大量编译器问题。有一些头文件(具体来说是stage.h、mesh.h)会阻止我的程序编译。我从包中使用的其他头文件不会导致这些错误_C++_Python 3.x_Visual Studio_Compiler Errors_Nvidia - Fatal编程技术网

皮克斯USD LNK2019:未解析的外部符号 我正在使用一个C++程序,使用Nvidia()的Python 3预构建的库创建.USDA文件。有很多外部库,我无法确定是哪一个导致了大量编译器问题。有一些头文件(具体来说是stage.h、mesh.h)会阻止我的程序编译。我从包中使用的其他头文件不会导致这些错误

皮克斯USD LNK2019:未解析的外部符号 我正在使用一个C++程序,使用Nvidia()的Python 3预构建的库创建.USDA文件。有很多外部库,我无法确定是哪一个导致了大量编译器问题。有一些头文件(具体来说是stage.h、mesh.h)会阻止我的程序编译。我从包中使用的其他头文件不会导致这些错误,c++,python-3.x,visual-studio,compiler-errors,nvidia,C++,Python 3.x,Visual Studio,Compiler Errors,Nvidia,我从研究中发现,我可能缺少一个include/lib目录,或者某个文件是在另一个版本上编译的,但是我如何才能找到丢失的或编译不正确的文件呢 我正在使用Windows 10、Visual Studio 2017、Python 3.6和Boost 1.68。Nvidia库位于C:\USDP3中 包括:C:\USDP3\包括C:\Program Files\boost\u 1\u 68\u 0 库:C:\USDP3\lib C:\Program Files\boost\u 1\u 68\u 0 C:\

我从研究中发现,我可能缺少一个include/lib目录,或者某个文件是在另一个版本上编译的,但是我如何才能找到丢失的或编译不正确的文件呢

我正在使用Windows 10、Visual Studio 2017、Python 3.6和Boost 1.68。Nvidia库位于C:\USDP3中

包括:C:\USDP3\包括C:\Program Files\boost\u 1\u 68\u 0

库:C:\USDP3\lib C:\Program Files\boost\u 1\u 68\u 0 C:\USDP3\libs

示例代码:

#include "pch.h"
#define NOMINMAX
#define TBB_USE_ASSERT 0
#define TBB_USE_THREADING_TOOLS 0
#include "pxr/pxr.h"
#include "pxr/usd/usd/stage.h"
#include <iostream>

PXR_NAMESPACE_USING_DIRECTIVE

int main(int argc, char* argv[])
{
    //Create Stage
    UsdStage::CreateNew("Test.usda");
    std::cout << "Hello World!\n";
}
#包括“pch.h”
#定义NOMINMAX
#定义TBB\u使用\u断言0
#定义TBB_使用线程工具0
#包括“pxr/pxr.h”
#包括“pxr/usd/usd/stage.h”
#包括
PXR_名称空间_使用_指令
int main(int argc,char*argv[])
{
//创造舞台
UsdStage::CreateNew(“Test.usda”);
std::cout test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)private:静态字符**pxrInternal\u v0\u 19\uuu pxreresered\uxreresered\uxreed::Sdf\u池::\u regionStarts”(\uu imp\uu?\u regionStarts@$Sdf_Pool@USdf_PathPropTag@pxrInternal_v0_19__pxreserved_@@@0BI@$07$0EAAA@@pxrInternal_v0_19_pxreserved_@@@0PAPEADA)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)private:\uu cdecl pxrInternal\u v0\u 19\uuuuuupxreresered\uuu::Sdf\u PrimPathNode::~Sdf\u PrimPathNode(void)”(\uu imp\uu1sdf)_PrimPathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)private:\uu cdecl pxrInternal\u v0\u 19\uuuuuupxreresered\uuuu::Sdf\u MapperArgPathNode::~Sdf\u MapperArgPathNode(void)”(\uu imp\u1sdf)_MapperArgPathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)private:\uu cdecl pxrInternal\u v0\u 19\uuuuuuuupxreresered\uuuu::Sdf\u ExpressionPathNode::~Sdf\u ExpressionPathNode(void)”(\uu imp\u1sdf)_ExpressionPathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)public:static void\uuu cdecl pxrInternal\uv0\u19\uuuuuupxrereserved\uuUf::Sdf\u PrimPartPathNode::operator delete(void*)”(\uuuu imp\uu3sdf)_PrimPartPathNode@pxrInternal_v0_19__pxrReserved__@@SAXPEAX@Z)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)private:\uu cdecl pxrInternal\u v0\u 19\uuuuupxreserved\:Sdf\u PrimPropertyPathNode::~Sdf\u PrimPropertyPathNode(void)”(\uu imp\u1sdf)_PrimPropertyPathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)private:\uuuu cdecl pxrInternal\uv0\u19\uuuuupxreresered\uuuUf::Sdf\u TargetPathNode::~Sdf\u TargetPathNode(void)”(\uU imp\uU1sdf)_TargetPathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)public:静态无效\uuuu cdecl pxrInternal\uv0\u19\uuuuuupxrereserved::Sdf\u PropPartPathNode::operator delete(void*)”(\uu imp\uu3sdf)_PropPartPathNode@pxrInternal_v0_19__pxrReserved__@@SAXPEAX@Z)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)public:static bool\uuuu cdecl pxrInternal\uv0\u19\uuuuuuuuupxreresered\uuuuuu::Tf\uRefptr\uUniqueChangedCounter::\uRemoverEF(类pxrenternal\uv0\u19\uuuuuupxreresered\uuu::TfRefBase const*)”(uu_uimp_u)_RemoveRef@Tf_RefPtr_UniqueChangedCounter@PXR内部的\u v0\u 19\uuuuuPXR已恢复\uuuuuu@@SA_NPEBVTfRefBase@2@@Z)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)private:\uu cdecl pxrInternal\u v0\u 19\uuuuuupxreresered\uuuuu::Sdf\u RelationalAttributePathNode:~Sdf\u RelationalAttributePathNode(void)”(\uu imp\u1sdf)_RelationalAttributePathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)private:\uu cdecl pxrInternal\u v0\u 19\uuuuuupxreresered\uuuuu::Sdf\u映射路径节点::~Sdf\u映射路径节点(void)”(\uu imp\uu1sdf)_MapperPathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1> test1.obj:错误LNK2001:未解析的外部符号“\u declspec(dllimport)protected:void\u cdecl pxrInternal\u v0\u 19\uuuuuuuupxreresered\uuuuu::Sdf\u路径节点::\u RemovePathTokenFromTable(void)const”(\uuu imp\u0_RemovePathTokenFromTable@Sdf_PathNode@PXR内部(v0_19_uuuupxrereserved_uuuz@@IEBAXXZ)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)public:静态类pxrInternal\u v0\u 19\u pxreresered\uuuuuu::TfRefPtr\uuuu cdecl pxrInternal\u v0\u 19\uxreresered\uuuuuu::UsdStage::CreateNew(类std::基本字符串常量&,枚举pxrInternal\u v0\u 19\uxreresereed::UsdStage::LoadSet)”(uu_uimp_u)?CreateNew@UsdStage@pxrInternal\u v0\u 19\uuuuuupxrereserved\uuuux@@SA?AV$TfRefPtr@VUsdStage@PXR内部的阀门v0\U 19\U PXR__@@@2@AEBV?$basic_string@DU?$char_traits@D@性病病毒$allocator@D@2@@std@@W4InitialLoadSet@12@@Z)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)private:\uu cdecl pxrInternal\u v0\u 19\uuuuupxreserved\uuuuu::Sdf\u primVariantSelectNode::~Sdf\u primVariantSelectNode(void)”(\uu imp\u1sdf)_PrimVariantSelectionNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1> test1.obj:错误LNK2001:未解析的外部符号“\uu declspec(dllimport)private:静态字符**pxrInternal\u v0\u 19\uuuuuuuupxreresered\uuuu::Sdf\u池::\u regionStarts”(\uu imp\uu?\u regionStarts@$Sdf_Pool@USdf_PathPrimTag@pxrInternal_v0_19__pxreserved_@$0BI@$07$0EAAA@@pxrInternal_v0_19_@pxreserved_@0PAPEADA)]

您缺少指向dll导入库的链接。这是有道理的,但我无法确定缺少哪个dll。我在包中找到的每个库都位于我包含的路径中。此处的错误消息中是否有任何内容可以帮助我找到缺少的文件?此项目中有多少.dll文件?这不是问题缺少
dll
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: static char * * pxrInternal_v0_19__pxrReserved__::Sdf_Pool<struct pxrInternal_v0_19__pxrReserved__::Sdf_PathPropTag,24,8,16384>::_regionStarts" (__imp_?_regionStarts@?$Sdf_Pool@USdf_PathPropTag@pxrInternal_v0_19__pxrReserved__@@$0BI@$07$0EAAA@@pxrInternal_v0_19__pxrReserved__@@0PAPEADA)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl pxrInternal_v0_19__pxrReserved__::Sdf_PrimPathNode::~Sdf_PrimPathNode(void)" (__imp_??1Sdf_PrimPathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl pxrInternal_v0_19__pxrReserved__::Sdf_MapperArgPathNode::~Sdf_MapperArgPathNode(void)" (__imp_??1Sdf_MapperArgPathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl pxrInternal_v0_19__pxrReserved__::Sdf_ExpressionPathNode::~Sdf_ExpressionPathNode(void)" (__imp_??1Sdf_ExpressionPathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl pxrInternal_v0_19__pxrReserved__::Sdf_PrimPartPathNode::operator delete(void *)" (__imp_??3Sdf_PrimPartPathNode@pxrInternal_v0_19__pxrReserved__@@SAXPEAX@Z)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl pxrInternal_v0_19__pxrReserved__::Sdf_PrimPropertyPathNode::~Sdf_PrimPropertyPathNode(void)" (__imp_??1Sdf_PrimPropertyPathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl pxrInternal_v0_19__pxrReserved__::Sdf_TargetPathNode::~Sdf_TargetPathNode(void)" (__imp_??1Sdf_TargetPathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl pxrInternal_v0_19__pxrReserved__::Sdf_PropPartPathNode::operator delete(void *)" (__imp_??3Sdf_PropPartPathNode@pxrInternal_v0_19__pxrReserved__@@SAXPEAX@Z)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl pxrInternal_v0_19__pxrReserved__::Tf_RefPtr_UniqueChangedCounter::_RemoveRef(class pxrInternal_v0_19__pxrReserved__::TfRefBase const *)" (__imp_?_RemoveRef@Tf_RefPtr_UniqueChangedCounter@pxrInternal_v0_19__pxrReserved__@@SA_NPEBVTfRefBase@2@@Z)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl pxrInternal_v0_19__pxrReserved__::Sdf_RelationalAttributePathNode::~Sdf_RelationalAttributePathNode(void)" (__imp_??1Sdf_RelationalAttributePathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl pxrInternal_v0_19__pxrReserved__::Sdf_MapperPathNode::~Sdf_MapperPathNode(void)" (__imp_??1Sdf_MapperPathNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: void __cdecl pxrInternal_v0_19__pxrReserved__::Sdf_PathNode::_RemovePathTokenFromTable(void)const " (__imp_?_RemovePathTokenFromTable@Sdf_PathNode@pxrInternal_v0_19__pxrReserved__@@IEBAXXZ)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class pxrInternal_v0_19__pxrReserved__::TfRefPtr<class pxrInternal_v0_19__pxrReserved__::UsdStage> __cdecl pxrInternal_v0_19__pxrReserved__::UsdStage::CreateNew(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum pxrInternal_v0_19__pxrReserved__::UsdStage::InitialLoadSet)" (__imp_?CreateNew@UsdStage@pxrInternal_v0_19__pxrReserved__@@SA?AV?$TfRefPtr@VUsdStage@pxrInternal_v0_19__pxrReserved__@@@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4InitialLoadSet@12@@Z)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl pxrInternal_v0_19__pxrReserved__::Sdf_PrimVariantSelectionNode::~Sdf_PrimVariantSelectionNode(void)" (__imp_??1Sdf_PrimVariantSelectionNode@pxrInternal_v0_19__pxrReserved__@@AEAA@XZ)
1>test1.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: static char * * pxrInternal_v0_19__pxrReserved__::Sdf_Pool<struct pxrInternal_v0_19__pxrReserved__::Sdf_PathPrimTag,24,8,16384>::_regionStarts" (__imp_?_regionStarts@?$Sdf_Pool@USdf_PathPrimTag@pxrInternal_v0_19__pxrReserved__@@$0BI@$07$0EAAA@@pxrInternal_v0_19__pxrReserved__@@0PAPEADA)'