gnu

For each on target of Makefile variable

三世轮回 提交于 2019-12-14 04:12:03
问题 I've makefile which looks like follows apps = app1 app2 app3 all: dir app1 app2 app3 zip cleanup Now I want to do some loop on the list of apps varible, something like `loop on apps endloop` Is it possible in makefile to loop on it, I need to do loop on apps varible list update lets say this variable( apps ) is generated by my program in the make file, which provide for each project diffrent values of apps, sometimes its apps= app1 app2 sometimes its apps= app1 and sometimes can be 20 apps or

how best to compile gnu.mail.providers

我怕爱的太早我们不能终老 提交于 2019-12-14 03:05:05
问题 I'm interested in forking gnu.mail.providers.nntp.NNTPFolder, with the Javadoc documentation here, but don't quite understand the dependencies. Apparently, these are: The current stable release of GNU JavaMail is version 1.1.2, available here. You also need the current versions of GNU JAF and GNU inetlib to build it. http://www.gnu.org/software/classpathx/javamail/ What, exactly, do I need to download to build gnu.mail.providers? I can certainly check out the code easily enough, but I don't

Good SMTP + SSL/TLS Library for C? [closed]

淺唱寂寞╮ 提交于 2019-12-14 03:02:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I apologize if this question has been asked before. I did a rather extensive search for similar questions, however all I could find were answers related to C++ or C#. I'm using GNU C. I'm writing a daemon that needs to be able to send e-mail using SMTP. I need to be able to login to an external mail server, send

GNU sed - find or replacing spaces or new lines. Why is this not working? v3.02 vs v4.2

☆樱花仙子☆ 提交于 2019-12-14 01:53:03
问题 C:\crp\cnp>sed -V GNU sed version 3.02 Copyright (C) 1998 Free Software Foundation, Inc....... C:\crp\cnp>type f.f a a a a a a Trying to replace 'a' with spaces. C:\crp\cnp>type f.f | sed -e s/a/\d032/g d032 d032 d032 d032 d032 d032 why isn't it working? I don't mind whether i'm finding or replacing spaces or new lines.. I just want to be able to specify them. It doesn't seem to be working and I don't know why. (Replacing spaces or a space, with f, doesn't work) C:\crp\cnp>echo a a | sed s/

Why does (do) GCC (and other tools) not follow the GNU command options convention guidelines?

天大地大妈咪最大 提交于 2019-12-13 16:16:24
问题 I am doing some maintenance on a program that accepts command line options. There are a single letter options, as well as long options. Currently, the long options have a single preceding hyphen. Many tools have double hyphens for their long options. Trying to be consistent with what's out there, I looked at some of the GNU tools, and saw that for the long form, there is a mix of single- and double-hyphens. For example, the GCC compiler has --help , --version versus -std , -funroll-loops . So

Put gcc libs .data in specific section?

牧云@^-^@ 提交于 2019-12-13 12:31:25
问题 I'm trying to switch to the GNU GCC compiler for our embedded system, but I'm having trouble linking the project as the memory layout of our chip is split: RAM section 1: 0x10000-0x12FFF RAM section 2: 0x18000-0x1BFFF The data from our project can fit in section 1, but the data linked from the gcc libs doesn't. Map file extract: .data 0x00012974 0x3c4 c:/tools/gnucr16_v1.1.3-elf/cr16-elf/bin/../lib/gcc/cr16-elf/4.5.1-GNUCR16_v1.1.3/../../../../cr16-elf/lib\libc.a(lib_a-impure.o) 0x00012974

What is the difference between && and ; in bash or command?

£可爱£侵袭症+ 提交于 2019-12-13 10:05:38
问题 What is the difference between && and ; in bash or command? Eg: ~$ echo one && echo two And ~$ echo one ; echo two 回答1: ~$ echo one && echo two This runs the 2. command only if the first command succeeds. ~$ echo one ; echo two This always runs the 2. command. ~$ echo one || echo two This runs the 2. command only if the first command fails. A command is considered successful if its exit code is 0, and considered failed if its exit code is != 0. 来源: https://stackoverflow.com/questions/24367561

_end symbol disappears when linking to libcurl

坚强是说给别人听的谎言 提交于 2019-12-13 08:59:27
问题 On Linux, the D runtime library relies on the _end symbol in determining the GC root ranges ( man 3 end ), which is in fact very similar to what the Boehm GC does. However, when linking in libcurl, the symbol is no longer found by the linker: $ cat test.c #include <stdio.h> extern char _end[]; int main() { printf("%p\n", &_end); return 0; } $ gcc test.c # works $ gcc test.c -lcurl /usr/bin/ld: /tmp/ccOPtbEv.o: undefined reference to symbol '_end' /usr/bin/ld: note: '_end' is defined in DSO

Automatic dependency generation and compilation in non-flat directory src

江枫思渺然 提交于 2019-12-13 07:29:06
问题 I'd like to adapt the combined automatic dependency approach to a non-flat directory situation where headers are located under ./include/ and implementation files under ./src/ (while Makefile is in the current directory .). I'd like to hold all intermediate and .d (dependency) files inside a separate directory (potentially separate ./build/ and ./.deps/) . To avoid potential clash for dependency files when more than one file with the same name in different subdirectories of ./include/ and .

How to filter data between 2 dates with awk in a bash script [duplicate]

与世无争的帅哥 提交于 2019-12-13 04:47:37
问题 This question already has answers here : Extract data from log file in specified range of time [duplicate] (5 answers) Closed 4 years ago . Hi I have the following log file structure: ####<19-Jan-2015 07:16:47 o'clock UTC> <Notice> <Stdout> <example.com> ####<20-Jan-2015 07:16:43 o'clock UTC> <Notice> <Stdout> <example2.com> ####<21-Jan-2015 07:16:48 o'clock UTC> <Notice> <Stdout> <example3.com> How can I filter this file by a date interval, for example: Show all data between 19'th and 20'th