I am well aware of that. I shouldn't have used the term link in the first statement. I actually was thinking about what I clearly stated later, the merging of multiple source strings to form a single translation unit which is substantiated by the quoteUm, no. You can have multiple declarations in different translation units just fine. Both C++ and GLSL allow this. The problem is that his GLSL compiler/linker is broken and not doing what it's supposed to.
In that case there would be multiple declarations of the block. It is beyond me why the option of linking seperate objects isn't tested well enough since this has been around since 110 (judging from the API ref).Originally Posted by Kastenfrosch2