Skip to content

Instantly share code, notes, and snippets.

@slankdev
Last active November 12, 2017 10:39
Show Gist options
  • Save slankdev/46cba10b3d2fd2d233e75eb214a00e9f to your computer and use it in GitHub Desktop.
Save slankdev/46cba10b3d2fd2d233e75eb214a00e9f to your computer and use it in GitHub Desktop.
#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]);
}
}
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