- #1
Werg22
- 1,431
- 1
I get an error with gcc "error: two or more data types in declaration specifiers" when trying to compile something of the form:
struct tag *function (...) { ...}
Apparently it won't let me create functions with return values pointers to structures. I know that it's perfectly valid code, so I don't know why it's not letting me do this. Any help on this would be appreciated.
edit:
The problem seem to have been that I didn't put semi-colons after the structure declarations. The prof mislead me into error.
struct tag *function (...) { ...}
Apparently it won't let me create functions with return values pointers to structures. I know that it's perfectly valid code, so I don't know why it's not letting me do this. Any help on this would be appreciated.
edit:
The problem seem to have been that I didn't put semi-colons after the structure declarations. The prof mislead me into error.
Last edited: