FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error E2227 apprun.c 190: Extra parameter in call to hb_vmEx
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM

Error E2227 apprun.c 190: Extra parameter in call to hb_vmEx

Posted: Wed Dec 12, 2007 01:59 AM
Error E2227 apprun.c 190: Extra parameter in call to hb_vmExecute in function HB_FUN_xxxxxxx

When attempting to recompile my custom lib with FWH 7.12 and the provided xHarbour, I got a lot of error messages similar to the format stated above.

What's the cause and how to solve them? If it would help, here are the batch and make file that I've been using to generate the lib.

Batch file
del bash.lib
del *.log
SET FWHDIR=j:\harbour\fwh
SET HDIR=j:\harbour\xhb
SET BCDIR=j:\harbour\bcc55
j:\harbour\bcc55\BIN\MAKE -f bash.mak


Make file (bash.mak)
#.path.res = obj
#.path.c   = c
#.path.prg = prg


BCC_OPT =  -d $(CFLAGS)
.SUFFIXES: .exe .obj .c

FiveHX_LIB_OBJS = \
prg1.obj \
prg2.obj


.prg.c:
  $(HDIR)\bin\harbour.exe $< /n/w  /i$(FWHDIR)\include;$(HDIR)\include /o$@  >> bash.log

.c.obj:
  $(BCDIR)\bin\bcc32.exe $(BCC_OPT) -c -v -o$@ -I$(FWHDIR)\include;$(HDIR)\include -DHARBOUR_USE_WIN_GTAPI -DHB_COMPAT_C53 $<   >> bash.log
  $(BCDIR)\bin\tlib.exe bash.lib /P32 + $@ >>bash.log

bash.lib : $(FiveHX_LIB_OBJS)
   echo Harbour dir: $(HDIR) >> bash.log
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Error E2227 apprun.c 190: Extra parameter in call to hb_vmEx

Posted: Wed Dec 12, 2007 07:16 AM

It looks that the Harbour header files that you are using don't match with the used Harbour compiler

Please check that you are using the right .H files for that Harbour build

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM

Error E2227 apprun.c 190: Extra parameter in call to hb_vmEx

Posted: Thu Dec 13, 2007 01:27 AM

I'm not sure what went wrong, but everything seems find now that I do a 'clean' linking by deleting both .obj and .c files of my custom lib (prg's only). I was only deleting the .obj files prior to this.

Thanks for your time Antonio

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion