gnu Questions

2

sys_errlist is a handy array which allows getting static errno descriptions. The alternative to it is the strerror_r function, which is available in two confusing incompatible flavors. The GNU vers...
Morpho asked 26/11, 2015 at 23:43

3

Solved

sort doesn't seem to like my key specification. Why? ~/tmp $ sort --version sort (GNU coreutils) 8.25 Packaged by Cygwin (8.25-1) ~/tmp $ echo 'a;b;c;d;e;f;g'|sort --field-separator=';' --key=1,5,...
Advocation asked 6/7, 2016 at 10:5

9

I have an application that I am porting from the Keil IDE to build with the GNU toolchain due to license issues. I have successfully be able to set up, build, flash and run the application on the d...
Cyna asked 23/12, 2014 at 16:4

3

Solved

I'm trying to follow XDG directory specification on my Java application. I have already used it for application data: protected String getDefaultDataDir() { String rootPath = System.getenv("XDG...
Weismannism asked 7/3, 2014 at 12:28

2

I'm trying to write a linker script to write one section content into two non-contiguous memory regions. I have found an old thread in this mail list about this: "ld linker script and non-contiguo...
Patin asked 1/3, 2013 at 11:3

6

Solved

What is the command to match brackets in Emacs (the equivalent of the % command in Vim)?
Swirly asked 4/11, 2008 at 10:59

10

Solved

I'm trying to use GNU find to find only the directories that contain no other directories, but may or may not contain regular files. My best guess so far has been: find dir -type d \( -not -exec...
Anole asked 24/11, 2010 at 17:40

3

Solved

I am trying to implement an order statistics tree with using __gnu__pbds. I followed this code TREE_ORDER_STATISTICS But, I need this on a multiset. I was suggested to use a pair to implement this...
Cacomistle asked 29/5, 2017 at 8:43

3

I've installed ca-certificates package by sudo yum install ca-certificates command, but I get an error when trying to run sudo update-ca-certificates command, becuase it can not be found. What can ...
Sumer asked 6/9, 2022 at 10:0

6

Solved

I was just reading the glibc sscanf man page (from the Linux man-pages package) and I found the following: The following conversion specifiers are available: (...) d    Deprecated. Matches an opti...
Sturgeon asked 4/12, 2023 at 18:34

3

I would like to check multiple conditions in an if loop of GNU make file. Here's an example: ifeq ($(TEST_FLAG),TRUE && ($(DEBUG_FLAG),FALSE)) true statement else false statement endif ...
Geminate asked 23/6, 2011 at 8:46

8

Solved

I have a log file that looks somewhat like this after grep my_function $LOG_FILE: [0] my_function took 96.78581194020808 ms [1] my_function took 82.0779490750283 ms [2] my_function took 187.7965379...
Blois asked 27/10, 2023 at 1:36

1

I am trying to install a project which was developed on Ubuntu, but now I am trying to make it run on Max OSX - version: 10.10.5 (Yosemite). My current ld version that comes by default with OSX: ...
Treenware asked 16/12, 2015 at 20:7

9

Solved

I'm looking to do a custom hash table implementation in C. Is there an MD5/SHA1 hash function already in the GNU library or do I have to use an external library for this? Here's kinda what I'm loo...
Chen asked 14/10, 2010 at 18:1

3

Solved

I recently found this article online, that explains how to setup a make help target that will automatically parse the Makefile for comments and display a nicely formatted help command. It parses: ...
Chianti asked 1/3, 2016 at 18:8

7

Solved

What is the command to make less display line numbers in the left column?
Fledgling asked 6/5, 2009 at 20:52

3

I have found out about __builtin_ctzll to count trailing zeros of a 64bit int really fast through the post Intrinsic to count trailing zero bits in 64-bit integers?. I'm a beginner to C++ and don't...
Strive asked 17/7, 2023 at 15:8

11

Under Mac OS 10.10.3, I installed gnu-sed by typing: brew install gnu-sed --default-names When I type it again, I get the message: gnu-sed-4.2.2 already installed However, even after rebooting...
Complex asked 2/5, 2015 at 14:41

7

Solved

GNU diff doesn't seem to be smart enough to detect and handle UTF-16 files, which surprises me. Am I missing an obvious command-line option? Is there a good alternative?
Avow asked 22/4, 2009 at 17:15

2

I want to run makefile with input variable. What I want is that if I write down the project name, a folder with that name will be created. So I write read command: CC = gcc CFLAGS = -W -Wall FILE...
Speleology asked 10/2, 2020 at 9:8

12

I am trying to install the gnu arm toolchain for ubuntu. I first downloaded the tar from CodeSourcery. However when I go into the bin folder, I cannot run any of the binaries. I have tried with ./ ...
Welbie asked 6/1, 2013 at 7:14

5

There is very little documentation on enabling ccache on GNU/Linux. Here is a response from launchpad.net: At the moment, I think the best way to enable ccache is to add "/usr/lib/ccache" to th...
Briquette asked 18/12, 2012 at 9:5

5

Solved

I'm looking to format a Long Float as currency in C. I would like to place a dollar sign at the beginning, commas iterating every third digit before decimal, and a dot immediately before decimal. S...
Diazole asked 27/7, 2012 at 20:1

2

Solved

I am trying to compile a C++ project on a PC with "Debian GNU/Linux 10". The project requires clang, so I installed it with: sudo apt-get install clang But I run into the following error...
Psychotechnics asked 16/2, 2021 at 11:7

3

Solved

How to set key(legend) font size in gnuplot? I read the gnuplot introduction file and find no related configuration about this property. I can set font type and size for labels, tics, but only ke...
Goulash asked 28/9, 2011 at 8:22

© 2022 - 2025 — McMap. All rights reserved.