Using xMate

Using xMate

Postby Demont Brecht » 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
Demont Brecht
 
Posts: 55
Joined: Fri Jul 08, 2011 6:43 am

Re: Using xMate

Postby StefanHaupt » 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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Using xMate

Postby Rick Lipkin » Fri Oct 07, 2011 1: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: Select all  Expand view


[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

 
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Using xMate

Postby Demont Brecht » Fri Oct 07, 2011 3: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
Demont Brecht
 
Posts: 55
Joined: Fri Jul 08, 2011 6:43 am

Re: Using xMate

Postby Rick Lipkin » Sat Oct 08, 2011 6: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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Using xMate

Postby Demont Brecht » Wed Oct 12, 2011 6: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
Demont Brecht
 
Posts: 55
Joined: Fri Jul 08, 2011 6:43 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: cmsoft and 73 guests