duplicate symbol __Z11LoadShadersPKcS0_ in:
/Users/bjornchinfosieeuw/Documents/Cplusplus/hand1/build/hand.build/Debug/hand.build/Objects-normal/x86_64/loadShader.o
/Users/bjornchinfosieeuw/Documents/Cplusplus/hand1/build/hand.build/Debug/hand.build/Objects-normal/x86_64/main.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The code it concerns is:
main.cpp:
1 2 3
#include "loadShader.cpp"
// Create and compile our GLSL program from the shaders
GLuint programID = LoadShaders( "SimpleVertexShader.vertexshader", "SimpleFragmentShader.fragmentshader" );