Skip to content
Advertisement

Tag: c++

Segmentation Fault with g++ in Linux Ubuntu, but not with g++/MingW in Windows, when printing a char string in C++ [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 3 years ago. Improve this question

linux kernel crypto API for ECB AES

I am trying to write a sample code for using linux kernel crypto userspace interface. And I do found a example really helped me a lot, thanks to nibrunie: This is quite useful for CBC AES, but not for ECB AES. For What I understand, the variable iov is for Plaintext, iv for initialization Vector, and call ALG_SET_KEY for key.

GTK C++: Could not find signal handler Did you compile with -rdynamic?

I am new at GTK programming and I am facing the following issue. I can compile the code without any warnings or errors however when I execute the binary I get this massage and the button does not work. The error looks like this: (project:9686): Gtk-WARNING **: 16:26:31.359: Could not find signal handler ‘on_button_clicked’. Did you compile with -rdynamic? That

Building gRPC C++ with CMake on Linux

I’m trying to build gRPC (cpp) using CMake, but running into errors. I am able to successfully build gRPC with make per the instructions on the gRPC cpp page. Using make is deprecated, but CMake isn’t working for me. After following the instructions for downloading, cloning etc., I go to the “Building with CMake”, where it says for Linux/Unix, do

output from popen doesn’t capture the error return

I was trying to capture the output from popen. The command that I am using is If you execute the above command in shell, you will get a message Terminated. My objective is to get the message Terminated in a buffer. I used the code below, but it didn’t work. Any ideas why it is not working ? Or if

Make DateTime.Now Display European Format Globally on Linux

I’m running a .NET Core app which contains DateTime.Now.ToString(). When on my PC it displays European date format (dd/mm/yy) but when running on a Linux VM located in the US it displays American date format (mm/dd/yy) despite the timezone on the VM being GMT. How can I make it display only European date format? I know I can format it

How to use `PublishSingleFile` option for `dotnet` and macOS?

I use dotnet on macOS and want to build an application for Linux. To achive this, I use the following commands: According to this article, the dotnet command should support a command-line flag to pack the application into a single executable: My question is two-fold: Why is there no PublishSingleFile option for dotnet on macOS? Why does dotnet both create

Advertisement