Compiling problems

Audun Wilhelmsen seronor at gmail.com
Thu Feb 7 09:40:05 PST 2008


I'm having some strange problems compiling a project. I'm currently using Poseidon to write and compile code. At one point (after including OpenGL extensions from Derelict) I just couldn't get it to compile anymore. So I tried using bud from the command line, and poof! It worked. But then I thought I'd make bud collect the obj files in a single directory, so I added the -odObjs switch.. but that gave me a similar error as poseidon did. The error returned is:

C:\D\Logos>bud main.d -Tmain.exe -odtest
OPTLINK (R) for Win32  Release 8.00.1
Copyright (C) Digital Mars 1989-2004  All rights reserved.
test\main.obj(main)
 Error 42: Symbol Undefined _D8derelict4util6loader13GenericLoader4loadMFAaZv
test\main.obj(main)
 Error 42: Symbol Undefined _D8derelict4util6loader13GenericLoader6unloadMFZv
test\sdl.obj(sdl)
 Error 42: Symbol Undefined _D8derelict4util6loader13GenericLoader5setupMFAaAaAa
PFC8derelict4util6loader9SharedLibZvAaZv
test\sdl.obj(sdl)
 Error 42: Symbol Undefined _D8derelict4util6loader16Derelict_GetProcFC8derelict
4util6loader9SharedLibAaZPv

Still, if I compile using:
bud main.d -Tmain.exe

It works perfectly. What is going on here?


More information about the Digitalmars-d-learn mailing list