View previous topic :: View next topic |
Author |
Message |
michaelp
Joined: 27 Jul 2008 Posts: 114
|
Posted: Mon Apr 06, 2009 1:42 pm Post subject: DallegroGL not working |
|
|
Hey, I just downloaded DAllegroGL 0.4.3 and I am getting linking errors when I run build-examples.bat.
It's pretty much the same for all of them, I'll give you a couple:
Code: | C:\Documents and Settings\Michael\My Documents\D\DAllegro\dallegrogl_alpha1\dall
egrogl_alpha1>bud -O -inline -release -odexamp -w -gui agl.lib alleg.lib opengl3
2.lib glu32.lib examp\dialog.d
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
stlp45dm_static.lib
Warning 2: File Not Found stlp45dm_static.lib
examp\system.obj(system)
Error 42: Symbol Undefined _D7allegro8internal7dintern12__ModuleInfoZ
C:\Documents and Settings\Michael\My Documents\D\DAllegro\dallegrogl_alpha1\dall
egrogl_alpha1>bud -O -inline -release -odexamp -w -gui agl.lib alleg.lib opengl3
2.lib glu32.lib examp\exext.d
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
stlp45dm_static.lib
Warning 2: File Not Found stlp45dm_static.lib
examp\system.obj(system)
Error 42: Symbol Undefined _D7allegro8internal7dintern12__ModuleInfoZ
examp\multisample.obj(multisample)
Error 42: Symbol Undefined _D8derelict6opengl9extension6loader12__ModuleInfoZ
***Didn't build***
C:\Documents and Settings\Michael\My Documents\D\DAllegro\dallegrogl_alpha1\dall
egrogl_alpha1>bud -O -inline -release -odexamp -w -gui agl.lib alleg.lib opengl3
2.lib glu32.lib examp\exmasked.d
examp\exmasked.d(7): Error: module running cannot read file 'running.d'
C:\Documents and Settings\Michael\My Documents\D\DAllegro\dallegrogl_alpha1\dall
egrogl_alpha1>del examp\*.obj examp\*.map examp\*.ksp examp\*.rsp examp\*.def |
I pretty much got those error messages for all of them, says it can't find stlp45dm_static.lib. (STL port Digital mars????)
Thanks if you can help.
edit: Okay, I fixed the .lib problem after downloading the STL Port from the digital mars page and getting the file. But I still get this all the time:
Code: | Error 42: Symbol Undefined _D7allegro8internal7dintern12__ModuleInfoZ
examp\multisample.obj(multisample) |
|
|
Back to top |
|
|
torhu
Joined: 30 Mar 2006 Posts: 56
|
Posted: Tue Apr 07, 2009 1:17 pm Post subject: |
|
|
Sorry about that. Try redownloading the binaries now.
I've found it's better to not install STLport with dmc, because for some reason, it makes C libs built depend on the stl lib.
The other examples build fine for me. Try running clean.bat and then try again. |
|
Back to top |
|
|
michaelp
Joined: 27 Jul 2008 Posts: 114
|
Posted: Tue Apr 07, 2009 2:36 pm Post subject: |
|
|
Okay, so first I removed the STLPort lib, and replaced the other AllegroGL libs with those new ones. The STLPort error was gone even after removing it, so that's one thing fixed. I still get linking errors on other files, about system.obj mostly. (One file says it can't find running.d, even though it's there. And another one gives a linking error about derelict opengl extension loader.)
Here is what I get:
Code: | C:\Documents and Settings\Michael\My Documents\D\DAllegro\dallegrogl_alpha1\dall
egrogl_alpha1>bud -O -inline -release -odexamp -w -gui agl.lib alleg.lib opengl3
2.lib glu32.lib examp\dialog.d
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
examp\system.obj(system)
Error 42: Symbol Undefined _D7allegro8internal7dintern12__ModuleInfoZ
C:\Documents and Settings\Michael\My Documents\D\DAllegro\dallegrogl_alpha1\dall
egrogl_alpha1>bud -O -inline -release -odexamp -w -gui agl.lib alleg.lib opengl3
2.lib glu32.lib examp\exext.d
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
examp\system.obj(system)
Error 42: Symbol Undefined _D7allegro8internal7dintern12__ModuleInfoZ
examp\multisample.obj(multisample)
Error 42: Symbol Undefined _D8derelict6opengl9extension6loader12__ModuleInfoZ
C:\Documents and Settings\Michael\My Documents\D\DAllegro\dallegrogl_alpha1\dall
egrogl_alpha1>bud -O -inline -release -odexamp -w -gui agl.lib alleg.lib opengl3
2.lib glu32.lib examp\exmasked.d examp\running.d
examp\exmasked.d(7): Error: module running cannot read file 'running.d' |
First example there is the error I get for all files. Second one is the derelict opengl error. Third is the running.d thing.
Just so you know, I have DMD 1.042, Bud 3.04, Windows XP, and using Phobos. No DSSS installed. |
|
Back to top |
|
|
torhu
Joined: 30 Mar 2006 Posts: 56
|
Posted: Tue Apr 07, 2009 7:54 pm Post subject: |
|
|
Try a complete rebuild, that should fix those errors. bud's -full flag is one way.
Can't help you with the problem with running.d, but you might be doing something wrong... |
|
Back to top |
|
|
michaelp
Joined: 27 Jul 2008 Posts: 114
|
Posted: Tue Apr 07, 2009 8:09 pm Post subject: |
|
|
Hey, I got it to work.
In the build-examp.bat file that was provided, I removed the -odexamp for all of the files, and they all worked! No more linker errors.(Except that running.d thing. )
Time to see what I can do.
Thanks for all of your help. |
|
Back to top |
|
|
|