Passing additional variables from command line to make
How to pass variables to gnu makefile from command line arguments? In other words I want to pass some arguments which will eventually become variables in makefile. ...
How to pass variables to gnu makefile from command line arguments? In other words I want to pass some arguments which will eventually become variables in makefile. ...
I've noticed the basic 'style' of most GNU core applications whereby arguments are: --longoption --longoption=value or --longoption value -abcdefg (multiple options) -iuwww-data (option i, u = www-data) They follow the above style. I want to avoid writing an argument parser if there's a library that does this using the above style. I...
I wish to sort a space separated table, with the numerical value that found on the 2nd field. I can assume that the 2nd field is always fooN but the length of N is unknown: antiq. foo11 girls colleaguing foo2 Leinsdorf Cousy foo0 Montgomeryville bowlegged foo1 pollack Chevrier foo10 ill-conceived candlebomb foo3 seventieths autochthony ...
I am trying to embed a Javascript engine into my application. But the license for Mozilla Javascript engine is GNU/GPL/MPL based and I don't have the time and energy to digest the cryptic legal document. In short, does the license mean I need to publish my application's source code if I embed the engine into my own appli.? Something I...
I've found a SourceForge project with a solid core that I would like to improve. The project hasn't been updated since 2007 so I assume it is "dead". I sent an e-mail asking to become a contributor to the listed project manager last week but still haven't received a response. The project is licensed under the GNU GPL v2. I would like...
Background: I am using Ubuntu The newer python version is not in the apt-get repository (or synaptic) I plan on keeping the old version as the default python when you call "python" from the command line I plan on calling the new python using pythonX.X (X.X is the new version). Given the background, how do you install a newer version ...
I'm really sorry if this sounds kinda dumb. I just finished reading K&R and I worked on some of the exercises. This summer, for my project, I'm thinking of re-implementing a linux utility to expand my understanding of C further so I downloaded the source for GNU tar and sed as they both seem interesting. However, I'm having trouble under...
Background: running ubuntu So I downloaded the python "install from source" tarball. I ran make and got this error message: Python build finished, but the necessary bits to build these modules were not found: _aaa _bbb _ccc ... _jjj _kkk I google'd and found one solution is to: MANUALLY map all the string names from the error me...
Running ubuntu 9.04 "jaunty". When I run make I get the following error: Python build finished, but the necessary bits to build these modules were not found: _sqlite3 So the easy solution is to just install the missing dependency using apt-get, "sudo apt-get -f install libsqlite3-dev" but I get the following error: The following...
mv command doesnt accept pattern matching like grep ! Whats the good way to handle this and similar kind of operations ? ...
How can I use external defines such as LONG_MIN and LONG_MAX in ARM assembler code? Let's say my_arm.h looks like this: int my_arm(int foo); Let's say I have a my_main.c as follows: ... #include <limits.h> #include "my_arm.h" ... int main (int argc, char *argv[]) { int foo=0; ... printf("My arm assembler function returns (%d)...
Are Statement and Declarations in Expressions specific to GNU C ? Or this feature is also included in C99 standard ? ...
Is it possible to rewrite the following code, so that it would be ISO C compliant ? The following macros are doing a malloc & init for a given type and value. The current code works with the gcc compilers (uses a gcc extension), but it's not standard. If I use -pedantic, I receive warnings. #ifdef __GNUC__ #define NM_CVPTR(type, valu...
Given the line: program_OBJS := ${program_SRCS:.cpp=.o} I would like to append .o to each filename instead of replacing .cpp with .o. How do I do that? ...
Hello, I'm trying to execute a single target calling "make cleanlists". This target has no prerequisites and should be executed (in my understanding) immediately without touching other rules. .PHONY: cleanlists cleanlists: @echo cleaning source and header lists .. @rm -f sourcelist.mk @rm -f headerlist.mk @echo done. ...
Terrible title, sorry. I used cmake to generate a makefile and I specified g++ as the C++ compiler and when I run the generated makefile using make or gmake I get all these compile errors and all my symbols have trailing â's on them. Any thoughts on what might be behind these mysterious â's? ...
Hi all, I want to browse the source code of gnu implementation of C++ standard libraries -- header files as well as the implementation. I have landed myself into: http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.4/index.html My first step was to look header file at: http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-ht...
Hi, What does the line: template<typename _Tp1, typename _Seq1> friend bool operator==(const stack<_Tp1, _Seq1>&, const stack<_Tp1, _Seq1>&); in http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.4/a01367.html do? Why is _Tp1 repeated twice in arguements list? Thanks, ...
Question: Not able to compile a C++ program with gcc compiler. **oyscs1 /ms/user/a/agrajagr/test/macros 51$ cat info.C** #include<iostream> using std::cout; using std::endl; int main() { #ifdef __cplusplus cout << "C++ compiler in use and version is " << __cplusplus << endl; #endif cout <<"Version is " << __STDC_VERSION__ << endl; cout ...
How to get the invoking target of the gnu makefile? for example, I invoke the makefile with the following command line: make a-target How can I get the invoking target "a-target" in the makefile to assign it to a variable? further more, if more than one target is specified in cmd line: make target1 target2 ... How to get all of the...