Skip to content

Instantly share code, notes, and snippets.

View jsancheznet's full-sized avatar
💭
Looking for a job

jsanchez.net jsancheznet

💭
Looking for a job
View GitHub Profile
@jsancheznet
jsancheznet / static-lib-howto-msvc.txt
Created March 4, 2016 17:43
Building Static Library in MSVC Command Line
When you build on the Visual Studio command line, you must build the program in two steps.
First, run cl /c /EHsc MyLib.cpp to compile the code and create an object file that's named MyLib.obj.
(The cl command invokes the compiler, Cl.exe, and the /c option specifies compile without linking. For more information, see /c (Compile Without Linking).)
Second, run lib MathFuncsLib.obj to link the code and create the static library MathFuncsLib.lib.
(The lib command invokes the Library Manager, Lib.exe. For more information, see LIB Reference.)
@jsancheznet
jsancheznet / Equation_Of_Motion.cpp
Last active November 5, 2016 21:14
Equation of Motion
/*
// THIS CODE DOES NOT COMPILE, ITS PSEUDOCODE IN C'ish style
1- Calculate the Sum of Forces for an object
2- Acceleration is proportional to the sum of forces
3- Calculate Velocity
4- Calculate Position
*/
v2 Acceleration = {};
v2 Velocity = {};