Problem with where I declare a pointer in a file.
Neil Booth
neil@daikokuya.demon.co.uk
Sun Apr 8 10:40:00 GMT 2001
Mike Baranski wrote:-
> /* Mark */
> char *insert_stmt;
> insert_stmt = g_malloc (sizeof(char) * MAX_STRING_LENGTH);
> GList *names;
> /* The rest of the function */
>
> The last line, GList *names, causes errors with the compiler.
In the C89 standard, you must put all declarations at the top of
a block. Your names declaration is not at the top of a block.
Neil.
More information about the Gcc-bugs
mailing list