FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Using xMate
Posts: 55
Joined: Fri Jul 08, 2011 06:43 AM
Using xMate
Posted: Fri Oct 07, 2011 10:29 AM

I try to build a aplication with xmate. After setting the data for PRG compiler , c Compiler and linker , i got as error :
Obj-file contains invalid OMF record type 0x4C

Frank Demont

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Using xMate
Posted: Fri Oct 07, 2011 11:20 AM

Frank,

you are mixing borland and ms object files, that´s not possile.

Please check your object files.

kind regards

Stefan
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Using xMate
Posted: Fri Oct 07, 2011 01:20 PM
Frank

Here is my xMate environment for the Borland 5.5 compiler.. copy and paste this into an .env file name of your choice and put it in your \program files\xmate folder.

Make sure to edit the path names to match your borland compiler and xharbour locations on your computer.

If you are using the Microsoft C++ compiler I have an .env file for that as well.

Rick Lipkin

Code (fw): Select all Collapse
[Environment]
Description 1=Updated for FWH808. Dbfdbt is no longer needed.
Description 2=Supersceeded with HbSix.lib and pcrepos.lib
Description 3=
PRG Compiler ver=xHarbour
C compiler ver=Bcc55
Subsystem=FWH904
Author=Richard Lipkin
Last update=05/23/2008

[Advanced]
Command types=1,1,1,1,1,1,1,1,1

[Harbour]
HB_INSTALL=C:\XHARBOUR
HB_COMMAND=%HB_BIN_INSTALL%\Harbour.Exe %PRG% /m /n /gc0 /w0 /es2 /a /i%HB_INC_INSTALL% /d__EXPORT__
Option prefix=/

[C]
C_INSTALL=C:\Borland\BCC55
C_COMP_COMMAND=%C_BIN_INSTALL%\Bcc32.Exe -M -c -O2  -tW -v- -X %CRLF%-DHB_OS_WIN_32 %CRLF%-I%C_INC_INSTALL%;%HB_INC_INSTALL%  -n%HOME%\Obj %C%
C_LIB_COMMAND=%C_BIN_INSTALL%\TLib.Exe %LIB% /P512 @%RSP% , %LST%
C_LINK_COMMAND=%C_BIN_INSTALL%\iLink32.Exe -Gn -M -m -s -Tpe -aa @%LNK%
C_RC_COMMAND=%C_BIN_INSTALL%\Brc32.Exe -r  -fo%RES%  %RC%
C_DLL_COMMAND=
Option prefix=-

[User]
POSTEXE_COMMAND=
POSTLIB_COMMAND=
POSTDLL_COMMAND=

[Files]
C:\FWH910\LIB\Fivehx.lib=1
C:\FWH910\LIB\Fivehc.lib=2
%HB_LIB_INSTALL%\rtl.lib=3
%HB_LIB_INSTALL%\vm.lib=4
%HB_LIB_INSTALL%\gtgui.lib=5
%HB_LIB_INSTALL%\lang.lib=6
%HB_LIB_INSTALL%\macro.lib=7
%HB_LIB_INSTALL%\rdd.lib=8
%HB_LIB_INSTALL%\dbfcdx.lib=9
%HB_LIB_INSTALL%\dbffpt.lib=10
%HB_LIB_INSTALL%\dbfntx.lib=11
%HB_LIB_INSTALL%\hbsix.lib=12
%HB_LIB_INSTALL%\common.lib=13
%HB_LIB_INSTALL%\pp.lib=14
%HB_LIB_INSTALL%\pcrepos.lib=15
%C_LIB_INSTALL%\CW32.LIB=16
%C_LIB_INSTALL%\IMPORT32.LIB=17
%C_LIB_INSTALL%\PSDK\msimg32.lib=18
%C_LIB_INSTALL%\C0W32.OBJ=19

[DLL Files]
%C_LIB_INSTALL%\import32.lib=1
%HB_LIB_INSTALL%\harbour.lib=2
%C_LIB_INSTALL%\c0w32w.obj=3
%C_LIB_INSTALL%\cw32.lib=4
Posts: 55
Joined: Fri Jul 08, 2011 06:43 AM
Re: Using xMate
Posted: Fri Oct 07, 2011 03:47 PM

Rick

Thank you for the enveronnement file , but the error is still there.

As in the environnement i made the directory's c:\borland\bcc55 and c:\xharbour. In xmate (environnement configuration) this directory's can be seen.

xMate makes the tree obj-files , but failes on the first obj when ilink is called.

Frank

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Using xMate
Posted: Sat Oct 08, 2011 06:25 PM

Frank

Are you linking in any 3rd party .libs ? As mentioned earlier .. that error OMF record type 0x4C generally comes from a mis-match on 3rd party libs ..

Rick

Posts: 55
Joined: Fri Jul 08, 2011 06:43 AM
Re: Using xMate
Posted: Wed Oct 12, 2011 06:15 AM

Rick,

I have reinstalled bcc55 , and the error is gone away. Now i have problems with p-code (conflict pcode 9 and pcode 10) . I have FWH 8.10 , i suppose i should use xharbour from 2008 but doesn't find it.

Frank

Continue the discussion