G
Guest
Hi there!
I have a very wired problem when I develop a C/C++ based application using
Visual Studio 2005.
#include <stdio.h>
typedef struct _S1 {
int data;
int text;
} S1;
int main()
{
printf("Hello, Vorbis!\n");
S1 oy;
}
Code above doen't compile. On line 12 it states error C2275: 'S1': illegal
use of this type as an expression.
This code compiles well in gcc. So I wonder if I have wrong setting
somewhere in Visual Studio.
Hope somebody can give me a hint.
I have a very wired problem when I develop a C/C++ based application using
Visual Studio 2005.
#include <stdio.h>
typedef struct _S1 {
int data;
int text;
} S1;
int main()
{
printf("Hello, Vorbis!\n");
S1 oy;
}
Code above doen't compile. On line 12 it states error C2275: 'S1': illegal
use of this type as an expression.
This code compiles well in gcc. So I wonder if I have wrong setting
somewhere in Visual Studio.
Hope somebody can give me a hint.