Linker Error: undefined reference to `internal'

jython234 via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 10 12:23:19 PDT 2016


I posted this on stackoverflow, but it doesn't seem like anyone 
knows what is going on:

I'm writing an application in D which interfaces with OpenGL and 
a few other native libraries (using the Derelict libraries). 
However, this error does not seem to relate to that at all.

Whenever I do "dub build" the compilation succeeds, but ld fails 
with this message:

Linking...
../git/mango-engine/bin/libmango-engine.a(gl_model_503_284.o):(.data._D12mango_engine8graphics6opengl8gl_model7GLModel6__initZ+0x10):     undefined reference to `internal'
../git/mango-engine/bin/libmango-engine.a(shader_51b_52f.o):    
(.data._D12mango_engine8graphics6shader13ShaderProgram6__initZ+0x18):     undefined reference to `internal'
collect2: error: ld returned 1 exit status

I have no idea what this means, and have never seen it before. 
Also, strangely this error only occurs when I import the specific 
files: gl_model.d and shader.d, from another DUB project. If they 
are not imported the linker succeeds.

I'm not sure what information to provide, so I will just link the 
whole source code: https://github.com/jython234/mango-engine



More information about the Digitalmars-d mailing list