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 6139505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:59:53+00:00 2026-05-23T17:59:53+00:00

I am seeing some C++ errors I don’t understand (I am java centric coder):

  • 0

I am seeing some C++ errors I don’t understand (I am java centric coder):

WarningNotification_if.cpp: In function 'void fireStatusBarMessage(char*, int)':
WarningNotification_if.cpp:62:14: error: expected type-specifier
WarningNotification_if.cpp:62:14: error: cannot convert 'int*' to 'WarningEventData*' in initialization
WarningNotification_if.cpp:62:14: error: expected ',' or ';'

Here is the actual code:

void fireStatusBarMessage(char *message = 0, int aTime = 0 )
{
   LmLocker locker( (char *)__FILE__, __LINE__, &WarningEventUpdateMutex );
   HMI_DEBUG(EVENT_DEBUG, (stderr, "Fire Status Bar Message\n") );
   if ( message != 0 )
   {
      QString warningMessage = QString( message );
      WarningEventData *theEventData = 
         new WarningEventData::WarningEventData();
      theEventData->initialize();
      theEventData->setMessageType( SESSION_STATUSBAR_TYPE );
      theEventData->setCommand( APPEND_WARNING );
      theEventData->setMessage( warningMessage );
      theEventData->setModifier( aTime );
      theEventData->setCategory( SESSION_STATUSBAR_TYPE );
      WarningNotification::fireChange( SESSION_STATUSBAR_TYPE, theEventData );
   } /* endif - message contents */
}

Do I need to be importing something else or using a certain -D flag?

  • 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-23T17:59:54+00:00Added an answer on May 23, 2026 at 5:59 pm
    WarningEventData *theEventData = 
         new WarningEventData::WarningEventData();
    

    This is quite odd. A new expression is supposed to name a type, not a constructor. Is WarningEventData inside a like-named namespace? And if so, why isn’t it WarningEventData::WarningEventData* theEventData ?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to integrate yaml-cpp into a project, but I'm seeing some unexpected errors
I'm seeing some errors that would indicate a connection leak. That is, connections that
I'm new to PHP and I'm confused seeing some examples calling a function with
I'm seeing a weird error message and am looking for some ideas as to
Seeing some strange things; help is being solicited. I have a query, like so:
I am seeing some rather weird behavior with PowerShell, it looks like custom functions
I'm seeing some code I've inherited that looks like the following: @interface SomeClass (private)
So I'm seeing some strange issues in ie8 with jquery, and assorted javascript files.
I've been seeing some conflicting information that an XHTML document must also declare itself
I am developing an OpenGL application and I am seeing some strange things happen.

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.