Skip to content

Compilation Error #4

@padsley

Description

@padsley

With ROOT 6:

/tmp/mid2root-70fc71.o: In function `m2r::process_args(int, char**, m2r::Options_t*)':
src/mid2root.cxx:(.text+0x9de): undefined reference to `TString::TString(std::string const&)'

It looks like that way of defining a TString might not exist in more modern ROOT versions:

root [0] TString *string = new TString(
TString TString() 	// Null string
TString TString(Ssiz_t ic) 	// Suggested capacity
TString TString(TString&& s) 	// Move constructor
TString TString(char c)
TString TString(char c, Ssiz_t s)
TString TString(const TString& s) 	// Copy constructor
TString TString(const TSubString& sub)
TString TString(const char* s) 	// Copy to embedded null
TString TString(const char* s, Ssiz_t n) 	// Copy past any embedded nulls
TString TString(const string& s)
TString TString(const string_view& sub)

I'm going to try a fix for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions