Skip to content

Instantly share code, notes, and snippets.

View Celthi's full-sized avatar
🏠
Working from home

Evan Lu Celthi

🏠
Working from home
  • Banzhuaning
  • TS/Javascript/Python, C++/Rust/Java
View GitHub Profile
@Celthi
Celthi / compiling_building_c_cpp_notes.md
Created June 25, 2022 09:23 — forked from gubatron/compiling_building_c_cpp_notes.md
Things to remember when compiling and linking C/C++ programs

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.

I just type these words to see how gist work and how I can use it.