www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Charlie

reply std.math , which lib ? Also pragma(link) .. <std.math_member pathlink.com> writes:
Im using exp() and getting _expl undefined , which lib do i need to link to ?
This is windows , there doesnt seem to be a 'm' lib, or anything that looks like
it would contain math functions.

Id also like to request a 'pragma(link) foo.lib' which will automatically link
to foo.lib , and is it possible to make phobos indepenet of external libraries
??

Charlie
Nov 13 2004
parent reply Joey Peters <Joey_member pathlink.com> writes:
In article <cn61cj$2ge7$1 digitaldaemon.com>, link says... 
 
Im using exp()
and getting _expl undefined , which lib do i need to link to ?
This is windows
, there doesnt seem to be a 'm' lib, or anything that looks like
it would
contain math functions. So this is a linker error? What library are you using?
Id also like to request a 'pragma(link) foo.lib' which will
automatically link
to foo.lib , and is it possible to make phobos indepenet of
external libraries
?? 
I don't think they will do that, not in that way. Pragmas are generally evil (that's just what I think though). Also, phobos get's linked in statically, and phobos itself I believe just uses some parts the clib and for the rest whatever is added to it (compression lib etc), but I think those get linked in too.
Nov 13 2004
parent Charlie <Charlie_member pathlink.com> writes:
So this is a linker error? What library are you
using? 
I'm not, trying to find what library I need to link to when using std.math. Starting new post; messed up the subject on the last one :S. __qbert In article <cn69v5$2rcc$1 digitaldaemon.com>, Joey Peters says...
In article <cn61cj$2ge7$1 digitaldaemon.com>, link says... 
 
Im using exp()
and getting _expl undefined , which lib do i need to link to ?
This is windows
, there doesnt seem to be a 'm' lib, or anything that looks like
it would
contain math functions. So this is a linker error? What library are you using?
Id also like to request a 'pragma(link) foo.lib' which will
automatically link
to foo.lib , and is it possible to make phobos indepenet of
external libraries
?? 
I don't think they will do that, not in that way. Pragmas are generally evil (that's just what I think though). Also, phobos get's linked in statically, and phobos itself I believe just uses some parts the clib and for the rest whatever is added to it (compression lib etc), but I think those get linked in too.
Nov 13 2004