-
下载 Nginx 源码包
We need to generate a unique SSH key for our second GitHub account.
ssh-keygen -t rsa -C "your-email-address"
Be careful that you don't over-write your existing key for your personal account. Instead, when prompted, save the file as id_rsa_COMPANY
. In my case, I've saved the file to ~/.ssh/id_rsa_work
.
class ClangFormatAT5 < Formula | |
desc "Formatting tool for C/C++/Java/JavaScript/Objective-C/Protobuf" | |
homepage "https://releases.llvm.org/5.0.2/tools/clang/docs/ClangFormat.html" | |
version "5.0.2" | |
if MacOS.version >= :sierra | |
url "https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_502/final/", :using => :svn | |
else | |
url "http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_502/final/", :using => :svn | |
end |
This Gist presents an introduction to a few different ways of working with multiple source files in C, including:
- Simple
.c
source files and.h
header files compiled into a.exe
- First compiling into
.o
object files, and then linking together - Makefiles
- Statically linked libraries
- Dynamically linked libraries
The concepts are demonstrated using gcc (tdm64-1) 5.1.0
on Windows 8.1, using 3 C source files (linkedlist.c
, listprimes.c
and main.c
) and 2 header files (linkedlist.h
and listprimes.h
), all of which are included at the end. It is assumed that all the source files are saved in a single directory, and any terminal commands are entered in a terminal window open in that same directory.