Skip to content
Advertisement

Tag: c++

Link a C++ library: Restbed

I just downloaded the restbed library: https://github.com/Corvusoft/restbed. I have trouble using it.. In fact, I don’t know where to put this library.. (I have Linux Mint 17.2).. I’m pretty sure that I’m doing something using because when I use #include <restbed>, the make command says that it cannot find the file.. So, can you tell me where I should put

Build is happening by default with g++ instead of arm compiler?

I am encountering a very strange issue. I am building my source for ARM with ARM compilers. I modified CXX field in makefile to build using arm-linux-gnueabihf-g++ instead of g++ but while building its still taking g++. Can someone please help me here? MY makefile has the following entry I modified it to look as follows Shouldn’t the build happen

Which header file do I have to include to get printk() within a kernel source file?

Let’s say I want to use printk() within arch/x86/boot/string.c before compiling the kernel. Which header file do I have to include so that the linker knows where to find printk()? I tried #include <linux/kernel.h> and #include <linux/printk.h> but I always get errors during make bzImage telling me the linker does not find printk: Answer You are trying to instrument the

How to get port information for usb ports using libudev?

For a small project i am using libudev to get notification for USB devices plug-in/plug-out. Is there any way of knowing which USB port was used to plug in the device via libudev. Actually there are multiple ports available and it is necessary to know which one was used. Any hints would be highly appreciated! Answer After a bit of

Advertisement