« first day (963 days earlier)      last day (1465 days later) » 

1:19 PM
1 message moved from PHP
 
1:43 PM
is it possible to define a macro through make???
Below is my c code:

#include<stdio.h>

main(){

#ifdef HELLO
printf(" hello ");
#else
printf(" else ");
#endif
}

And my Makefiles is:

all:
gcc uss_main.c -o out


Here I am trying to print `hello` by executing the binary `out`. I want to define the macro `HELLO` only at the time of doing make. I have tried using `make HELLO=11`but it only printing the else part, I am pretty new to make. Please help me to enhance my Makefile. Thanks in advance.
 
2 messages moved from Lounge<C++>
 
 
2 hours later…
3:51 PM
 
4:02 PM
1 message moved from PHP
 
 
1 hour later…
5:10 PM
1 message moved from PHP
1 message moved from PHP
 
 
1 hour later…
6:39 PM
Hi is there somebody who has a basic knowledge in git?
 
1 message moved from Lounge<C++>
 
I accidentally commited and pushed to a wrong branch, how can I delete this commit?
 
1 message moved from Lounge<C++>
 

« first day (963 days earlier)      last day (1465 days later) »