Skip to content

Instantly share code, notes, and snippets.

@cthpw103
Last active November 27, 2017 23:10
Show Gist options
  • Save cthpw103/c0cde4fdd9e70755cd3e52dfa134ec18 to your computer and use it in GitHub Desktop.
Save cthpw103/c0cde4fdd9e70755cd3e52dfa134ec18 to your computer and use it in GitHub Desktop.
how 2 compile program for reich presenc

*nix operating systems

git clone https://github.com/discordapp/discord-rpc.git
cd discord-rpc
*program making with nano, vim, ed, cat or whatever*
gcc -c -I/include -L/lib -o output rich_presence.c

me in crossofts window

install random fucking shit

then go to your start menu and type "dev" and congrats you got this cmd console thing where you gotta hack the governement

i have the compiled version that just here ok

download it, go to the folder. copy from stackoverflow

add

#include discord-rpc.dll
#define DISCORD_DYNAMIC_LIB 1
#define DISCORD_BUILDING_SDK 1

at the start of your file cuz yeah that's that basically it and download this file

cl rich_presence.c /implib:discord-rpc.lib /out:output.exe 
@chinchila
Copy link

nice teetorial meite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment