views:

35

answers:

2

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.

+3  A: 

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.,

Alf P. Steinbach
+3  A: 

Use typedef boost::make_unsigned< off_t >::type uoff_t; instead to achieve the desired effect.

usta