I have two box: I am working in A on a C++ project (Makefile project) and i want to make it by B’s Compiler . but I have to run “source ~/.bashrc” before make command in netbeans, how to do it? that replacement the make command with doesn’t work and add variables to project properties –> run –> environment variable
Tag: compilation
How can I make my program compile without warning?
I should compile my program with spec flags to gcc. Then gcc complained about return values not taken care of. WhenI use variables to take the return values then gcc complains again: How can I resolve the warnings? My program is as follows. Answer Reading between the lines, I guess the original problem you were trying to solve was a
Compiling a program with limited library access
i want to compile a C program with gcc and glibc(or any other c library) but i want to limit the program access to certain functions for example program should not be compiled if it uses sockets or signal handling functions. any idea how i could do this?? by the way i want to use this on a simple programming
how can I guide compiler to use a certain library?
I’m trying to compile skeltrack according to this guide http://tayyabnaseer.blogspot.com.tr/2012/05/installing-skeltrack-on-ubuntu.html I successfully compiled and installed first two libraries. However when it comes to skeltrack I get followin compilation error: I am on Ubuntu 13.10 32 bit platform. I searched for the error on the net and I came to conclusion that my glib 2.32 doesn’t contain that functions. I successfully
How to compile *only* uuid from linux utils
I have the linux utils code (can be found here: https://www.kernel.org/pub/linux/utils/util-linux/) and I only need libuuid, nothing else. I’ve tried setting many ‘–disable-‘ flags but it still seems to be compiling things I don’t need. Here’s my actual configure command: and here’s my output: Is there any way to only build libuuid? Answer The easiest approach would be to pull
Why a stripped binary file can still have library call information in the disassembled file?
test platform is 32 bit Linux. I compile a c program without strip the symbol information, and use objdump to disassembly the elf executable file. Here is part of the results. If I use: to remove the symbol info and use objdump to disassembly the elf executable file again, I can still see the results like: So my question is:
I am really confused with this kind of compilation error( C ffmpeg Qt)
I downloaded the latest ffmpeg source code and successfully installed it on Ubuntu But I failed to compile a simple demo.(I did included proper headers) Here are the error messages ,just to name a few: Can you help me solve this problem? Contents Added: e.g this is my includes e.g AVFormatContext is declared in /usr/include/libavformat/avformat.h error message box shows Unknown
Retrieve plain text script from compiled bash script
Some time ago, i wrote some bash scripts for my school. I thought it would be very clever to ‘protect’ them, so i compiled them with shc into a binary file. Some weeks later, i lost the uncompiled scripts and now i have only my binarys left. Is there a way to retrieve the scripts back from the shc generated
Compiling linux sources in Windows environment
I got a source for console program written in c++ for linux Is there a (automated) way to compile this source to run in windows? and what about linux functions and libraries called in this file? Answer It depends on the source, but if it’s using linux functions and libraries, installing Linux might end up being easier that getting it
Installing programs in different Linux machines with very limited access
I have to log into Linux servers from different customers and use there essential tools like SVN, etc. Most of the times I get no root access, and usually the administrator is on holidays 🙂 so I have to get the way to use this tools there. Sometimes this is very straightforward process, just compile the code. But in some