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

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

Postby modicr » 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: 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
© I'm not patented!
User avatar
modicr
 
Posts: 207
Joined: Fri Oct 07, 2005 7:58 am
Location: ljubljana, barje, slovenia

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

Postby Antonio Linares » Thu Oct 15, 2009 3:40 pm

Roman,

Try it removing "extern"

:-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 61 guests