Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7413337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:40:47+00:00 2026-05-29T06:40:47+00:00

I am trying to compile some C++ code from the Festival project. When I

  • 0

I am trying to compile some C++ code from the Festival project. When I compile Festival, I get the following errors:

Making in directory ./src ...
Making in directory src/arch ...
Making in directory src/arch/festival ...
Making in directory src/modules ...
Making in directory src/modules/rxp ...
Making in directory src/modules/clunits ...
Making in directory src/modules/clustergen ...
Making in directory src/modules/MultiSyn ...
Making in directory src/modules/MultiSyn/inst_tmpl ...
Making in directory src/modules/hts_engine ...
Making in directory src/modules/diphone ...
gcc -c -g -I../include -I../../../src/include -I../../../../speech_tools/include di_io.cc
di_io.cc: In function ‘void load_index(DIPHONE_DATABASE*)’:
di_io.cc:111: error: ambiguous overload for ‘operator=’ in ‘line = EST_TokenStream::get_upto_eoln()()’
../../../../speech_tools/include/EST_String.h:477: note: candidates are: EST_String& EST_String::operator=(const char*) <near match>
../../../../speech_tools/include/EST_String.h:479: note:                 EST_String& EST_String::operator=(char) <near match>
../../../../speech_tools/include/EST_String.h:481: note:                 EST_String& EST_String::operator=(const EST_String&) <near match>
make[3]: *** [di_io.o] Error 1
make[2]: *** [diphone] Error 2
make[1]: *** [modules] Error 2
make: *** [src] Error 2  

The function where the error occurs:

static void load_index(DIPHONE_DATABASE *database)
{
    EST_TokenStream ts;
    int i;
    EST_String line;

    if (ts.open(database->index_file) == -1)
    {
    cerr << "Diphone: Can't open file " << database->index_file << endl;
    festival_error();
    }

    for (i=0; (!ts.eof()) && (i<database->ndiphs);)
    {
    line = ts.get_upto_eoln();   //this is di_io.cc:111
    if ((line.length() > 0) && (line[0] != ';'))
    {
        EST_TokenStream ls;
        ls.open_string(line);
        database->indx[i]->diph = wstrdup(ls.get().string());
        database->indx[i]->file = wstrdup(ls.get().string());
        database->indx[i]->beg = atof(ls.get().string());
        database->indx[i]->mid = atof(ls.get().string());
        database->indx[i]->end = atof(ls.get().string());
        ls.close();
        i++;
    }
    }

    if (i == database->ndiphs)
    {
    cerr << "Diphone: too many diphones in DB" << endl;
    festival_error();
    }

    database->nindex = i;
    database->ndiphs = i;

    ts.close();
}

How can I get rid of the above error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:40:48+00:00Added an answer on May 29, 2026 at 6:40 am

    I’ll assume that the non-standard types you’re using are from the speech-tools library, documented here, since that was what I found when I googled the class names. If that’s wrong, please update the question to indicate where they come from.

    I’ll also assume that the error line (line 111 of di_io.cc) is the one that says:

    line = ts.get_upto_eoln();
    

    since that’s the only one I can see that could cause that error message; again, if it’s a different line please update the question.

    EST_TokenStream::get_upto_eoln returns EST_Token. You are trying to assign it to a variable of a different type (EST_String), and there is no implicit conversion.

    You can convert the function result to EST_String using its string function:

    line = ts.get_upto_eoln().string();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to compile some code from a project that is no longer.
I'm trying to compile some code which contains the following declaration, because I would
I'm trying to compile some code from a Windows API. It says that certain
Was trying to compile some code from this SO question and run into this
I'm trying to compile code from an open source project, and I'm running into
I'm trying to compile with g++ some code previously developed under Visual C++ 2008
While trying to compile my project, that uses some third party headers, with mingw
When trying to compile the following code in LINQPad : void Main() { DriveInfo.GetDrives().Select(GetProviderName).Dump();
I am trying to get some C++ code originally written in Microsoft Visual Studio
I am trying to port some C++ code from Windows to Solaris(Unix). There are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.