From: "Polihronis Porfiris" Newsgroups: comp.os.msdos.djgpp Subject: harbour and djgpp Help Date: Mon, 1 Jul 2002 16:15:00 +0300 Organization: An OTEnet S.A. customer Lines: 365 Message-ID: NNTP-Posting-Host: ioan530-a019.otenet.gr Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0036_01C2211A.72FF5E80" X-Trace: usenet.otenet.gr 1025529401 8957 62.103.227.19 (1 Jul 2002 13:16:41 GMT) X-Complaints-To: abuse AT otenet DOT gr NNTP-Posting-Date: Mon, 1 Jul 2002 13:16:41 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_0036_01C2211A.72FF5E80 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable Hello everyone, I am a new comer to C. I am using gcc 2.953b for testing the = harbour progect. I downloaded the following files for the simtell ftp = site =20 Install.exe Djdev203.zip Gcc2953b.zip Gpp2953b.zip =20 I installed them successfully on my system but when I try to link my = program I get the following message: =20 Harbour Compiler Alpha build 40.0 (Flex) Copyright 1999-2002, http://www.harbour-project.org/ Compiling 'TEST.prg'... Lines 5, Functions/Procedures 1 Generating C source output to 'TEST.c'... Done. gcc.exe: installation problem, cannot exec `as': No such file or = directory (ENOENT) =20 The line that calls gcc is the following =20 gcc %1.c -o%1.exe %CFLAGS% -I%HB_INC_INSTALL% -L%HB_LIB_INSTALL% -ldebug = -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx = -ldbfcdx -lcommon =20 All the HB_ vars are set correctly, The test.c output from harbour is: =20 /* * Harbour Compiler, Apha build 40.0 (Flex) * Generated C source code */ #include "hbvmpub.h" #include "hbpcode.h" #include "hbinit.h" HB_FUNC( MAIN ); extern HB_FUNC( DEVPOS ); extern HB_FUNC( DEVOUT ); HB_INIT_SYMBOLS_BEGIN( hb_vm_SymbolInit_TEST ) { "MAIN", HB_FS_PUBLIC | HB_FS_FIRST, HB_FUNCNAME( MAIN ), NULL }, { "DEVPOS", HB_FS_PUBLIC, HB_FUNCNAME( DEVPOS ), NULL }, { "DEVOUT", HB_FS_PUBLIC, HB_FUNCNAME( DEVOUT ), NULL } HB_INIT_SYMBOLS_END( hb_vm_SymbolInit_TEST ) #if defined(_MSC_VER) #if _MSC_VER >=3D 1010 #pragma data_seg( ".CRT$XIY" ) #pragma comment( linker, "/Merge:.CRT=3D.data" ) #else #pragma data_seg( "XIY" ) #endif static HB_$INITSYM hb_vm_auto_SymbolInit_TEST =3D = hb_vm_SymbolInit_TEST; #pragma data_seg() #elif ! defined(__GNUC__) #pragma startup hb_vm_SymbolInit_TEST #endif HB_FUNC( MAIN ) { static const BYTE pcode[] =3D { /* 00000 */ HB_P_LINE, 2, 0, /* 2 */ HB_P_PUSHSYMNEAR, 1, /* DEVPOS */ HB_P_PUSHNIL, HB_P_PUSHBYTE, 10, /* 10 */ HB_P_PUSHBYTE, 10, /* 10 */ HB_P_DOSHORT, 2, HB_P_PUSHSYMNEAR, 2, /* DEVOUT */ HB_P_PUSHNIL, HB_P_PUSHSTRSHORT, 12, /* 12 */ 'H', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd', 0,=20 HB_P_PUSHSTRSHORT, 4, /* 4 */ 'R', '/', 'B', 0,=20 HB_P_DOSHORT, 2, /* 00037 */ HB_P_LINE, 3, 0, /* 3 */ HB_P_ENDPROC /* 00041 */ }; hb_vmExecute( pcode, symbols ); } =20 What is the problem and how can I fix it. Thank you all for your help in advance. -------------------------------------------------------------------------= ------- Polihronis ------=_NextPart_000_0036_01C2211A.72FF5E80 Content-Type: text/html; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable

Hello=20 everyone,

           =20 I am a new comer to C. I am using gcc 2.953b for testing the = harbour=20 progect. I downloaded the following files for the simtell ftp=20 site

 

Install.exe

Djdev203.zip

Gcc2953b.zip

Gpp2953b.zip

 

I installed them=20 successfully on my system but when I try to link my program I get the = following=20 message:

 

Harbour Compiler = Alpha=20 build 40.0 (Flex)

Copyright = 1999-2002,=20 http://www.harbour-project.org/

Compiling=20 'TEST.prg'...

Lines 5,=20 Functions/Procedures 1

Generating C = source output=20 to 'TEST.c'... Done.

gcc.exe: = installation=20 problem, cannot exec `as': No such file or directory=20 (ENOENT)

 

The line that = calls gcc is=20 the following

 

gcc %1.c -o%1.exe = %CFLAGS%=20 -I%HB_INC_INSTALL% -L%HB_LIB_INSTALL% -ldebug -lvm -lrtl -l%_HB_GT_LIB% = -llang=20 -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx = –lcommon

 

All the HB_ vars = are set=20 correctly, The test.c output from harbour is:

 

/*
 
* Harbour Compiler, Apha build = 40.0=20 (Flex)
 * Generated C = source=20 code
 */

#include=20 "hbvmpub.h"
#include "hbpcode.h"
#include = "hbinit.h"


HB_FUNC(=20 MAIN
);
extern HB_FUNC( DEVPOS = );
extern=20 HB_FUNC( DEVOUT );


HB_INIT_SYMBOLS_BEGIN( = hb_vm_SymbolInit_TEST=20 )
{ "MAIN", HB_FS_PUBLIC | HB_FS_FIRST, HB_FUNCNAME( =
MAIN
), NULL },
{ "DEVPOS", = HB_FS_PUBLIC,=20 HB_FUNCNAME( DEVPOS ), NULL },
{ "DEVOUT", HB_FS_PUBLIC, HB_FUNCNAME( = DEVOUT=20 ), NULL }
HB_INIT_SYMBOLS_END( hb_vm_SymbolInit_TEST )
#if=20 defined(_MSC_VER)
   = #if=20 _MSC_VER >=3D 1010
      =
#pragma=20 data_seg( ".CRT$XIY" )
      = #pragma comment(=20 linker, "/Merge:.CRT=3D.data" )
  =20 #else
     =20 #pragma data_seg( "XIY" )
  =20 #endif
   = static=20 HB_$INITSYM hb_vm_auto_SymbolInit_TEST =3D = hb_vm_SymbolInit_TEST;
   #pragma = data_seg()
#elif !=20 defined(__GNUC__)
   = #pragma=20 startup hb_vm_SymbolInit_TEST
#endif

HB_FUNC( = MAIN
)
{
  =20 static const BYTE pcode[] =3D
   {
/* 00000 */ = HB_P_LINE, 2,=20 0,  /* 2 */
      = HB_P_PUSHSYMNEAR,=20 1,    /* DEVPOS = */
     =20 HB_P_PUSHNIL,
      = HB_P_PUSHBYTE,=20 10,      = /* 10=20 */
     =20 HB_P_PUSHBYTE, 10,      /* 10 = */
      = HB_P_DOSHORT,=20 2,
     =20 HB_P_PUSHSYMNEAR, 2,   =20 /* DEVOUT */
     =20 HB_P_PUSHNIL,
     =20 HB_P_PUSHSTRSHORT, 12,  = /* 12=20 */
      = 'H',=20 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd', 0,
     =20 HB_P_PUSHSTRSHORT, 4,  =20 /* 4 */
     =20 'R', '/', 'B', 0,
      = HB_P_DOSHORT,=20 2,
/* 00037 */ HB_P_LINE, 3, 0, =20 /* 3 */
     =20 HB_P_ENDPROC
/* 00041 */
   };

   hb_vmExecute( pcode, = symbols=20 );
}

 

What  is the problem and how can I = fix=20 it.

Thank you all for = your help=20 in advance.


Polihronis

------=_NextPart_000_0036_01C2211A.72FF5E80--