GDC & Pandaboard/QEMU & Framebuffer

John A via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 22 21:12:43 PDT 2014


On Wednesday, 22 October 2014 at 07:49:24 UTC, Johannes Pfau 
wrote:
> You also have to link against DerelictGL3 and maybe 
> DerelictUtil:
> -lDerelictGL3 -lDerelictUtil

Sorry for the confusion.
When I compile DerelictGL3 and DerelictUtil, I create archives 
libopengl3.a and libutil.a in a local 'lib' directory.

And when I add to the compilation line:
     -L./lib -lopengl3 -lutil

I get the same link errors:

$ make testgl3
/home/arrizza/x-tools/arm-cortexa9_neon-linux-gnueabihf/bin/arm-cortexa9_neon-linux-gnueabihf-gdc 
-I./DerelictUtil/source -I./DerelictGL3/source -Llib -lopengl3 
-lutil testgl3.d -o opengl3
/tmp/ccLpFyC8.o: In function `_Dmain':
testgl3.d:(.text+0x40): undefined reference to 
`_D8derelict7opengl33gl311DerelictGL3C8derelict7opengl33gl317DerelictGL3Loader'
testgl3.d:(.text+0x44): undefined reference to 
`_D8derelict7opengl33gl311DerelictGL3C8derelict7opengl33gl317DerelictGL3Loader'
testgl3.d:(.text+0x58): undefined reference to 
`_D8derelict7opengl33gl311DerelictGL3C8derelict7opengl33gl317DerelictGL3Loader'
testgl3.d:(.text+0x5c): undefined reference to 
`_D8derelict7opengl33gl311DerelictGL3C8derelict7opengl33gl317DerelictGL3Loader'
/tmp/ccLpFyC8.o:(.data+0xc): undefined reference to 
`_D8derelict7opengl33gl312__ModuleInfoZ'
collect2: error: ld returned 1 exit status
make: *** [testgl3] Error 1

Now here's the strange part. If I dump the symbols in the 
libopengl3.a's, the name above exists:
$ nm libopengl3.a | grep 
_D8derelict7opengl33gl311DerelictGL3C8derelict7opengl33gl317DerelictGL3Loader
00000000 B 
_D8derelict7opengl33gl311DerelictGL3C8derelict7opengl33gl317DerelictGL3Loader

What am I missing?



More information about the Digitalmars-d mailing list