Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this mean: "error: invalid combination of multiple type-specifiers"

I'm getting a compiler error on FreeBSD:

error: invalid combination of multiple type-specifiers

From the C++ Code:

typedef unsigned off_t uoff_t;

Not sure what the gcc compiler is trying to tell me.

like image 414
WilliamKF Avatar asked Oct 22 '25 00:10

WilliamKF


1 Answers

Unless off_t is a macro, it's simply a syntax error.

unsigned is not something you can add to a typedef'ed type or use to modify such a type.

Cheers & hth.,

like image 178
Cheers and hth. - Alf Avatar answered Oct 24 '25 14:10

Cheers and hth. - Alf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!