## digitalmars.D - D Compiler casting problems

MofuX <MofuX_member pathlink.com> writes:
hi,
i'm kinda new to D and tried to install the dig library. the problem i had is
that i get compiler errors caused by new casting functions within the newest
version of the D compiler (well, at least that's my suggestion)

i tried to change them all manually by writing a cast(type).... but i can't get
the librarys running.

although i have a problem on how to install librarys correctly (what folder
structure should i use)

opengl from DedicateD isn't working correctly also, maybe caused by failing
dependencies...

so what i'm searching for is a short tutorial on how to install libs correctly
and how to stop the cast- error

thanks!

MofuX
Jun 15 2004
Mike Parker <aldacron71 yahoo.com> writes:
MofuX wrote:
hi,
i'm kinda new to D and tried to install the dig library. the problem i had is
that i get compiler errors caused by new casting functions within the newest
version of the D compiler (well, at least that's my suggestion)

dig is horribly outdated. Check out Joel Anderson's undig at http://www.dsource.org/ (or alternatively his home page at http://badmama.com.au/~anderson/).
opengl from DedicateD isn't working correctly also, maybe caused by failing
dependencies...

The stuff from DedicateD is also outdated, and there are several updated versions of Pavel's opengl floating around. Undig includes a working version. If you need/want to use OGL without linking to the import library, my Derelict project at dsource.org is another option.
so what i'm searching for is a short tutorial on how to install libs correctly

The easiest way is to drop them in the dmd\lib directory, but I wouldn't recommend that. What some do is to keep all of the libs they use in a common directory (other than dmd/lib) and then add the full path to the LIB environment variable in dm/bin/sc.ini. I usually just dump the libs into a common directory like I mentioned above, but rather than editing sc.ini I do something like this in my Makefile: DINC = -IC:\path\to\somelib\source -IC:\path\to\somelib2\source DFLAGS = -v -debug LIBS.PATH = C:\dev\d\lib LIBS = $(LIB.PATH)\somelib.lib$(LIB.PATH)\somelib2.lib dmd file.d $(LIBS)$(DFLAGS) \$(DINC)
Jun 15 2004