summaryrefslogtreecommitdiffstats
path: root/doc/sources/c++/compile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sources/c++/compile')
-rwxr-xr-xdoc/sources/c++/compile5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/sources/c++/compile b/doc/sources/c++/compile
new file mode 100755
index 0000000..64687fa
--- /dev/null
+++ b/doc/sources/c++/compile
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+g++ -O2 -Wall -fPIC -c triangle.cpp
+g++ -shared -o triangle.so triangle.o
+g++ -o test main.cpp -ldl \ No newline at end of file