草庐IT

undefined-index

全部标签

c++ - 由于对具有 std::string 的方法的 undefined reference ,链接 webrtc-native 时出错

我正在尝试构建webrtc版本62,使用以下内容1.gitcheckout-bbranch62refs/remotes/branch-heads/622.gngenout_release_62/x64/Debug--args="rtc_include_tests=falsertc_use_h264=falseuse_rtti=trueis_component_build=falseenable_iterator_debugging=falseenable_nacl=falsetarget_os=\"linux\"target_cpu=\"x64\"is_debug=true"3.nin

c++ - 链接到静态库时出现 undefined reference 错误

我正在尝试编译一个依赖于XercesXMLParser的项目.该项目可以毫无困难地针对Windows进行编译,但我在Cygwin中使用g++进行编译时遇到了一些问题。为了使用Xerces,我正在尝试针对静态库libxerces-c.a编译我的代码。但是当我这样做时,我会收到如下所示的错误:/tmp/cc2QGvMh.o:test.cpp:(.text+0x3a):undefinedreferenceto`xercesc_2_8::DOMImplementationRegistry::getDOMImplementation(unsignedshortconst*)'我已经使用ar检查了

c++ - 为什么 boost.geometry.index.rtree 比 superliminal.RTree 慢

我测试了boost.geometry.index.rtree(boost1.59www.boost.org)和superliminal.RTree(http://superliminal.com/sources/sources.htm#C_Code)。令我惊讶的是,superliminal.RTree比boost.geometry.index.rtree更快。环境设置将相同的空间索引数据添加到superliminal.RTree和boost.geometry.index.rtree对象。测试相同的空间索引查询100次并获得消耗的时间。GCC版本是“gccversion4.4.62011

c++ - 奇怪的编译器错误 : "undefined reference to ' main'"

谁能告诉我这是什么意思?/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o:Infunction`_start':(.text+0x18):undefinedreferenceto`main'collect2:ldreturned1exitstatusmake:***[program]Error1我的make文件如下所示:program:main.orender.oscreenwriter.og++-omain.orender.oscreenwriter.o-lSDLmain.o:main.cpprender

c++ - CDT : "Setting up indexer" 期间发生内部错误

我将Eclipse与CDT结合使用来构建C++代码。加载我的工作区后,我收到以下消息:Aninternalerroroccurredduring:"Settingupindexer".这是日志:eclipse.buildId=I20110613-1736java.version=1.6.0_24java.vendor=SunMicrosystemsInc.BootLoaderconstants:OS=linux,ARCH=x86,WS=gtk,NL=en_USCommand-linearguments:-oslinux-wsgtk-archx86!ENTRYorg.eclipse.co

c++ - GLFW undefined reference

我试图在一个项目上使用GLFW,但是当我编译它时,我遇到了很多undefinedreference错误,而其中许多错误都在库文件(libglfw.a)上。我都试过了,编译库并下载它,但没有成功。我正在使用在Windows732位netbeans上运行的MinGW和MSYS。GLFW版本为2.7.3;这些是错误:"/usr/bin/make"-fnbproject/Makefile-Debug.mkQMAKE=SUBPROJECTS=.build-confmake[1]:Enteringdirectory`/c/Users/Raphael/Documents/NetBeansProjec

c++ - C++共享库中基类的 undefined symbol 错误

我使用g++-shared...将以下代码编译为共享库:classFoo{public:Foo(){}virtual~Foo()=0;virtualintBar()=0;};classTestFoo:publicFoo{public:intBar(){return0;}};extern"C"{Foo*foo;voidinit(){//Runtimeerror:undefinedsymbol:_ZN3FooD2Evfoo=newTestFoo();//causeserror}voidcleanup(){delete(foo);}voidbar(){foo->Bar();}}重点是将我的类

c++ - 使用 GLFW3 编译,链接器错误 'undefined reference'

有一个使用GLFW3的最小示例:#includeintmain(intargc,constchar*argv[]){glfwInit();}...导致大量链接器错误:(小摘录)Undefinedsymbolsforarchitecturex86_64:"_CFArrayAppendValue",referencedfrom:_addJoystickElementinlibglfw3.a(cocoa_joystick.m.o)"_CFArrayApplyFunction",referencedfrom:__glfwInitJoysticksinlibglfw3.a(cocoa_joyst

c++ - 什么是 undefined reference /未解析的外部符号错误,我该如何解决?

什么是undefinedreference/未解析的外部符号错误?常见原因是什么以及如何修复/预防它们? 最佳答案 编译C++程序需要几个步骤,如2.2(creditstoKeithThompsonforthereference)所指定的那样:Theprecedenceamongthesyntaxrulesoftranslationisspecifiedbythefollowingphases[seefootnote].Physicalsourcefilecharactersaremapped,inanimplementation-

c++ - 编译器/链接器错误 "undefined reference"

您好,我刚开始学习C++。我买了这本大C++forDummies书,并且一直在阅读它。到目前为止真的很有趣,但现在我被困住了。我一直在谷歌搜索这个问题,但无济于事。我正在使用我正在使用带有GNUGCC的代码块10.05。我不断收到一条错误消息:Infunction'main':undefinedreferenceto'SafeCracker(int)'代码并不复杂。我是新来的,非常沮丧。我不想跳过这一部分;我想知道发生了什么事。主要内容:#include#include"safestuff.h"usingnamespacestd;intmain(){cout功能:#includeusi