Thread overview | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 17, 2005 Pretty frustrating | ||||
---|---|---|---|---|
| ||||
Walter, I _IMPLORE_ you to clean up the error messages. In the meantime can someone please help to decode what the following gibberish means? I don't have an init() method for the class SectorCache (nor its TypeInfo???) so I am pretty stumped here. E:\proj\d\game\obj\bmp.obj(bmp) Error 42: Symbol Undefined _D3std6stream4File5_ctorFAaE3std6stream8FileModeZC3std6stream4File E:\proj\d\game\obj\world.obj(world) Error 42: Symbol Undefined __init_30TypeInfo_PC5world11SectorCache E:\proj\d\game\obj\world.obj(world) Error 42: Symbol Undefined __init_51TypeInfo_C5clist27CList_PC5world11SectorCache5CList --- errorlevel 3 I can post code, but its pretty long. -DavidM |
May 17, 2005 Re: Pretty frustrating | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Medlock | David Medlock wrote:
> Walter, I _IMPLORE_ you to clean up the error messages.
>
> In the meantime can someone please help to decode what the following gibberish means? I don't have an init() method for the class SectorCache (nor its TypeInfo???) so I am pretty stumped here.
>
> E:\proj\d\game\obj\bmp.obj(bmp)
> Error 42: Symbol Undefined _D3std6stream4File5_ctorFAaE3std6stream8FileModeZC3std6stream4File
> E:\proj\d\game\obj\world.obj(world)
> Error 42: Symbol Undefined __init_30TypeInfo_PC5world11SectorCache
> E:\proj\d\game\obj\world.obj(world)
> Error 42: Symbol Undefined __init_51TypeInfo_C5clist27CList_PC5world11SectorCache5CList
> --- errorlevel 3
Are you importing certain modules without compiling those same modules and linking them with your code?
|
May 17, 2005 Re: Pretty frustrating | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Medlock | "David Medlock" <noone@nowhere.com> wrote in message news:d6cqao$1b7t$1@digitaldaemon.com... > Walter, I _IMPLORE_ you to clean up the error messages. > > In the meantime can someone please help to decode what the following gibberish means? I don't have an init() method for the class SectorCache (nor its TypeInfo???) so I am pretty stumped here. > > E:\proj\d\game\obj\bmp.obj(bmp) > Error 42: Symbol Undefined > _D3std6stream4File5_ctorFAaE3std6stream8FileModeZC3std6stream4File > E:\proj\d\game\obj\world.obj(world) > Error 42: Symbol Undefined __init_30TypeInfo_PC5world11SectorCache > E:\proj\d\game\obj\world.obj(world) > Error 42: Symbol Undefined > __init_51TypeInfo_C5clist27CList_PC5world11SectorCache5CList > --- errorlevel 3 > > > I can post code, but its pretty long. > -DavidM Try deleting all the obj files and recompiling cleanly. Also it seems odd that std.stream symbols can't be found so I'd check your phobos version or path to phobos or something. But first I'd to a clean rebuild to see if the problem is crufty obj files. |
May 17, 2005 Re: Pretty frustrating | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russ Lewis Attachments: | Russ Lewis wrote: > David Medlock wrote: > >> Walter, I _IMPLORE_ you to clean up the error messages. >> >> In the meantime can someone please help to decode what the following gibberish means? I don't have an init() method for the class SectorCache (nor its TypeInfo???) so I am pretty stumped here. >> >> E:\proj\d\game\obj\bmp.obj(bmp) >> Error 42: Symbol Undefined >> _D3std6stream4File5_ctorFAaE3std6stream8FileModeZC3std6stream4File >> E:\proj\d\game\obj\world.obj(world) >> Error 42: Symbol Undefined __init_30TypeInfo_PC5world11SectorCache >> E:\proj\d\game\obj\world.obj(world) >> Error 42: Symbol Undefined >> __init_51TypeInfo_C5clist27CList_PC5world11SectorCache5CList >> --- errorlevel 3 > > > Are you importing certain modules without compiling those same modules and linking them with your code? I am using my DManager project tool so I am certain all files are compiled and on the link line. (posted below) dmd E:\proj\d\game\obj\actor.obj E:\proj\d\game\obj\bmp.obj E:\proj\d\game\obj\client.obj E:\proj\d\game\obj\editor.obj E:\proj\d\game\obj\gl.obj E:\proj\d\game\obj\gl2d.obj E:\proj\d\game\obj\glfw.obj E:\proj\d\game\obj\glist.obj E:\proj\d\game\obj\gltext.obj E:\proj\d\game\obj\input.obj E:\proj\d\game\obj\material.obj E:\proj\d\game\obj\menus.obj E:\proj\d\game\obj\particles.obj E:\proj\d\game\obj\pcx.obj E:\proj\d\game\obj\tasks.obj E:\proj\d\game\obj\texture.obj E:\proj\d\game\obj\world.obj E:\proj\d\game\obj\logging.obj E:\proj\d\game\obj\geom3d.obj E:\proj\d\game\obj\math3d.obj E:\proj\d\game\obj\array.obj E:\proj\d\game\obj\clist.obj E:\proj\d\game\lib\glfw25.lib -ofgame -g opengl32.lib Ive been lazy about learning Dereks Build, so I haven't attempted that yet :( but the command line version should work. Amazingly this happens when I attempt to use my CList (circular list) template class( posted ) with the SectorCache class. A constructor for CList uses TypeInfo arguments, but I don't see how it could result in missing symbols. -DavidM |
May 17, 2005 Re: Pretty frustrating | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben Hinkle | Ben Hinkle wrote:
> "David Medlock" <noone@nowhere.com> wrote in message news:d6cqao$1b7t$1@digitaldaemon.com...
>
>>Walter, I _IMPLORE_ you to clean up the error messages.
>>
>>In the meantime can someone please help to decode what the following gibberish means? I don't have an init() method for the class SectorCache (nor its TypeInfo???) so I am pretty stumped here.
>>
>>E:\proj\d\game\obj\bmp.obj(bmp)
>> Error 42: Symbol Undefined
>>_D3std6stream4File5_ctorFAaE3std6stream8FileModeZC3std6stream4File
>>E:\proj\d\game\obj\world.obj(world)
>> Error 42: Symbol Undefined __init_30TypeInfo_PC5world11SectorCache
>>E:\proj\d\game\obj\world.obj(world)
>> Error 42: Symbol Undefined
>>__init_51TypeInfo_C5clist27CList_PC5world11SectorCache5CList
>>--- errorlevel 3
>>
>>
>>I can post code, but its pretty long.
>>-DavidM
>
>
> Try deleting all the obj files and recompiling cleanly. Also it seems odd that std.stream symbols can't be found so I'd check your phobos version or path to phobos or something. But first I'd to a clean rebuild to see if the problem is crufty obj files.
>
>
Dmanager has a full build option, so I had tried that. I just deleted them by hand and retried with the same results.
-DavidM
|
May 17, 2005 Re: Pretty frustrating | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Medlock | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Medlock schrieb am Tue, 17 May 2005 09:51:03 -0400: > Ben Hinkle wrote: > >> "David Medlock" <noone@nowhere.com> wrote in message news:d6cqao$1b7t$1@digitaldaemon.com... >> >>>Walter, I _IMPLORE_ you to clean up the error messages. >>> >>>In the meantime can someone please help to decode what the following gibberish means? I don't have an init() method for the class SectorCache (nor its TypeInfo???) so I am pretty stumped here. >>> >>>E:\proj\d\game\obj\bmp.obj(bmp) >>> Error 42: Symbol Undefined >>>_D3std6stream4File5_ctorFAaE3std6stream8FileModeZC3std6stream4File E:\proj\d\game\obj\world.obj(world) >>> Error 42: Symbol Undefined __init_30TypeInfo_PC5world11SectorCache >>>E:\proj\d\game\obj\world.obj(world) >>> Error 42: Symbol Undefined >>>__init_51TypeInfo_C5clist27CList_PC5world11SectorCache5CList >>>--- errorlevel 3 >> >> Try deleting all the obj files and recompiling cleanly. Also it seems odd that std.stream symbols can't be found so I'd check your phobos version or path to phobos or something. But first I'd to a clean rebuild to see if the problem is crufty obj files. >> > Dmanager has a full build option, so I had tried that. I just deleted them by hand and retried with the same results. Can you wipe up a simple file that uses std.stream.File and std.stream.FileMode ? Note: Those messages aren't produced by dmd but by the linker. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCihT/3w+/yD4P9tIRAmYtAKC+Q1uOaj+eoXJdByOZ5UQfugOePACaA4ni k24WCqTOAcWK8KlMEN15WVs= =CPpI -----END PGP SIGNATURE----- |
May 17, 2005 Re: Pretty frustrating | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne | Thomas Kuehne wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > David Medlock schrieb am Tue, 17 May 2005 09:51:03 -0400: > >>Ben Hinkle wrote: >> >> >>>"David Medlock" <noone@nowhere.com> wrote in message news:d6cqao$1b7t$1@digitaldaemon.com... >>> >>> >>>>Walter, I _IMPLORE_ you to clean up the error messages. >>>> >>>>In the meantime can someone please help to decode what the following gibberish means? I don't have an init() method for the class SectorCache (nor its TypeInfo???) so I am pretty stumped here. >>>> >>>>E:\proj\d\game\obj\bmp.obj(bmp) >>>>Error 42: Symbol Undefined _D3std6stream4File5_ctorFAaE3std6stream8FileModeZC3std6stream4File >>>>E:\proj\d\game\obj\world.obj(world) >>>>Error 42: Symbol Undefined __init_30TypeInfo_PC5world11SectorCache >>>>E:\proj\d\game\obj\world.obj(world) >>>>Error 42: Symbol Undefined __init_51TypeInfo_C5clist27CList_PC5world11SectorCache5CList >>>>--- errorlevel 3 >>> >>>Try deleting all the obj files and recompiling cleanly. Also it seems odd that std.stream symbols can't be found so I'd check your phobos version or path to phobos or something. But first I'd to a clean rebuild to see if the problem is crufty obj files. >>> >> >>Dmanager has a full build option, so I had tried that. I just deleted them by hand and retried with the same results. > > > Can you wipe up a simple file that uses std.stream.File and > std.stream.FileMode ? > > Note: Those messages aren't produced by dmd but by the linker. > > Thomas > Actually the file stream issue was due to a mis-copy of the link command into a command window. Only the following two errors are the issue: E:\proj\d\game\obj\world.obj(world) Error 42: Symbol Undefined __init_29TypeInfo_C5world11SectorCache E:\proj\d\game\obj\world.obj(world) Error 42: Symbol Undefined __init_50TypeInfo_C5clist26CList_C5world11SectorCache5CList --- errorlevel 2 I went ahead and commented out all the members and methods of SectorCache, did a full build, and still the error remains. The only line I can remove from my project to eliminate the error is alias CList!(SectorCache) CacheList; -DavidM |
May 17, 2005 Re: Pretty frustrating | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Medlock Attachments: | David Medlock wrote: | Russ Lewis wrote: | |> David Medlock wrote: |> |>> Walter, I _IMPLORE_ you to clean up the error messages. |>> |>> In the meantime can someone please help to decode what the following |>> gibberish means? I don't have an init() method for the class |>> SectorCache (nor its TypeInfo???) so I am pretty stumped here. |>> |>> E:\proj\d\game\obj\bmp.obj(bmp) |>> Error 42: Symbol Undefined |>> _D3std6stream4File5_ctorFAaE3std6stream8FileModeZC3std6stream4File |>> E:\proj\d\game\obj\world.obj(world) |>> Error 42: Symbol Undefined __init_30TypeInfo_PC5world11SectorCache |>> E:\proj\d\game\obj\world.obj(world) |>> Error 42: Symbol Undefined |>> __init_51TypeInfo_C5clist27CList_PC5world11SectorCache5CList |>> --- errorlevel 3 <snip> results on linux: ./dmd -version=Test a.d gcc a.o -o a -lphobos -lpthread -lm -Xlinker -L/opt/digitalmars/122/dmd/lib /usr/bin/ld: Warning: size of symbol `_D3std6stdarg8va_arg_i6va_argFKPvZi' changed from 18 in a.o to 21 in /opt/digitalmars/122/dmd/lib/libphobos.a(format.o) /usr/bin/ld: Warning: size of symbol `_D3std6stdarg9va_arg_Aa6va_argFKPvZAa' changed from 23 in a.o to 34 in /opt/digitalmars/122/dmd/lib/libphobos.a(format.o) ./a Count is 3 A Item= 300 A Item= 200 A Item= 100 B Item= 200 B Item= 300 B Item= 400 B Item= 500 B Item= 600 C Item= 300 C Item= 200 C Item= 100 C Item= 200 C Item= 300 C Item= 400 C Item= 500 found 200 in C, 200 = next ~ S : Hello ~ S : World ~ S : ! ~ S2 : Hello ~ S2 : Cruel ~ S2 : World ~ S2 : ! ~ S2 Reversed : ! ~ S2 Reversed : World ~ S2 Reversed : Cruel ~ S2 Reversed : Hello Thomas |
May 17, 2005 Re: Pretty frustrating | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Medlock | David Medlock wrote:
> Thomas Kuehne wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> David Medlock schrieb am Tue, 17 May 2005 09:51:03 -0400:
>>
>>> Ben Hinkle wrote:
>>>
>>>
>>>> "David Medlock" <noone@nowhere.com> wrote in message news:d6cqao$1b7t$1@digitaldaemon.com...
>>>>
>>>>
>>>>> Walter, I _IMPLORE_ you to clean up the error messages.
>>>>>
>>>>> In the meantime can someone please help to decode what the following gibberish means? I don't have an init() method for the class SectorCache (nor its TypeInfo???) so I am pretty stumped here.
>>>>>
>>>>> E:\proj\d\game\obj\bmp.obj(bmp)
>>>>> Error 42: Symbol Undefined _D3std6stream4File5_ctorFAaE3std6stream8FileModeZC3std6stream4File
>>>>> E:\proj\d\game\obj\world.obj(world)
>>>>> Error 42: Symbol Undefined __init_30TypeInfo_PC5world11SectorCache
>>>>> E:\proj\d\game\obj\world.obj(world)
>>>>> Error 42: Symbol Undefined __init_51TypeInfo_C5clist27CList_PC5world11SectorCache5CList
>>>>> --- errorlevel 3
>>>>
>>>>
>>>> Try deleting all the obj files and recompiling cleanly. Also it seems odd that std.stream symbols can't be found so I'd check your phobos version or path to phobos or something. But first I'd to a clean rebuild to see if the problem is crufty obj files.
>>>
>>>
>>> Dmanager has a full build option, so I had tried that. I just deleted them by hand and retried with the same results.
>>
>>
>>
>> Can you wipe up a simple file that uses std.stream.File and
>> std.stream.FileMode ?
>>
>> Note: Those messages aren't produced by dmd but by the linker.
>>
>> Thomas
>>
>
> Actually the file stream issue was due to a mis-copy of the link command into a command window.
>
> Only the following two errors are the issue:
>
> E:\proj\d\game\obj\world.obj(world)
> Error 42: Symbol Undefined __init_29TypeInfo_C5world11SectorCache
> E:\proj\d\game\obj\world.obj(world)
> Error 42: Symbol Undefined __init_50TypeInfo_C5clist26CList_C5world11SectorCache5CList
> --- errorlevel 2
>
> I went ahead and commented out all the members and methods of SectorCache, did a full build, and still the error remains.
>
> The only line I can remove from my project to eliminate the error is
>
> alias CList!(SectorCache) CacheList;
>
> -DavidM
Heh... This looks like a similar error to the one I just finished experiencing. I noted it in the digitalmars.d newsgroup.
See "Hair-pulling, D, and Optlink"
Walter explains the problem of having a template-only-containing object file inserted into a library. You don't appear to be using a lib file here... but perhaps the problem is related?
-JJR
|
May 17, 2005 Re: Pretty frustrating | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne | Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> David Medlock wrote:
> | Russ Lewis wrote:
> |
> |> David Medlock wrote:
> |>
> |>> Walter, I _IMPLORE_ you to clean up the error messages.
> |>>
> |>> In the meantime can someone please help to decode what the following
> |>> gibberish means? I don't have an init() method for the class
> |>> SectorCache (nor its TypeInfo???) so I am pretty stumped here.
> |>>
> |>> E:\proj\d\game\obj\bmp.obj(bmp)
> |>> Error 42: Symbol Undefined
> |>> _D3std6stream4File5_ctorFAaE3std6stream8FileModeZC3std6stream4File
> |>> E:\proj\d\game\obj\world.obj(world)
> |>> Error 42: Symbol Undefined __init_30TypeInfo_PC5world11SectorCache
> |>> E:\proj\d\game\obj\world.obj(world)
> |>> Error 42: Symbol Undefined
> |>> __init_51TypeInfo_C5clist27CList_PC5world11SectorCache5CList
> |>> --- errorlevel 3
>
> <snip>
>
> results on linux:
>
> ../dmd -version=Test a.d
> gcc a.o -o a -lphobos -lpthread -lm -Xlinker -L/opt/digitalmars/122/dmd/lib
> /usr/bin/ld: Warning: size of symbol
> `_D3std6stdarg8va_arg_i6va_argFKPvZi' changed from 18 in a.o to 21 in
> /opt/digitalmars/122/dmd/lib/libphobos.a(format.o)
> /usr/bin/ld: Warning: size of symbol
> `_D3std6stdarg9va_arg_Aa6va_argFKPvZAa' changed from 23 in a.o to 34 in
> /opt/digitalmars/122/dmd/lib/libphobos.a(format.o)
>
> ../a
> Count is 3
> A Item= 300
> A Item= 200
> A Item= 100
> B Item= 200
> B Item= 300
> B Item= 400
> B Item= 500
> B Item= 600
> C Item= 300
> C Item= 200
> C Item= 100
> C Item= 200
> C Item= 300
> C Item= 400
> C Item= 500
> found 200 in C, 200 = next
> ~ S : Hello
> ~ S : World
> ~ S : !
> ~ S2 : Hello
> ~ S2 : Cruel
> ~ S2 : World
> ~ S2 : !
> ~ S2 Reversed : !
> ~ S2 Reversed : World
> ~ S2 Reversed : Cruel
> ~ S2 Reversed : Hello
>
> Thomas
> -----BEGIN PGP SIGNATURE-----
>
> iD8DBQFCihes3w+/yD4P9tIRAh9hAJwJnFIuhU+ybEomWlWvobLd37lmKACgyxu6
> tkrnnZ+GxpZ4FKV6t3Hq6NQ=
> =eCtJ
> -----END PGP SIGNATURE-----
This even more proof of the similarity to the problem I was having with optlink. My linux version worked the same way despite the failure of the windows version.
I'm pretty sure this is very similar to the "template-in-library" problem that I had. It's been diagnosed and it is windows specific. It's due to the OMF format short-comings.
There is a workaround.
Look at "Hair-pulling, D, and Optlink" on the d.newsgroup. Walter explains it.
-JJR
|
Copyright © 1999-2021 by the D Language Foundation