digitalmars.D - can't complie throw new Exception();
- NCODA (13/13) Nov 10 2007 Hi, I'm new to D and trying to learn how to use it
- BCS (2/21) Nov 10 2007 My guess would be some lib path error, but it's only a guess.
- Anders Johnsen (5/25) Nov 11 2007 Looks like the error i had when i installed tango, but forgot to copy ov...
Hi, I'm new to D and trying to learn how to use it
I downloaded some sample code and get this compile error
Symbol Undefined _D6object9Exception5_ctorMFAaZC9Exception
Its on the throw new Exception line (If I comment it out, I can compile
properly)
// Now open a SDL OpenGL window with the given parameters
if (SDL_SetVideoMode(width, height, bits, mode) is null)
{
throw new Exception("Failed to open OpenGL window: " ~ getSDLError());
}
Anyone know what could cause this? And how to fix it?
The sample game runs fine if I comment out all the exceptions, but I would like
to have Exception handling.
Im using derelict and tango with DMD
(CodeBlocks IDE)
Nov 10 2007
Reply to NCODA,
Hi, I'm new to D and trying to learn how to use it
I downloaded some sample code and get this compile error
Symbol Undefined _D6object9Exception5_ctorMFAaZC9Exception
Its on the throw new Exception line (If I comment it out, I can
compile properly)
// Now open a SDL OpenGL window with the given parameters
if (SDL_SetVideoMode(width, height, bits, mode) is null)
{
throw new Exception("Failed to open OpenGL window: " ~
getSDLError());
}
Anyone know what could cause this? And how to fix it?
The sample game runs fine if I comment out all the exceptions, but I
would like to have Exception handling.
Im using derelict and tango with DMD
(CodeBlocks IDE)
My guess would be some lib path error, but it's only a guess.
Nov 10 2007
NCODA wrote:
Hi, I'm new to D and trying to learn how to use it
I downloaded some sample code and get this compile error
Symbol Undefined _D6object9Exception5_ctorMFAaZC9Exception
Its on the throw new Exception line (If I comment it out, I can compile
properly) // Now open a SDL OpenGL window with the given parameters
if (SDL_SetVideoMode(width, height, bits, mode) is null)
{
throw new Exception("Failed to open OpenGL window: " ~ getSDLError());
}
Anyone know what could cause this? And how to fix it?
The sample game runs fine if I comment out all the exceptions, but I would
like to have Exception handling.
Im using derelict and tango with DMD
(CodeBlocks IDE)
Looks like the error i had when i installed tango, but forgot to copy over
tango's object.d file to the include root(overwrite the old phobos
object.d)
Anders Johnsen
Nov 11 2007









BCS <ao pathlink.com> 