- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I try to use the last version of the Intel C Compler and successuflly added it into Visual Studio 2022.
I run into an compiler error that I dont get rid off.
We used to apply prototype definitions often using forward definitions for structs, like this:
Prototype in a header file:
void testfoo(struct _FAA *nn);
C-Code:
typedef struct _FAA
{
int b;
}FAA;
void testfoo(FAA *aa)
{
aa->b = 0;
}
On compiling I get this error:
code.c(277,6): : error : conflicting types for 'testfoo'
1>void testfoo(FAA *aa)
1> ^
1>code.h(204,6): note: previous declaration is here
1>void testfoo(struct _FAA *nn);
1> ^
Seems the compiler doesnt like our forward declations of structs, but why ?
This was not a problem with the compiler 2 years ago, but now with the recent
download.
Any tips ? Maybe a compiler flag that I missed ?
Thanks you!
Marcus
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Communities.
Since this is a duplicate thread of https://community.intel.com/t5/Intel-C-Compiler/Moved-Strange-compiler-error-on-forward-declarations/m-p/1497397#M41027, we will no longer monitor this thread. We will continue addressing this issue in the other thread.
Thanks & Regards,
Noorjahan.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page