Questions tagged [gnu]

This tag is for programming questions related to software and tools provided by the GNU ("GNU's Not Unix") project.

The GNU Project is a free software, mass collaboration project, announced on September 27, 1983, by Richard Stallman at MIT. It initiated GNU operating system development in 1984. The founding goal of the project was, in the words of its initial announcement, to develop "a sufficient body of free software [...] to get along without any software that is not free."

To make this happen, the GNU Project began working on an operating system called GNU ("GNU" is a recursive acronym that stands for "GNU's Not Unix"). This goal of making a free software operating system was achieved in 1992 when the last gap in the GNU system, a kernel, was filled by the third-party Linux kernel being released as Free Software, under version 2 of the GNU GPL.

2807 questions
1
vote
1 answer

GNU Plot: plotting 3D-Data in colored 2D-Plot

I have 3D-Data, and I plot all Data in a 2D-x-y-Plot (like a view in the x-y-plane into the z-direction). The command looks like: "plot 'C:\Data.DAT' matrix nonuniform u 1:3 with lines lc rgb "black" smooth unique" It works fine, and of course all…
Peter
  • 11
  • 2
1
vote
3 answers

codeblocks shows error: This file requires support for the ISO C++ 2011 standard

I want to use poisson_distribution template in my C++ code (included in random header), but cant find a way to compile it without error My codeblocks shows an error This file requires compiler and library support for the \ ISO C++ 2011 standard.…
Akash Chandwani
  • 550
  • 1
  • 9
  • 20
1
vote
2 answers

GNU Find : Get a running counter for the -exec command ( to tag mp3s with running track number )

I want to automatically tag a collection of MP3 to become custom-name VA Albums. Currently, I'm using quite fail-safe commands like this one : find . -name "*.mp3" -exec eyeD3 -A "Indie 2015" -b "Various Artists" {} \; Now, I would like to add a…
user2707001
  • 1,543
  • 12
  • 13
1
vote
1 answer

Linux running on ARDrone is missing /lib/libc.so

I wanted to run an OpenCV project on ARDrone (which is powered by arm7l). So I cross compiled OpenCV for arm processor, moved the .so files to the drone and updated the LD_LIBRARY_PATH. Now running the cross compiled OpenCV project throws the…
Hassan
  • 870
  • 13
  • 25
1
vote
1 answer

Understanding code block from XV6 makefile

I'm trying to understand the following code block from XV6 makefile : ULIB = ulib.o usys.o printf.o umalloc.o _%: %.o $(ULIB) $(LD) $(LDFLAGS) -N -e main -Ttext 0 -o $@ $^ $(OBJDUMP) -S $@ > $*.asm $(OBJDUMP) -t $@ | sed '1,/SYMBOL…
SyndicatorBBB
  • 1,757
  • 2
  • 26
  • 44
1
vote
1 answer

GNU: Accessing a corrupted shared library error

here is something super simple: My code (p1.s): .intel_syntax noprefix .arch i386 .data poruka: .asciz "Zdravo svete!\n" kraj_poruke: .equ duzina_poruke, kraj_poruke - poruka .text .extern write .extern exit .globl _start _start: push…
Slavko Budic
  • 19
  • 1
  • 2
1
vote
1 answer

Parsing string for retrieving date in UNIX and freeBSD

I have a string in following format: YYYY-MM-DD how can i convert it to date on UNIX and freeBSD? I know it is date -d $VAR +'%Y-%m-%d' on GNU and date -jf $VAR +'%Y-%m-%d' on freeBSD But what if my script (in sh, not in bash) have to work on both…
WhoKnows
  • 317
  • 1
  • 12
1
vote
1 answer

Retrieve intermediate files generated by preprocessor

How could I retrieve the intermediate files generated by the preprocessor, using GNU compiler? I typically have Fortran sources that I compile with -x f95-cpp-input option for preprocessing, and I would like to retrieve the result. I tested…
MBR
  • 794
  • 13
  • 34
1
vote
2 answers

GNU make loop variable strange behavior

In my Makefile I am trying to copy a list of files from location1 to location2, then to location2 to location3. I got the following strange behavior: FILES_LIST=dir1/file1 dir2/file2 dir3/file3 ........ mytarget: for file in…
1
vote
1 answer

Makefile process different files in different steps

I have the following makefile using GNU autotools: AUTOMAKE_OPTIONS = subdir-objects bin_PROGRAMS = app app_SOURCES = \ core/main.cpp nodist_app_SOURCES = \ index.cpp \ index.ecpp.js.cpp AM_INCLUDES = -I$(top_srcdir)/src index.cpp:…
user32323
  • 299
  • 1
  • 3
  • 11
1
vote
0 answers

How to use mcheck?

I am trying to understand how heap consistency checking works in GNU C Library. I Refered http://www.gnu.org/software/libc/manual/html_node/Heap-Consistency-Checking.html#Heap-Consistency-Checking Here is a sample program I have written. I expected…
vinodkri
  • 33
  • 4
1
vote
1 answer

Relaxed constraints for mixing explicit and implicit rules in gmake 4.1 ver

Ref: Relaxed constraints for mixing explicit and implicit rules in 4.1 ver Even with gmake 4.1, I'm not able to work with make files having normal and implicit rules. But it works with Given below code snippet: test.c: $ more Makefile test %test:…
1
vote
3 answers

Linux sort: how to sort numerically but leave empty cells to the end

I have this data to sort. The 1st column is the item ID. The 2nd column is the numerical value. Some items do not have a numerical value. 03875334 -4.27 03860156 -7.27 03830332 19594535 7.87 01542392 -5.74 01481815 11.45 04213946 …
Jacky Lee
  • 1,193
  • 3
  • 13
  • 22
1
vote
1 answer

GLPK: Indexing variables with elements of a set

Let's say that I have a set and variables defined this way: set Objectes; var x{i in Objectes}>=0, integer; s.t. rest: x[i in Objectes]>=7; data; set Objectes:= Animals Plantes Persones; end; I have 3 variables, let's say x[Animals], x[Plantes]…
Abrahamlure
  • 123
  • 8
1
vote
1 answer

use macro to define two local variable but have the same address

Code as below: #include"stdio.h" #define MySTRING(ident, str) \ ({\ char str_##ident[16]; \ memset((char *)str_##ident, 0x00, sizeof(str_##ident)); \ memcpy(str_##ident, (str), strlen((str)));…
cnnbcza
  • 121
  • 1
  • 7
1 2 3
99
100