UNIX/Linux Programming - April 2018

Shared Pointer Swap Strangness
 
I have a template function that I'm passing a shared pointer to. Within the function I swap the contents of the member variable (also a shared pointer of the ba...
[3 replies] Last: Actually this is an exact copy of the code for the classes Really? T... (by Peter87)
Success - Developing On Macintosh
 
Ok first this is about writing code and not discussing your preference for platform. After MUCH reading and looking through web pages and looking at software...
[no replies]
Linker error
 
Cross compiling VS17 and have now hit a snag in linker stage. It compiles but says it can't find the two files/libs below: ... 1>Linking objects 1>/usr/bi...
[2 replies] Last: Yes, that is my understanding. But I am confused: for -lUSB-1.0 I hav... (by technologist)
Segmentation fault when I pass a char pointer to a function in C.
 
I am passing a char* to the function "reverse" and when I execute it with gdb I get: Program received signal SIGSEGV, Segmentation fault. 0x000000000040083b...
[1 reply] : You appear to be trying to alter a const string in the second loop. R... (by jlb)
C/C++ shared libraries on Linux.
 
This is the first time that I created a dynamic library in linux and although the program works, I do not get the correct information about the library when exe...
[2 replies] Last: Here you have used wrong step in programming likes printf ("\n\n%s, I ... (by shivkumar12)
by dsk
Create GUI in Visual Studio for Linux
 
Hi, Can anyone let me know if it is possible to build a simple GUI using MS Visual studio for Linux applications? I am in need of this information for my col...
[1 reply] : let me know if it is possible to build a simple GUI using MS Visual s... (by bheadmaster)
by stav
Make always recompiles every sourcefile
 
Hi I'm pretty new to Make and im trying to construct a Makefile that only compiles the files that have been modified since last this is what i have: OBJECTS ...
[1 reply] : Nothing depends on the .o files. The first rule is for a file called "... (by dhayden)
g++ -O produce wrong result
 
I have a program that produces the wrong result when using -O to compile. My system is the latest fedora. "uname -a" output is Linux pluto 4.15.14-300.fc27.x...
[15 replies] Last: It's always by luck ITHare seems to be finding them by design :) h... (by Repeater)
Mac error with random number between 1 & 49
 
Hi, When I create a random number (using 49 random number options) as per below - I always get the same result of 31 (but not when I use a number other than 49...
[17 replies] Last: Haha @CharlesPhillips - I guess we are hey ;) Will send you a message ... (by cheetoblue)
by dsk
Blinking LEDs on Beaglebone black using C++, Visual studio Linux development
 
Hi, I am trying to run a program to blink LEDs on beaglebone black on Visual studio, with Linux. I have successfully connected remotely to BBB. And I am able t...
[1 reply] : I figured the problem and got it working. The problem was to do with p... (by dsk)
by stav
g++ works on windows but not linux?
 
Hi, So this builds just fine on my windows machine (using mingw) but today i tried building it on a VM (VirtualBox running Ubuntu 16.04) and it outputs the f...
[1 reply] : Linux uses forward slashes in paths. #include "config_structs / rs_c... (by Peter87)
Flycapture 2 cameras image capture issue
 
Hi all, New to the whole forum thing so if I'm posting in the wrong group let me know! I'm currently developing a Stereo V-SLAM application and run into s...
[no replies]
by csharp
need to understand fork()
 
Please explain in details the following code and how does fork() work ? #include <stdio.h> int main() { printf("%d\n", getpid()); // 5 fork(); printf("%...
[1 reply] : http://www.cplusplus.com/forum/unices/92373/ (by kbw)
Heigh performance linear algebra algorithms
 
Hi, I have a Matlab code that contains a lot of matrix-vector product operations (> 500 operations per/iteration, nbr of iterations can be more than 100 ) and ...
[1 reply] : If you have GPU and the data can fit into its memory, then GPGPU would... (by keskiverto)
by TMJJ
Ti AM335x -- Embedded Linux -- Interrupts
 
Dear all, Short intro of my problem. On my embedded system I'm reading receiving and sending can messages. For those can messages there needs to be a timed seq...
[no replies]
by column
Show available serial ports
 
Hello, I need to get all available serial ports on Linux machine. What is the easiest way to get such list?
[1 reply] : Hey column, You can either use: dmesg | grep tty or setserial -... (by Ralumbi)
AV/firewall still a necessary clunker?
 
I think this might be the appropriate place to post this question - I have just recently been delving into Linux. One well documented strength of having such...
[2 replies] Last: Hello technologist, It is never too bad to just set-up your firewall ... (by Ralumbi)
by rey777
Dbus connection from service application
 
Hi everyone, I am new at c++ programming and I have some problem with Dbus. My application is a media player, I am using a raspberry 3 with Jessie. I am trying ...
[no replies]
using java to record mp3
 
I want to stream music from url and record it but for some reason i keep getting an err when i use this line InputStream is = conn.getInputStream(); here is by...
[7 replies] Last: I get a stream with netcat. It might be better to write to an mp3 fil... (by kbw)
Good example of fork() in a program?
 
I got some homework about the 'fork()' POSIX system call, and one of the assignments was to write a small example program in C or C++ that uses this system call...
[5 replies] Last: How about a program that: 1. takes input from a user, then writes it ... (by zaphraud)
April 2018 Pages: 12
  Archived months: [mar2018] [may2018]

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