Skip to content

Instantly share code, notes, and snippets.

Dan Fowler dan-sf

Block or report user

Report or block dan-sf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gubatron
gubatron / compiling_building_c_cpp_notes.md
Last active Sep 20, 2019
Things to remember when compiling and linking C/C++ programs
View compiling_building_c_cpp_notes.md

Things to remember when compiling/linking C/C++ software

by Angel Leon. March 17, 2015; August 29, 2019.

Include Paths

On the compilation phase, you will usually need to specify the different include paths so that the interfaces (.h, .hpp) which define structs, classes, constans, and functions can be found.

With gcc and llvm include paths are passed with -I/path/to/includes, you can pass as many -I as you need.

In Windows, cl.exe takes include paths with the following syntax: /I"c:\path\to\includes\ you can also pass as many as you need.

@ryin
ryin / tmux_local_install.sh
Last active Sep 9, 2019
bash script for installing tmux without root access
View tmux_local_install.sh
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8
You can’t perform that action at this time.