Skip to content

Missing RTTI ? (or not) #2465

@XutaxKamay

Description

@XutaxKamay

Hello,

I noticed something else where I can not use the shared library on Linux (liblibDaScriptDyn.so) at runtime because of missing type info like (using clang/LLVM):

undefined symbol: _ZTIN3das20LinearChunkAllocatorE

GCC seems to be not liking it much too:

/usr/bin/ld: engine/sys_das.cpp.7.o:(.data.rel.ro._ZTIN3das13NodeAllocatorE[_ZTIN3das13NodeAllocatorE]+0x10): undefined reference to `typeinfo for das::LinearChunkAllocator'
collect2: error: ld returned 1 exit status

I understand by design that RTTI has been disabled for performance and others things, but do you think in the future it would be possible to make releases with RTTI on and off ? (so this leaves the option for people to choose between the different libs)

I have sadly a lot of legacy code to deal with so I can not disable RTTI on my side even if I would like to do so.
For now I rely on my own builds.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions