aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--example/Makefile4
-rw-r--r--example/test.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 0977092..8b56a23 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CC = /usr/bin/g++
+CC = /usr/bin/clang
CFLAGS = -Wall -g -std=c++11 -shared -fPIC
DEBUGFLAGS = -Wall -g -std=c++11
LDFLAGS =
diff --git a/example/Makefile b/example/Makefile
index 0889694..85d9d5b 100644
--- a/example/Makefile
+++ b/example/Makefile
@@ -1,5 +1,5 @@
-CC = /usr/bin/g++
-CFLAGS = -Wall -g -std=c++11
+CC = /usr/bin/clang
+CFLAGS = -Wall -g -std=c++11 -lstdc++
LIBDIR = ../build/lib
INCDIR = ../build/inc
diff --git a/example/test.cpp b/example/test.cpp
index aebca71..afef931 100644
--- a/example/test.cpp
+++ b/example/test.cpp
@@ -26,7 +26,7 @@ private:
class edge : public cObject
{
public:
- edge(unsigned int x, unsigned int y) { setSize(x,y); drawLine('#', {0,0},{x-1,y-1}, true, _COL_DEFAULT);}
+ edge(unsigned int x, unsigned int y) { setSize(x,y); drawLine('#', {0,0},{(int)x-1,(int)y-1}, true, _COL_DEFAULT);}
~edge() { destruct(); }
virtual int onCollisionPassive(sPos _hit)
{