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

  • SEARCH
  • Home
  • 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 9228507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:20:30+00:00 2026-06-18T05:20:30+00:00

I am getting a compile time for an enum in C++ , the error

  • 0

I am getting a compile time for an enum in C++ , the error says Expected a class or namespace

  mf.setStatus(MediaFile::SyncStatus::Synced);

The enum is defined like this

 class MediaFile
 {
    public:
    enum SyncStatus 
    {
        New = 0,
        Remove = 5,
        Synced = 10,
        Unknown = 15
    };

    //...
 };

I am compiling in xcode but I guess it has to do with C++ syntax, previously it compiled fine on Visual studio. Visual studio probably gave some warnings about it, but did the build
Any suggestions please ?

  • 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-06-18T05:20:31+00:00Added an answer on June 18, 2026 at 5:20 am

    Try MediaFile::Synced instead. SyncStatus is a type name (as in SyncStatus theStatus), not a namespace.

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

Sidebar

Related Questions

I am getting this error during compile time (g++ 4.4.6): main.cpp: In function ‘int
I keep getting the error: Type was not found or was not a compile-time
I'm getting a compile time error 'UserQuery.ReturnInt(UserQuery.Foo)': not all code paths return a value
I'm getting a compile-time error that my method call has some invalid arguments. public
I'm getting an anonymous class at compile-time that I'm not expecting. Relevant code follows,
Now I am getting compile time error at line 30 and 38 that 'fin'
I'm getting a compile-time error. It complains that I'm initializing a variable, but not
I'm going through the railstutorial.org book and getting a compile time error in code
I am getting a compile error from the following property. The error is: The
i am getting the compile error: Error 7 error C2084: function 'Boolean IsPointInRect(...)' already

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.