FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour HB_FUNC() error C2159: more than one storage class specified
Posts: 207
Joined: Fri Oct 07, 2005 07:58 AM
HB_FUNC() error C2159: more than one storage class specified
Posted: Thu Oct 15, 2009 12:56 PM
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 (fw): Select all Collapse
#include "hbapi.h"
#include "hbapiitm.h"
#include "fwharb.h"


and the error line is:

Code (fw): Select all Collapse
Line_79: extern HB_FUNC(SLORDER);


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

Thanks, Roman
© I'm not patented!
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: HB_FUNC() error C2159: more than one storage class specified
Posted: Thu Oct 15, 2009 03:40 PM

Roman,

Try it removing "extern"

:-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion