I have compiled nwipe open source utility in Centos. Once compiled it works absolutely fine on the machine where it was compiled. I have also copied the compiled package to another machine running Centos along with required libraries and it works fine. I have tried to package this utility to work with Busybox RAMBOX embedded linux. The purpose of this
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
Is it possible to compile statically with gcc or g++ on Linux based systems?
I am working on a project which I would like to be able to “ship” to other Linux based computers as a complete executable with no dependencies. (In order that I can copy just the 1 file to other systems, and then run that file on those systems.) In the windows world, I think static linking is done just by
QT Creator’s code completion for function overloading is buggy
I am using QT Creator on Ubuntu 14.04, to make a C++ project using cmake (not using qmake). In my source code editor, if I type a function name that is recognised, then next to the function name a code completion box will appear. This box consists of a down arrow, and next it the function prototype. Now, it seems
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
gdb core dump can not see any symbols after “sudo apt-get install libc6-dbg”
I am trying to debug a program in Ubuntu 12.04(x86_64) LTS with core dump file. At the beginning, the “bt” command is ok, just like below I want to see the symbol in libc.so.6 , so I install libc6-dbg using but after install I get all the thing wrong , showing in the below: I try to remvoe lib6c-dbg with
error while loading shared libraries: libcapnp-0.5.3.so
I think this is a generic problem not specifically related to Cap’n Proto. My project’s build succeeds but on run I get: Maybe I am missing something in CMake? I verified libcapnp-0.5.3.so exists in /usr/local/lib I also tried adding: Answer /usr/local/lib needs to be added to /etc/ld.so.conf then run sudo ldconfig to load the changes.
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
Can i force linux kernel to use particular memory pages for new executable
When i execute binary i want their stack segment to be filled with special data. All i do is just write program that allocate huge buffer on a stack, call a lot of malloc and mmap and for example fill all this memory with ‘A’ character. Then i check and see that about 80% of whole memory are used by