I have a OpenGL 3.0 application which works well when it is used with Windows. My shader programs all start with
#version 130 core\n
Now when I stwich over to linux with OpenGL 3.0 Mesa 18.0.5, compiling of these shaders fails with error message
Vertex shader failed: 0:1(10): error: illegal text following version number
What could be the problem here? It is definitely OpenGL 3.0 which should support GLSL 1.3 - what illegal text is it complaining about?