- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
尽管遵循了 README.md 中提供的说明,但我最近一直在努力构建 pdcurses36 的源代码。无论出于何种原因,我总是会遇到同样的错误,因为“目标 'pdcdisp.o' 的配方失败”。这是错误提示:
C:\Program Files (x86)\CodeBlocks\pdcurs36\wincon>mingw32-make -f makefile
gcc -c -O2 -Wall -I.. ../wincon/pdcdisp.c
../wincon/pdcdisp.c: In function '_new_packet':
../wincon/pdcdisp.c:211:28: error: 'COMMON_LVB_UNDERSCORE' undeclared (first use in this function)
mapped_attr |= COMMON_LVB_UNDERSCORE;
^
../wincon/pdcdisp.c:211:28: note: each undeclared identifier is reported only once for each function it appears in
../wincon/pdcdisp.c:213:28: error: 'COMMON_LVB_GRID_LVERTICAL' undeclared (first use in this function)
mapped_attr |= COMMON_LVB_GRID_LVERTICAL;
^
../wincon/pdcdisp.c:215:28: error: 'COMMON_LVB_GRID_RVERTICAL' undeclared (first use in this function)
mapped_attr |= COMMON_LVB_GRID_RVERTICAL;
^
makefile:94: recipe for target 'pdcdisp.o' failed
mingw32-make: *** [pdcdisp.o] Error 1
这些是我向命令提示符发出的命令:
set PDCURSES_SRCDIR = C:\...\pdcurs36
path = C:\...\CodeBlocks\MinGW\bin
cd C:\...\pdcurs36\wincon
mingw32-make -f Makefile
我目前正在使用 TDM GCC 5.1.0(代码块 17.12 的二进制构建提供的)和 pdcurs36.zip from the repository provided from the official site .我的操作系统是 Windows 10。
任何帮助将不胜感激。
编辑我的意思是 codeblocks 版本 17.12
最佳答案
我没有足够的代表来发表评论,但您可能对 this PDCurses commit 感兴趣到 pdcdisp.c.
warning on an old compiler; replaced COMMON_LVB_* with numbers to appease some old compilers. After Simon Sobisch.
看起来 GCC 5.1.0 只是没有定义这些宏,所以他们硬编码了这些值:
0x8000; /* COMMON_LVB_UNDERSCORE */
0x0800; /* COMMON_LVB_GRID_LVERTICAL */
0x1000; /* COMMON_LVB_GRID_RVERTICAL */
关于c++ - 使用 TDM GCC 5.1.0 编译 PDCurses36 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51143902/
我已经在很多网站上搜索过这个,但都失败了。但是TDM在“TDM-gcc”中代表什么?当我想选择 gcc 作为编译器时,它让我感到困惑。那么,有什么区别呢?我应该选择 TDM 还是非 TDM?还是 TD
我已经在很多网站上搜索过这个,但都失败了。但是TDM在“TDM-gcc”中代表什么?当我想选择 gcc 作为编译器时,它让我感到困惑。那么,有什么区别呢?我应该选择 TDM 还是非 TDM?还是 TD
这就是我得到 tdm 矩阵的方法: doc.vec <- VectorSource(data$text) doc.corpus <- Corpus(doc.vec) tdm <
我的客户正在发送在 National Instruments Diadem 中捕获的 TDM/TDX 文件,我没有收到。我正在寻找一种方法将文件转换为 .CSV、XLS 或 .MAT 文件以便在 Ma
#include #include #include using namespace std; int main() { uint16_t i = 0; cout << USHR
我有文本语料库。 mytextdata = read.csv(path to texts.csv) Mystopwords=read.csv(path to mystopwords.txt) 如何过滤
正在学习基本的排序技术,被我自己实现的基本插入排序算法困住了。该代码手工运行良好,但在使用 TDM-GCC 编译器的 Dev C++ 上显示错误输出: int B[6] = {7, 44, 6, 12
我一直在使用 MinGW32 编译库并静态链接到我的程序。 我想知道如果我将编译器更改为 TDM-GCC,我的旧库是否会链接到使用 TDM 编译的新程序?或者我应该用新的编译器编译所有东西吗? 谢谢
我需要在我的 C++ 作业中使用 unique_ptr。 我下载了一个新的编译器 TDM-GCC-4.7.1,并安装了它。然后我把GNU GCC Compiler的目录改成option里的安装路径:S
我最近开始使用netbeans 进行c 语言编程。我通常使用代码块。为此,我安装了 tdm-gcc 和 msys。 程序已成功编译。但在执行时,它显示构建失败(退出值2)。 "/C/msys/
尝试让 TDM-GCC(4.7.1) 在 XP SP3 上运行 - 我现在只需要一个 c++ 32 位版本。似乎 windres 的格式不正确,我的 .rc 文件构建失败: x86_64-w64-mi
编译器:TDM-GCC-5.1.0(SJLJ 展开) 我在玩 declval 时发现我无法在它应该工作的上下文中使用它:作为 typeid() 的参数。 在以下代码中,我将 declval 用于其主要
这个问题在这里已经有了答案: GCC unable to compile Go Program (1 个回答) 关闭 5 年前。 我正在尝试使用 github.com/hajimehoshi/ebi
这是在 Windows 7 上运行时 Dev-C++ 附带的编译器,“TDM-GCC 4.9.2 64 位版本”。同样的事情也发生在 64 位版本上。 “Compiler Options”中的“调用链
我试图理解 Kernighan 和 Ritchie 的书“The C Programming Language, 2nd edition”中显示的存储分配器程序。我想我理解得最多,但是当我在 Wind
我使用 tdm gcc 编译器编译我的 winapi 项目,当我测试一些简单的 mandelbrot sse 代码 9 时可能与其他项目一样,但我没有测试所有内容),5.1 生成更大的可执行文件 33
我需要在 Win64 上为 Win64(无交叉编译)构建一个简单的非商业工具(处理 Windows GDI API)。 MinGW 似乎是我的最佳选择。 我以前用过32位版本,至于64位,你能告诉我以
我是这方面的新手,昨天我安装了 Win 8.1 x64,所以我想使用最合适的程序在 C/C++ 中完成我的任务。谢谢 最佳答案 MinGW 仅支持32 位 二进制文件,TDM 支持 32 和 64 位
如何在“void”编译器之前修复 [Error] expected primary-expression:此代码上的 TDM-GCC 4.6.1 64 位 #include #include #i
尽管遵循了 README.md 中提供的说明,但我最近一直在努力构建 pdcurses36 的源代码。无论出于何种原因,我总是会遇到同样的错误,因为“目标 'pdcdisp.o' 的配方失败”。这是错
我是一名优秀的程序员,十分优秀!