hi all. im having trouble compiling my shaders. here is what i believe to be the relevant code.

Code :
static const char *vshader =
	    		"#version 430 core"
	    		"layout (location = 0) in vec4 vPosition;"
	    		"void main()"
	    		"{"
	    		"	gl_Position = vPosition;"
	    		"}";
 
	    static const char *fshader =
	    		"#version 430 core"
	    		"out vec4 fcolor;"
	    		"void main()"
	    		"{"
	    		"	fColor = vec4 (0.0, 0.0, 1.0, 1.0);"
	    		"}";
 
		GLuint prog = glCreateProgram();
	    GLuint vert = glCreateShader(GL_VERTEX_SHADER);
	    GLuint frag = glCreateShader(GL_FRAGMENT_SHADER);
	    glShaderSource(vert, 1, &vshader, 0);
	    glShaderSource(frag, 1, &fshader, 0);
	    glCompileShader(vert);
	    glCompileShader(frag);
	    glAttachShader(prog, vert);
	    glAttachShader(prog, frag);
	    glLinkProgram(prog);
	    glUseProgram(prog);

i believe the problem is with glShaderSource(). i dont know what values to use.
thanks for the help.