Page 1 of 1

HB_FUNC() error C2159: more than one storage class specified

PostPosted: Thu Oct 15, 2009 12:56 pm
by modicr
Hello!

I use FWH 9.01, MSVC Harbour 1.1.0dev (Rev. 10434) and MS C Compiler v13 for 80x86 and I get the following error

cl -TP -W3 -c /GA /FoOBF32H\BIT.OBJ C_RUTINE\BIT.C
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

BIT.C
C:\aapl\cl\IN\SLIB32H.H(79) : error C2159: more than one storage class specified


I use the following includes

Code: Select all  Expand view
#include "hbapi.h"
#include "hbapiitm.h"
#include "fwharb.h"


and the error line is:

Code: Select all  Expand view
Line_79: extern HB_FUNC(SLORDER);


Do you know what to do to remove the above error?

Thanks, Roman

Re: HB_FUNC() error C2159: more than one storage class specified

PostPosted: Thu Oct 15, 2009 3:40 pm
by Antonio Linares
Roman,

Try it removing "extern"

:-)