Thread overview
Template Stream Problems
May 18, 2005
Rob
May 18, 2005
Ben Hinkle
May 18, 2005
Rob
May 18, 2005
Ben Hinkle
May 18, 2005
Derek Parnell
May 18, 2005
Anyone know why the following won't link?

import std.stream;
void main()
{
TArrayStream!(char[]) m;
}

Gives a tonne of linking errors.

Rob
May 18, 2005
"Rob" <Rob_member@pathlink.com> wrote in message news:d6g02s$30a5$1@digitaldaemon.com...
> Anyone know why the following won't link?
>
> import std.stream;
> void main()
> {
> TArrayStream!(char[]) m;
> }
>
> Gives a tonne of linking errors.
>
> Rob

Try building without debugging (-release). Since phobos ships without
debugging symbols templates can't be instantiated from it in debug builds.
Or you can rebuild phobos with -g to get the right symbols.
In the past that's what I had to do to get TArraySteam useful but there
could be other issues, too. Listing some of the errors would help.


May 18, 2005
-release fixed the problem.

Is there a quick howto on compiling phobos with the debug symbols?

In article <d6g0jo$30pg$1@digitaldaemon.com>, Ben Hinkle says...
>
>
>"Rob" <Rob_member@pathlink.com> wrote in message news:d6g02s$30a5$1@digitaldaemon.com...
>> Anyone know why the following won't link?
>>
>> import std.stream;
>> void main()
>> {
>> TArrayStream!(char[]) m;
>> }
>>
>> Gives a tonne of linking errors.
>>
>> Rob
>
>Try building without debugging (-release). Since phobos ships without
>debugging symbols templates can't be instantiated from it in debug builds.
>Or you can rebuild phobos with -g to get the right symbols.
>In the past that's what I had to do to get TArraySteam useful but there
>could be other issues, too. Listing some of the errors would help.
>
>


May 18, 2005
"Rob" <Rob_member@pathlink.com> wrote in message news:d6g1v4$fp$1@digitaldaemon.com...
> -release fixed the problem.
>
> Is there a quick howto on compiling phobos with the debug symbols?

hmm - none that come to mind immediately. Try looking around on dsource or some of the tutorial sites. Other than that I'd say switch the comments in the win32.mak file in src/phobos from

DFLAGS=-O -release
#DFLAGS=-unittest -g

to

#DFLAGS=-O -release
DFLAGS=-unittest -g

and type "make -f win32.mak". Then copy the resulting phobos.lib to dmd/lib (be sure to backup the original, too...)


May 18, 2005
On Wed, 18 May 2005 18:04:12 +0000 (UTC), Rob wrote:

> Anyone know why the following won't link?
> 
> import std.stream;
> void main()
> {
> TArrayStream!(char[]) m;
> }
> 
> Gives a tonne of linking errors.
> 
> Rob

It compiled and linked without error here. DMD 0.123 Windows XP.

-- 
Derek Parnell
Melbourne, Australia
19/05/2005 6:47:03 AM