Last active
November 12, 2017 10:39
-
-
Save slankdev/46cba10b3d2fd2d233e75eb214a00e9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char** argv) | |
{ | |
if (argc < 2) { | |
fprintf(stderr, "Usage: %s arg1 \n", argv[0]); | |
return -1; | |
} | |
printf("argc: %d \n", argc); | |
for (int i=0; i<argc; i++) { | |
printf("argv[%d]: %s \n", i, argv[i]); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LIBSLANKDEV := $(HOME)/git/libslankdev | |
CXXFLAGS += -I$(LIBSLANKDEV) -std=c++11 | |
all: | |
$(CXX) $(CXXFLAGS) main.cc $(LDFLAGS) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment