UNIX/Linux Programming - July 2020

by Borneq
Strange linker errors
 
First I make and install velocypack, it was easy. Next I try make arangodb/fuerte Compilation was OK, but appears linker errors:multiple definition of arango...
[3 replies] Last: My trial of solution: https://github.com/arangodb/velocypack/issues/7... (by Borneq)
dup2 and printf
 
1.the code is shown below: #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <string.h> int main() { int fd1=open("eup.txt", O_RDWR | O...
[6 replies] Last: Mixing C runtime buffered i/o with OS unbuffered i/o; ok yeah, I misse... (by kbw)
stl map for Eigen matrix
 
How to use stl map for Eigen::MatrixXd ? When i try to directly use it as std::map<Eigen::MatrixXd,bool> matrix_map; matrix_map = true; Its not working. Erro...
[2 replies] Last: This would seem to be the crucial part of the message: YOU_MIXED_DIFF... (by MikeyBoy)
64 and 32 bit system calls
 
so reading from this table - https://chromium.googlesource.com/chromiumos/docs/+/master/constants/syscalls.md why is the system call to write to the terminal...
[2 replies] Last: Maybe this helps: https://unix.stackexchange.com/questions/338650/why-... (by kbw)
Operating systems and C/C++
 
Hi guys, so the most popular operating systems are written in a mix of assembly,C and C++(lesser extent) but I'm not sure how this is done, so C and C++ need ...
[3 replies] Last: so the linker and compiler would create an executable right? the only... (by helios)
exit from all nested shell script
 
How to exit from all nested shell script calls once in a single command? ..and if any way how to exit some number of nest calls times ?
[1 reply] : Can you run your sub-scripts as 'source' instead of 'bash' ? If not, ... (by dutch)
Multi Threading Design Problem
 
Hi All, I am working on the Event Processing Module. Below is the requirement: 1. There will be a directory of events files - EventDir. New event file co...
[2 replies] Last: Not sure why you'd use a std::queue, you probably want a concurrent qu... (by kbw)
shell to remove the first ie. earlier file/folder of list pattern with pairs of almost identical
 
How do Bash shell remove the first ie. earlier file/folder of list pattern with pairs of almost identical name such illustration; (the real is not directly from...
[7 replies] Last: Like for example creating a file called '-rf', then try and remove it... (by dhayden)
by Nekota
how to connect or add winuser.h
 
Hello guys, i'm using qt creator on kali linux, tell me please, how can i connect winuser.h, windows.h?
[4 replies] Last: Maybe you can try this: http://www.kegel.com/wine/cl-howto-win7sdk.htm... (by Thomas1965)
by koce
getnameinfo and tcp connection
 
I tried reworking the getaddrinfo() / getnameinfo() example from the man page, https://linux.die.net/man/3/getaddrinfo , which is built over datagram socket. My...
[3 replies] Last: Thank you. It's clear there're lot's of advanced stuff to explore, on... (by koce)
by volang
SO_CONNECT_TIME on linux?
 
getsockopt with SO_CONNECT_TIME returns the time a socket been connected, but on linux SO_CONNECT_TIME is not recognized. What options do I have here?
[3 replies] Last: What do you mean by connection time? The server sits around waiting f... (by kbw)
by volang
No output with cout
 
What's causing this? The first instruction in main: cout << "We are alive"; // this is not printed, rest of program works fine But when I add "endl" ...
[3 replies] Last: You can on Windows if SEHs are mapped to C++ exceptions, as they used ... (by kbw)
  Archived months: [jun2020] [aug2020]

This is an archived page. To post a new message, go to the current page.