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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:23:05+00:00 2026-05-26T07:23:05+00:00

I am a C/C++ newbie, so this might be a dumb question, I have

  • 0

I am a C/C++ newbie, so this might be a dumb question,
I have the following problem, I have a method in a c++ lib which is exported using
extern ‘C’ and it is being called by another method from a different c file.
So, I needed some structures in the c++ code, so the “smart” thing to do seemed to be simply add the structures to the .h file of the first class and import it. When I did so, the strangest thing happened. The C code which worked fine, broke saying three stupid things (note that the structures were simply moved from the code to the header). So, I have 3 instances, read errors, saying:

  1. Expected ; before * token;
  2. Iso C++ forbids declaration of ‘someclassname’ with no type
  3. type ‘someclassname’ could not be resolved

Any ideas?

  • 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-26T07:23:06+00:00Added an answer on May 26, 2026 at 7:23 am

    The compiler thinks that “someclassname” is a variable name. You wrote something like

    Employee* newguy = foo();
    

    And the compiler thinks you gave the name of an undeclared variable, Employee, complained about that, complained that a * doesn’t go after a variable name, and so on.

    Go look at where you think you’re explaining what “someclassname” is, because the compiler isn’t getting it.

    ps: post your code!

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

Sidebar

Related Questions

Might be a newbie question. I have a code line like this: <div class=template
This might be a pretty simple question but I'm a Crystal Reports newbie...I have
This might be a very newbie question, but I didn't find anything satisfying I
Ok, this might sound as a silly question, but I am a newbie without
Am vb.net newbie. This question might be very novice and answered before, but i
I am a newbie in Php and this might be a quite basic question.
I'm a newbie with PHP so this might be ridiculously easy question, but despite
I'm an absolute newbie to Varnish & caching in general, so this question might
I'm a newbie to SQL and .Net and this question might be stupid too
This might be a newbie question. But I am working with iPhone programming and

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.