Original Post
I've recently decided to attempt my next project in D, as I really like the clean nature of the code (I'm a neat freak) and some of the high-level constructs it provides. So far, the compiler works just fine provided I only use the standard libraries. I am, however, having serious issues getting any SDL or OpenGL libraries to work. I tried both Derelict and Andar's packages, but neither of them works. The project will compile just fine, but when I get to the link stage, the linker keeps telling me it can't find most of the function symbols in any of the libraries on my build path. Here are the specs: Ubuntu 6.06 GCC 4.0.3 (I think) DMD 1.0 SDL 1.2 Here is what the linker is spitting out: -------------- Build: Debug in mused --------------- Linking console executable: bin/Debug/mused obj/Debug/hello.o:(.data+0x38): undefined reference to
_D3sdl3sdl12__ModuleInfoZ' obj/Debug/hello.o:(.data+0x3c): undefined reference to _D3sdl5video12__ModuleInfoZ' obj/Debug/hello.o:(.data+0x40): undefined reference to _D3sdl6events12__ModuleInfoZ' obj/Debug/hello.o:(.data+0x44): undefined reference to _D3std5error12__ModuleInfoZ' obj/Debug/hello.o:(.data+0x48): undefined reference to _D3sdl5timer12__ModuleInfoZ' obj/Debug/hello.o:(.data+0x4c): undefined reference to _D3sdl8keyboard12__ModuleInfoZ' obj/Debug/hello.o: In function _D11sdl_sample16renderFZv':hello.d:(.gnu.linkonce.t_D11sdl_sample16renderFZv+0xf): undefined reference to SDL_MUSTLOCK' :hello.d:(.gnu.linkonce.t_D11sdl_sample16renderFZv+0xb2): undefined reference to SDL_MUSTLOCK' obj/Debug/hello.o: In function _Dmain':hello.d:(.gnu.linkonce.t_Dmain+0xa1): undefined reference to `_D3sdl6events9SDL_Event6__initZ' collect2: ld returned 1 exit status Process terminated with status 1 (0 minutes, 1 seconds) 0 errors, 0 warnings Has anybody run into problems similar to these?