gnu

[zz]64bit Linux下error: gnu/stubs-32.h: No such file or directory错误解决办法

只谈情不闲聊 提交于 2020-01-09 23:43:14
A. You need to install the glibc-devel package. It contains the object files necessary for developing programs which use the standard C libraries (which are used by nearly all programs). If you are developing programs which will use the standard C libraries, your system needs to have these standard object files available in order to create the executables. Install glibc-devel if you are going to develop programs which will use the standard C libraries. # apt-get install g++-multilib or sudo apt-get install libc6-dev-i386 来源: https://www.cnblogs.com/zhangzhang/archive/2012/03/16/2402290.html

centos gnu/stubs-32.h:没有那个文件或目录

*爱你&永不变心* 提交于 2020-01-09 23:42:04
在Centos64位机器上,使用“gcc -m32”编译32位程序时,提示如下错误: 在包含自 /usr/include/features.h:385 的文件中, 从 /usr/include/stdio.h:28, 从 lex.yy.cpp:20: /usr/include/gnu/stubs.h:7:27: 错误:gnu/stubs-32.h:没有那个文件或目录 make: *** [lex.yy.32.g.o] Error 1 You need to install the glibc-devel package. It contains the object files necessary for developing programs which use the standard C libraries (which are used by nearly all programs). If you are developing programs which will use the standard C libraries, your system needs to have these standard object files available in order to create the executables. 根据如上对错误原因的描述,我们只需按照对应系统类型

In what order prerequisites will be made by the GNU make?

房东的猫 提交于 2020-01-09 19:40:33
问题 Assuming we have the rule: a: b c d e and b , c , d and e are independent of each other. Is the order of making b , c , d , e defined? It seems that generally they will be made in order b , c , d , e , but may it sometimes happen, that the order will be different? 回答1: Sure, if I use make -j a , they might all get built at the same time (depending on whether b , c , d , or e in turn have other/interrelated dependencies). 回答2: No, the order is not defined. That is the whole point in using

Java Compiler Options to produce .exe files

↘锁芯ラ 提交于 2020-01-09 09:40:12
问题 What compiler (I'm using gcj 4.x) options should I use to generate an "exe" file for my java application to run in windows? 回答1: To compile the Java program MyJavaProg.java, type: gcj -c -g -O MyJavaProg.java To link it, use the command: gcj --main=MyJavaProg -o MyJavaProg MyJavaProg.o and then linking to create an executable mycxxprog.exe g++ -o mycxxprog.exe mycxxprog.o 来源: https://stackoverflow.com/questions/53845/java-compiler-options-to-produce-exe-files

Linux configure 参数解释

故事扮演 提交于 2020-01-08 07:25:30
Linux环境下的软件安装,并不是一件容易的事情;如果通过源代码编译后在安装,当然事情就更为复杂一些;现在安装各种软件的教程都非常普遍;但万变不离其中,对基础知识的扎实掌握,安装各种软件的问题就迎刃而解了。Configure脚本配置工具就是基础之一,它是autoconf的工具的基本应用。      与一些技巧相比,Configure显得基础一些,当然使用和学习起来就显得枯燥乏味一些,当然要成为高手,对基础的熟悉不能超越哦。      为此我转载了一篇关于Configure选项配置的详细介绍。供大家参考   'configure'脚本有大量的命令行选项.对不同的软件包来说,这些选项可能会有变化,但是许多基本的选项是不会改变的.带上'--help'选项执行'configure'脚本可以看到可用的所有选项.尽管许多选项是很少用到的,但是当你为了特殊的需求而configure一个包时,知道他们的存在是很有益处的.下面对每一个选项进行简略的介绍: --cache-file=FILE   'configure'会在你的系统上测试存在的特性(或者bug!).为了加速随后进行的配置,测试的结果会存储在一个cache file里.当configure一个每个子树里都有'configure'脚本的复杂的源码树时,一个很好的cache file的存在会有很大帮助. --help   输出帮助信息

Linux简介

别等时光非礼了梦想. 提交于 2020-01-07 22:55:42
目录 1. Linux基本常识 1.1 Linux诞生的故事 1.2 Linux和Unix的关系 1.3 Linux的读音 1.4 Linux的吉祥物tux 1.5 Linux的主要发行版 1.6 Linux和Windows的比较 2.为啥要学Linux 2.1 Linux运维工程师 2.2 linux嵌入式开发工程师 2.3 项目维护及部署 3.怎么学Linux 1. Linux基本常识 1.1 Linux诞生的故事 Unix篇: 为了进一步强化大型主机的功能,让主机的资源可以提供更多的使用者来利用,所以在1964年, 由AT&A公司的贝尔实验室(Bell)、麻省理工学院(MIT)及奇异公司(GE美国通用电气公司)共同发起了Multics(多路信息计算系统)的计划, Multics计划的目的是让大型主机可以同时支持300个以上的终端机连线使用。 贝尔实验室有个叫Ken Thompson的人也参与了这个项目,并在Multics操作系统上开发了一款叫做"星际旅行"的游戏.不过,由于Multics计划的工作进度太慢,资金也短缺.所以1969年,贝尔实验室退出了Multics计划. 那年的某一天,他的妻子带着孩子要回娘家探亲一个月,Ken Thompson为了打发自己无聊的时光,同时也为了可以继续玩他的"星际旅行".于是乎,他就决定写一个操作系统来移植自己的游戏. 于此,Unix的雏形

GNU buffer overflow using malloc

这一生的挚爱 提交于 2020-01-07 09:54:17
问题 I am running in a loop the following function: int* rpermute(int n) { int* a = malloc(n * sizeof(int)); int k; for (k = 0; k < n; k++) { a[k] = k; } for (k = n - 1; k > 0; k--) { int j = rand() % (k + 1); int temp = a[j]; a[j] = a[k]; a[k] = temp; } return a; } If I set a new int variable in my code every variable is changing, I assume it is a buffer overflow problem. Running the valgrind i get the following: ==4459== 73,036 bytes in 19 blocks are definitely lost in loss record 1 of 1 ==4459=

GNU Assembler, dot notation (current address)

房东的猫 提交于 2020-01-07 09:22:32
问题 I would like to ask why it is ok to write something like this: .section .data hello: .ascii "Hello World\n" .equ lenhello, . - hello but it is not right when i type: .section .data hello: .ascii "Hello World\n" lenhello: .long . - hello After calling sys_write function first code works fine, but the second one apart from writing hello world produces a lot of trash 回答1: You have forgotten to show how you use the value. If you do movl lenhello, %edx it should work fine. I assume you did movl

GNU Assembler, dot notation (current address)

拟墨画扇 提交于 2020-01-07 09:21:43
问题 I would like to ask why it is ok to write something like this: .section .data hello: .ascii "Hello World\n" .equ lenhello, . - hello but it is not right when i type: .section .data hello: .ascii "Hello World\n" lenhello: .long . - hello After calling sys_write function first code works fine, but the second one apart from writing hello world produces a lot of trash 回答1: You have forgotten to show how you use the value. If you do movl lenhello, %edx it should work fine. I assume you did movl

如何以较少(GNU)显示行号?

ぐ巨炮叔叔 提交于 2020-01-07 04:03:56
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 有人知道在左栏中减少显示行数的命令吗? #1楼 您可以设置环境变量以始终将这些选项应用于所有less'd文件: export LESS='-RS#3NM~g' #2楼 命令行标志 -N 或 --LINE-NUMBERS 使行号显示在显示中每行的开头。 您还可以通过键入 -N<return> 来切换行号而不必减少行数。 它可以用这种方式切换任何较少的命令行选项。 #3楼 如果您点击=并且预计会看到行号,但只看到字节数,则会关闭行号。 按-n打开它们,并确保 $LESS 不包含'n'。 默认情况下关闭行号(例如,设置 LESS=n )可加快非常大的文件中的搜索速度。 如果你经常搜索大文件但通常不关心你在哪一行,那么很方便。 我通常使用 LESS=RSXin 运行(启用转义码,长线切断,退出时不清除屏幕,忽略所有小写搜索的情况,默认情况下不计算行数)并且仅使用内部的-n或-S根据需要减少。 #4楼 你也可以按 = 而 less 打开只显示(在屏幕底部)有关当前屏幕的信息,包括行号,格式如下: myfile.txt lines 20530-20585/1816468 byte 1098945/116097872 1% (press RETURN) 所以这里例如,屏幕当前显示行 20530-20585 ,并且文件总共有