www.digitalmars.com         C & C++   DMDScript  

D - DMD 0.76 Phobos string.d problem

reply "Sean L. Palmer" <palmer.sean verizon.net> writes:
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Anyone else getting this?

c:\dmd\bin\..\src\phobos\string.d(376): unterminated character constant

c:\dmd\bin\..\src\phobos\string.d(376): found 'ff' when expecting ','

c:\dmd\bin\..\src\phobos\string.d(376): unterminated character constant

c:\dmd\bin\..\src\phobos\string.d(376): found ';' when expecting ','

c:\dmd\bin\..\src\phobos\string.d(377): found ';' when expecting ','

c:\dmd\bin\..\src\phobos\string.d(378): unterminated character constant

c:\dmd\bin\..\src\phobos\string.d(378): found 'ff' when expecting ','

c:\dmd\bin\..\src\phobos\string.d(378): unterminated character constant

c:\dmd\bin\..\src\phobos\string.d(378): found ';' when expecting ','

c:\dmd\bin\..\src\phobos\string.d(379): found ';' when expecting ','

c:\dmd\bin\..\src\phobos\string.d(380): expression expected, not '}'



In this part of string.d:



unittest

{

debug(string) printf("string.find.unittest\n");

int i;

i =3D find(null, cast(char[])'a');

assert(i =3D=3D -1);

i =3D find("def", cast(char[])'a');

assert(i =3D=3D -1);

i =3D find("abba", cast(char[])'a');

assert(i =3D=3D 0);

i =3D find("def", cast(char[])'f');

assert(i =3D=3D 2);

i =3D find("dfefffg", 'fff');

assert(i =3D=3D 3);

i =3D find("dfeffgfff", 'fff');

assert(i =3D=3D 6);

}



Also getting this linker error on some math intrinsics:



TestD3D.obj(TestD3D)=20

Error 42: Symbol Undefined _D4math3sinFeZe

TestD3D.obj(TestD3D)=20

Error 42: Symbol Undefined _D4math3cosFeZe



And this which is plainly in com.d:



d3d8.obj(d3d8)=20

Error 42: Symbol Undefined __Interface_3com8IUnknown



Maybe I need to do a clean install.  I think I may try d3d9 anyway.



Sean
Dec 30 2003
parent "Walter" <walter digitalmars.com> writes:
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

No, I can build the library.
  "Sean L. Palmer" <palmer.sean verizon.net> wrote in message =
news:bsstr5$1hn6$1 digitaldaemon.com...
  Anyone else getting this?

  c:\dmd\bin\..\src\phobos\string.d(376): unterminated character =
constant

  c:\dmd\bin\..\src\phobos\string.d(376): found 'ff' when expecting ','

  c:\dmd\bin\..\src\phobos\string.d(376): unterminated character =
constant

  c:\dmd\bin\..\src\phobos\string.d(376): found ';' when expecting ','

  c:\dmd\bin\..\src\phobos\string.d(377): found ';' when expecting ','

  c:\dmd\bin\..\src\phobos\string.d(378): unterminated character =
constant

  c:\dmd\bin\..\src\phobos\string.d(378): found 'ff' when expecting ','

  c:\dmd\bin\..\src\phobos\string.d(378): unterminated character =
constant

  c:\dmd\bin\..\src\phobos\string.d(378): found ';' when expecting ','

  c:\dmd\bin\..\src\phobos\string.d(379): found ';' when expecting ','

  c:\dmd\bin\..\src\phobos\string.d(380): expression expected, not '}'



  In this part of string.d:



  unittest

  {

  debug(string) printf("string.find.unittest\n");

  int i;

  i =3D find(null, cast(char[])'a');

  assert(i =3D=3D -1);

  i =3D find("def", cast(char[])'a');

  assert(i =3D=3D -1);

  i =3D find("abba", cast(char[])'a');

  assert(i =3D=3D 0);

  i =3D find("def", cast(char[])'f');

  assert(i =3D=3D 2);

  i =3D find("dfefffg", 'fff');

  assert(i =3D=3D 3);

  i =3D find("dfeffgfff", 'fff');

  assert(i =3D=3D 6);

  }



  Also getting this linker error on some math intrinsics:



  TestD3D.obj(TestD3D)=20

  Error 42: Symbol Undefined _D4math3sinFeZe

  TestD3D.obj(TestD3D)=20

  Error 42: Symbol Undefined _D4math3cosFeZe



  And this which is plainly in com.d:



  d3d8.obj(d3d8)=20

  Error 42: Symbol Undefined __Interface_3com8IUnknown



  Maybe I need to do a clean install.  I think I may try d3d9 anyway.



  Sean
Dec 30 2003