www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - TypeInfo init symbol not found in 102

reply "Ben Hinkle" <bhinkle mathworks.com> writes:
in dmd-102 on win32 (haven't tried linux) the following
int main() {
TypeInfo ti = typeid(int);
return 0;
}
errors with:
main.obj(main)
 Error 42: Symbol Undefined _init_10TypeInfo_i
--- errorlevel 1

Associative arrays work fine so this is just a problem with user code that
tries to get a TypeInfo.

-Ben
Sep 22 2004
next sibling parent Bastiaan Veelo <Bastiaan.N.Veelo ntnu.no> writes:
Linux works fine.

Bastiaan.
Sep 22 2004
prev sibling next sibling parent Ben Hinkle <bhinkle4 juno.com> writes:
Interesting - I can't reproduce this on my other win32 box. I probably
have a path problem on that other one.
Sep 22 2004
prev sibling parent "Ben Hinkle" <bhinkle mathworks.com> writes:
More info. With dmd-101 it works fine but with 102 it errors. The problem
seems to be the symbol name in 102 is _init_10TypeInfo_i and in 101 it is
__init_TypeInfo_i (with two leading underscores). I haven't figured out what
changed in 102 that could have caused this.

"Ben Hinkle" <bhinkle mathworks.com> wrote in message
news:cis04m$2h9v$1 digitaldaemon.com...
 in dmd-102 on win32 (haven't tried linux) the following
 int main() {
 TypeInfo ti = typeid(int);
 return 0;
 }
 errors with:
 main.obj(main)
  Error 42: Symbol Undefined _init_10TypeInfo_i
 --- errorlevel 1

 Associative arrays work fine so this is just a problem with user code that
 tries to get a TypeInfo.

 -Ben
Sep 24 2004