Click to See Complete Forum and Search --> : [linker] without windowsstandardlibs - const type_info::vftable' makes trouble


garaone
April 26th, 2005, 11:17 AM
hey

i try to make a small framework for opengl and network...

i link with ignoring the windowsstandardlibs and use wcrt as alternative lib.
i also disable exception handling with comilerflags

in my socketclass i have the problem with linking to const type_info::`vftable'

german linkerror:
socket.obj : error LNK2001: Nichtaufgelöstes externes Symbol "const type_info::`vftable'" (??_7type_info@@6B@)

i dont know it exactly... but it seems that something is needed vor the virtual function table of the classes...
it seems that winsock2 uses it.

how i can solve the problem without the standardlibs?

is there a workaround... or what is a possible error in my code?

is there an alternative socket implementation under windows?


thanks for every tip...

greets gara

NoHero
April 27th, 2005, 09:59 AM
You should post a English translation of your linker error, otherwise the other's won't understand. Glad for you that I am Austrian and can read the linker message.

Maybe you have also turned RTTI (Run Time Type Information) off. This is generally not recommended. If you turn RTTI off (it is possible in the Compiler properties of your Project) it will kick all type_info classes out which would identify an object.

mkuhac
April 27th, 2005, 10:13 PM
It seems that wcrt doesn't support RTTI. So you will have to:
a) use full c and cpp runtime library (msvcrt.dll & msvcprt.dll & msvcirt.dll) or
b) remove any RTTI dependencies from your project.