草庐IT

undefined-index

全部标签

c++ - Windows下使用MinGW-w64编译Qt5 hello world.cpp文件报 "undefined reference"错误

当我运行make编译由cmake生成的Makefile以编译Qt5应用程序的helloworld示例时,编译失败并出现以下错误:为什么编译失败?(我正在尝试做的事情的详细信息)我在Windows10下,使用从Qtofficialwebsite下载的Qt5.5二进制文件,mingw-w64gcc和g++随WinBuilds一起提供,以及从officialwebsite下载的cmakev3.6并使用Windowswin64-x64安装程序安装。我正在尝试编译Qt5'sofficialwiki中提供的以下helloworld测试文件:#includeintmain(intargc,char*

windows - 对 'ff_put_pixels_clamped_mmx' 的 undefined reference

我有一个windows8.164位,inteli7。我正在尝试从源代码构建ffmpeg动态库(dll),版本3.2.4为此,我克隆了ffmpeggit存储库,并检查了标签n3.2.4我在我的windows8.1中安装了mingw64,打开了一个mingw64shell。我在构建之前运行了“configure”命令,使用了以下开关:./configure--prefix=ffmpeg/--disable-gpl--disable-nonfree--enable-shared--disable-static--disable-doc--disable-yasm--disable-debug

windows - "gem install"卡住在 "updating Gem source index for [..]"

几个星期以来,我根本无法在Windows中运行geminstall。它坚持这条线:C:\Windows\System32>geminstallrails--version2.1.2BulkupdatingGemsourceindexfor:http://gems.rubyforge.org/有什么想法吗? 最佳答案 我在gem版本 关于windows-"geminstall"卡住在"updatingGemsourceindexfor[..]",我们在StackOverflow上找到一个类

ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 1

ValueError:alltheinputarraysmusthavesamenumberofdimensions,butthearrayatindex0has1dimension(s)andthearrayatindex1has2dimension(s)目录ValueError:alltheinputarraysmusthavesamenumberofdimensions,butthearrayatindex0has1dimension(s)andthearrayatindex1has2dimension(s)问题:解决:完整错误:问题:importnumpyasnp#createa1da

C++ 图形用户界面教程 : undefined reference to TextOut

因此,在搜索了一些Win32GUI教程之后(我认为有关制作GUI的教程可能会让我更积极地制作C++应用程序,因此通常更擅长使用C++进行编程),我遇到了一个rohitab教程。我已经找到了两个部分。第1部分工作正常,我现在正在处理Part2,但是,我在Code::Blocks中遇到了这个错误:C:\Users\John\Documents\WindowsGUIs\first_gui.cpp||在函数'C:\Users\John\Documents\WindowsGUIs\first_gui.o:first_gui.cpp:(.text+0x281)||对“_TextOutA@20”的u

c++ - 对 _imp__CryptProtectData@28 的 undefined reference

我正在尝试使用windows.h和wincrypt.h库构建一个简单的应用程序以加密一些字符串。当我调用函数CryptProtectData(&input,NULL,NULL,NULL,NULL,0,&output);时出现错误:error:undefinedreferenceto`_imp__CryptProtectData@28'我在网上搜索了很多,但没有找到多少。我还意识到Chromium浏览器使用与我的类似的代码来加密和解密其登录,我并没有做不同的事情。我正在使用QtCreatorIDE来编译我的代码。我的一些代码:std::stringplaintext="Someplain

c - 使用 mingw 对 imp 的 undefined reference

我遇到的问题是在构建项目时出现的“对'_imp__...'的undefinedreference”错误。我使用的是Windows7、MinGW、Eclipse以及.lib和.dll文件,这些文件不是我制作的,而是我直接从向我出售其产品的公司那里获取的。我用-l命令链接HRDL.lib文件,我在同一目录中有PicoHRDL.dll。找到了lib文件(我确定这一点),但出现错误。我已将完整路径包含在-L命令中。我已经包含了函数声明的头文件,我得到了undefinedreference,但错误仍然存​​在。我已经联系了Eclipse支持和Picotech支持(上述公司),但他们直到现在都无法

在 Win7 上使用 IE11 的 Javascript 运行时错误 : Unable to set property 'disabled' of undefined or null reference

我目前正在处理一些IE11兼容性问题。该代码在兼容模式下功能齐全,因为它之前针对IE5最后进行了优化。受影响的代码如下:/**Thisfunctionsetsthespecifiedbuttonstateintherepairprocessingform*/functionsetOperationButton(buttonId,disabledState,sourceImage,styleCursor){varbuttonElement=document.frmRepairProcessing.elements[buttonId];varsourceRoot=''+'/zimages/

windows - 对 IID_ImageList 的 undefined reference

我使用Qt5.4和MinGW。我读到应该链接uuid库以避免此错误。在我的.pro文件中,我添加了LIBS+=libuuidlibole32liboleaut32但是,即使我有这一行,我还是会收到undefinedreference错误D:\Dev\HinstStart\FileListData.cpp:74:ошибка:undefinedreferenceto`IID_IImageList'P.S:如果我添加一些不存在的库,比如LIBS+=libuuidlibole32liboleaut32liblol然后我收到“找不到-llol”错误。这就是我如何知道我的LIBS语句没有被忽略

c++ - 智能感知 : identifier "[blank]" is undefined for each of the variables used in my function

我正在使用VisualStudio。当我尝试编译我的代码时,对于“hexISOS”函数中使用的每个变量,我收到一条错误消息,提示21“IntelliSense:标识符“[blank]”未定义”。我稍后在代码中定义了这些变量,想知道是否有人可以告诉我哪里出了问题。我的代码是这样的:#include#includeusingnamespacestd;inthexISOS(doubleAX,AY,BX,BY,CX,CY,DX,DY){longdoublesol1,sol2;boolans;sol1=sqrt(pow((AX-CX),2)+pow((AY-CY),2));sol2=sqrt(p