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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:03:27+00:00 2026-05-28T16:03:27+00:00

Hello how to rewrite probably bad construction? I tryed to ask how to fix

  • 0

Hello how to rewrite probably bad construction?
I tryed to ask how to fix it to make it work there,but maybe it’s all the bad conception.
Any other solution to do that?
It’s compiled in Eclipse using GCC for linux, compiled as C code.

file first.h

#ifndef FIRST_H_
#define FIRST_H_

typedef struct foo
{
    int a;
    char *c;
} foo_struct;

#endif /* FIRST_H_ */

file second.h:

#ifndef SECOND_H_
#define SECOND_H_

#include "first.h"

typedef struct wtf
        {
        foo_struct *poleFOO[5];
        }wtf_struct;

#endif /* SECOND_H_ */

Concretely in file second.h row foo_struct *poleFOO[5]; throws: “foo_struct could not be resolved”
I work on Linux Ubuntu 11.10 using gcc in editor Eclipse for C and C++.

  • 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-28T16:03:28+00:00Added an answer on May 28, 2026 at 4:03 pm

    Okay, this is not an error from the compiler but from Eclipse. Simply Googl’ing the error “could not be resolved” points me to articles talking about Eclipse CDT (the eclipse subsystem for C/C++ development).

    So it has something to do with Eclipse, your C headers look syntactically right. I believe that without a C file but only headers, Eclipse does not know how to parse the headers only to create its own index database (must be used for intellisense, symbols list, etc.)

    I suggest you insert a simple C file including second.h, and with a main() function so that the link step passes as well, for example:

    #include "second.h"
    
    int main() {
        wtf_struct my_variable;
        return 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I am compiling a program with make but I get the error of
Hello i want make an condition in htaccess if link is contain category rewrite
Hello all you helpful folks @ stackoverflow! Best resources for Java GUI's? Looking at
Hello there and Merry Christmas !!! I am new to WPF and I am
Hello I have this rewrite Rule at my Wordpress RewriteRule ^trip/(.*)/$ /index.php?page_id=143&trip=$1 [L] Its
Hello fellow coders. So i decided to rewrite some of my old scripts i
I want to rewrite an url from example.php?id=123 to example-123-hello-world (where hello-world is some
Hello i am having a issue with htaccess mod_rewrite, maybe someone here could point
I have a rewrite in nginx or Apache for this address: http://domain.com/hello to a
Hey, I'm aware I could use a HTACCESS rewrite to write www.mysite.com/index.php?page=hello&subpage=welcome to www.mysite.com/1/hello/welcome

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.