www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - bug or change in compiler options?

reply David Medlock <noone nowhere.com> writes:
When I compile(any version before DMD 1.018) I typically add 
opengl32.lib to the end of the link command.  This works fine, but in 
versions later than 1.018 it cannot find the library to link.

What changed or what am I missing?

-David
Oct 27 2007
parent reply David Medlock <noone nowhere.com> writes:
David Medlock wrote:
 
 When I compile(any version before DMD 1.018) I typically add 
 opengl32.lib to the end of the link command.  This works fine, but in 
 versions later than 1.018 it cannot find the library to link.
 
 What changed or what am I missing?
 
 -David
 
 
I hate to be a pest but can anyone point me to why this is happening? It always worked before... -David
Oct 30 2007
next sibling parent torhu <no spam.invalid> writes:
David Medlock wrote:
 David Medlock wrote:
 
 When I compile(any version before DMD 1.018) I typically add 
 opengl32.lib to the end of the link command.  This works fine, but in 
 versions later than 1.018 it cannot find the library to link.
 
 What changed or what am I missing?
 
 -David
 
 
I hate to be a pest but can anyone point me to why this is happening? It always worked before... -David
opengl32.lib doesn't come with dmd, so you need to get it from somewhere else. Can't remember where I got mine from. You can also create it with implib, like this: implib /s opengl32.lib opengl32.dll implib is in the 'basic utilities package', search for it on digitalmars.com.
Oct 30 2007
prev sibling parent reply Derek Parnell <derek nomail.afraid.org> writes:
On Tue, 30 Oct 2007 22:18:48 -0400, David Medlock wrote:

 David Medlock wrote:
 
 When I compile(any version before DMD 1.018) I typically add 
 opengl32.lib to the end of the link command.  This works fine, but in 
 versions later than 1.018 it cannot find the library to link.
 
 What changed or what am I missing?
 
 -David
 
I hate to be a pest but can anyone point me to why this is happening?
It might help us if we knew ... The location of the DMD compiler. The contents and location of the sci.ini file. The location of the opengl32.lib file. The command line you used to compile with. The %PATH% value. Also, if you change nothing else but the compiler being invoked, does it still work if you use a pre 1.018 compiler? -- Derek (skype: derek.j.parnell) Melbourne, Australia 31/10/2007 1:52:34 PM
Oct 30 2007
parent David Medlock <noone nowhere.com> writes:
Derek Parnell wrote:
 On Tue, 30 Oct 2007 22:18:48 -0400, David Medlock wrote:
 
 David Medlock wrote:
 When I compile(any version before DMD 1.018) I typically add 
 opengl32.lib to the end of the link command.  This works fine, but in 
 versions later than 1.018 it cannot find the library to link.

 What changed or what am I missing?

 -David
I hate to be a pest but can anyone point me to why this is happening?
It might help us if we knew ... The location of the DMD compiler. The contents and location of the sci.ini file. The location of the opengl32.lib file. The command line you used to compile with. The %PATH% value. Also, if you change nothing else but the compiler being invoked, does it still work if you use a pre 1.018 compiler?
I have both DMC and DMD installed on Z:. I fixed this by changing sc.ini to explicitly point to the z:\dm\lib and z:\dmd\lib locations . My point is this worked pre 1.018 and is broken in all versions thereafter. I was just wondering what was changed, as something like this should work 'right out of the box'. I have been using DMD/DMC quite a while and this has always just worked. -David
Oct 31 2007