草庐IT

missing-symbols

全部标签

c++ - Boost 单元测试框架 dll 导出的 std::basic_ostringstream 导致 "already defined symbol"-error

我使用VisualStudio2012。我的设置是这样的:some.lib链接到some.exesome.lib链接到some_test.exe我在构建some_test.exe时使用BOOST_TEST_DYN_LINK。对于some.lib和test.exe使用BOOST_ALL_DYN_LINK结果是一样的。我已经使用/MD(多线程DLL)构建了some_test.exe、some.exe和some.lib。我已经使用runtime-link=shared构建了boost库。所有这些都是由VC11(VisualStudio2012)构建和链接的。问题是,在some.lib中,我想

Android NDK 异常失败 : dlopen failed: cannot locate symbol "_ZN7Tangram11setPositionEdd" referenced by "libtangram.so"

我正在尝试运行Library的演示应用程序其中集成了androidndk。我已经导入了thisAndroidStudio中的代码,还下载了ndk并将其与项目链接。代码编译并成功构建。它给出了异常崩溃“初始化时抛出异常ljavalangunsatisfiedlinkerror”“失败:dlopen失败:无法定位符号”_ZN7Tangram11setPositionEdd“被”libtangram.so“引用......”应用程序.mk:APP_STL:=c++_sharedAPP_CPPFLAGS:=-frtti-fexceptionsAPP_ABI:=armeabiarmeabi-v7

c++ - 尝试使用 dlopen 加载库时 undefined symbol

我正在尝试加载一个共享库(插件),我在LinuxARM平台下使用dlopen提供(闭源)。我正在尝试以这种方式加载:void*handle=dlopen(/,RTLD_NOW);结果是失败并显示此消息:Failedtoload/:undefinedsymbol:.我试图用nm查看库内部,但似乎库被剥离了,找不到任何符号。我也尝试使用readelf-s,事实上,我得到了这个结果:12663:000000000NOTYPEGLOBALDEFAULTUND通过阅读,我了解到readelf-s返回所有符号,包括它引用的库中定义的那些符号。this的答案问题对我来说并不完全清楚:这是一个应该在库

c++ - "...redeclared as different kind of symbol"?

#include#includedoubleintegrateF(doublelow,doublehigh){doublelow=0;doublehigh=20;doubledelta_x=0;doublex,ans;doubles=1/2*exp((-x*x)/2);for(x=low;x它说low和high被“重新声明为不同类型的符号”,我不知道那是什么意思。基本上,我在这里所做的一切(阅读:尝试)是从低(我设置为0)到高(20)积分以找到黎曼和。for循环看起来也有点迷幻……我迷路了。编辑:#include#includedoubleintegrateF(doublelow,do

c++ - 错误 LNK2019 : unresolved external symbol

当我想编译我的opengl代码时,出现以下错误:Error1errorLNK2019:unresolvedexternalsymbol__imp__glewInit@0Error2errorLNK2019:unresolvedexternalsymbol__imp__glewGetErrorString@4Error3errorLNK2001:unresolvedexternalsymbol__imp____glewAttachShaderError4errorLNK2001:unresolvedexternalsymbol__imp____glewCompileShaderError

c++ - 如何摆脱这个错误 : "MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup"

我正在帮助一位friend学习C++,但老实说,我们需要很大的帮助。为什么我们总是得到这个错误:“MSVCRTD.lib(crtexe.obj):errorLNK2019:unresolvedexternal符号main在函数__tmainCRTStartup中引用”代码如下://MariaDelgado(1013725)-Coursework2-ProgramConductingtimbercomponentstructuraldesign#include#include#include#include#includeusingnamespacestd;//VariablesforS

c++ - MacPorts GCC 4.7 OS-X Mavericks 10.9 C11 中的 undefined symbol “toupper”

编辑2:下面是一个程序示例:#include#includeintmain(){inti=0;charstr[]="TestString.\n";charc;while(str[i]){c=str[i];putchar(toupper(c));i++;}return0;}1)clang:clang++-std=c++0x-stdlib=libc++-lc++main.cc-omain编译正常。2)g++-mp-4.8-std=c++11main.cc-omain给出:Undefinedsymbolsforarchitecturex86_64:"toupper(int)",referen

c++ - eclipse 火星 : Symbol 'unique_ptr' could not be resolved

使用EclipseMars,我遇到了Symbol'unique_ptr'couldnotberesolved错误。我尝试将-std=c++11添加到CDTGCC内置编译器设置,但这没有帮助。当我重新打开Eclipse时错误消失了,但是如果我修改代码,错误又回来了。一个简单的代码示例:std::unique_ptrp1; 最佳答案 在EclipseMars中打开Window>Preferences>C/C++>Build>Settings>Discovery>CDTGCCBuild-inCompilerSettings将-std=c+

android - 如何解决 : "error: cannot find symbol class ..." after converting Java class to Kotlin?

我正在尝试从Kotlin开始,将我项目的一些Java类转换为Kotlin,并创建一个混合的Java/Kotlin项目。为了配置环境,我做了以下操作:已下载最新版Kotlin插件(1.0.2);在顶层gradle.plugin我添加了:classpath"org.jetbrains.kotlin:kotlin-android-extensions:1.0.2"在依赖项部分;在我的模块的gradle插件中,我在依赖项部分添加了:compile"org.jetbrains.kotlin:kotlin-stdlib:1.0.2";我选择了我想转换为kotlin的POJO类,从菜单Code->C

android - 如何解决 : "error: cannot find symbol class ..." after converting Java class to Kotlin?

我正在尝试从Kotlin开始,将我项目的一些Java类转换为Kotlin,并创建一个混合的Java/Kotlin项目。为了配置环境,我做了以下操作:已下载最新版Kotlin插件(1.0.2);在顶层gradle.plugin我添加了:classpath"org.jetbrains.kotlin:kotlin-android-extensions:1.0.2"在依赖项部分;在我的模块的gradle插件中,我在依赖项部分添加了:compile"org.jetbrains.kotlin:kotlin-stdlib:1.0.2";我选择了我想转换为kotlin的POJO类,从菜单Code->C