www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/01/09:30:09

From: "Polihronis Porfiris" <kronow35 AT otenet DOT gr>
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: <afpknn$8nt$1@usenet.otenet.gr>
NNTP-Posting-Host: ioan530-a019.otenet.gr
Mime-Version: 1.0
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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-7">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#c0c0c0>
<DIV>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">Hello=20
everyone,<?xml:namespace prefix =3D o ns =3D=20
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US"><SPAN=20
style=3D"mso-tab-count: =
1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>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<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: =
EN-US"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: =
EN-US">Install.exe<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: =
EN-US">Djdev203.zip<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: =
EN-US">Gcc2953b.zip<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: =
EN-US">Gpp2953b.zip<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: =
EN-US"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">I installed them=20
successfully on my system but when I try to link my program I get the =
following=20
message:<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: =
EN-US"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">Harbour Compiler =
Alpha=20
build 40.0 (Flex)<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">Copyright =
1999-2002,=20
http://www.harbour-project.org/<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">Compiling=20
'TEST.prg'...<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">Lines 5,=20
Functions/Procedures 1<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">Generating C =
source output=20
to 'TEST.c'... Done.<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">gcc.exe: =
installation=20
problem, cannot exec `as': No such file or directory=20
(ENOENT)<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: =
EN-US"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">The line that =
calls gcc is=20
the following<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: =
EN-US"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">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 =
&#8211;lcommon<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: =
EN-US"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">All the HB_ vars =
are set=20
correctly, The test.c output from harbour is:<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: =
EN-US"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoPlainText style=3D"MARGIN: 0cm 0cm 0pt"><FONT =
size=3D2><FONT=20
face=3D"Courier New"><SPAN lang=3DEN-GB style=3D"mso-ansi-language: =
EN-GB">/*<BR><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;</SPAN>* Harbour Compiler, Apha build =
40.0=20
(Flex)<BR><SPAN style=3D"mso-spacerun: yes">&nbsp;</SPAN>* Generated C =
source=20
code<BR><SPAN style=3D"mso-spacerun: =
yes">&nbsp;</SPAN>*/<BR><BR>#include=20
"hbvmpub.h"<BR>#include "hbpcode.h"<BR>#include =
"hbinit.h"<BR><BR><BR>HB_FUNC(=20
</SPAN><?xml:namespace prefix =3D st1 ns =3D=20
"urn:schemas-microsoft-com:office:smarttags" /><st1:place><SPAN =
lang=3DEN-GB=20
style=3D"mso-ansi-language: =
EN-GB">MAIN</SPAN></st1:place></FONT></FONT><FONT=20
size=3D2><FONT face=3D"Courier New"><SPAN lang=3DEN-GB=20
style=3D"mso-ansi-language: EN-GB"> );<BR>extern HB_FUNC( DEVPOS =
);<BR>extern=20
HB_FUNC( DEVOUT );<BR><BR><BR>HB_INIT_SYMBOLS_BEGIN( =
hb_vm_SymbolInit_TEST=20
)<BR>{ "MAIN", HB_FS_PUBLIC | HB_FS_FIRST, HB_FUNCNAME( =
</SPAN><st1:place><SPAN=20
lang=3DEN-GB=20
style=3D"mso-ansi-language: =
EN-GB">MAIN</SPAN></st1:place></FONT></FONT><FONT=20
size=3D2><FONT face=3D"Courier New"><SPAN lang=3DEN-GB=20
style=3D"mso-ansi-language: EN-GB"> ), NULL },<BR>{ "DEVPOS", =
HB_FS_PUBLIC,=20
HB_FUNCNAME( DEVPOS ), NULL },<BR>{ "DEVOUT", HB_FS_PUBLIC, HB_FUNCNAME( =
DEVOUT=20
), NULL }<BR>HB_INIT_SYMBOLS_END( hb_vm_SymbolInit_TEST )<BR>#if=20
defined(_MSC_VER)<BR><SPAN style=3D"mso-spacerun: yes">&nbsp;&nbsp; =
</SPAN>#if=20
_MSC_VER &gt;=3D 1010<BR><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</SPAN>#pragma=20
data_seg( ".CRT$XIY" )<BR><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</SPAN>#pragma comment(=20
linker, "/Merge:.CRT=3D.data" )<BR><SPAN style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;=20
</SPAN>#else<BR><SPAN style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>#pragma data_seg( "XIY" )<BR><SPAN style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;=20
</SPAN>#endif<BR><SPAN style=3D"mso-spacerun: yes">&nbsp;&nbsp; =
</SPAN>static=20
HB_$INITSYM hb_vm_auto_SymbolInit_TEST =3D =
hb_vm_SymbolInit_TEST;<BR><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp; </SPAN>#pragma =
data_seg()<BR>#elif !=20
defined(__GNUC__)<BR><SPAN style=3D"mso-spacerun: yes">&nbsp;&nbsp; =
</SPAN>#pragma=20
startup hb_vm_SymbolInit_TEST<BR>#endif<BR><BR>HB_FUNC( =
</SPAN><st1:place><SPAN=20
lang=3DEN-GB=20
style=3D"mso-ansi-language: =
EN-GB">MAIN</SPAN></st1:place></FONT></FONT><SPAN=20
lang=3DEN-GB style=3D"mso-ansi-language: EN-GB"><FONT size=3D2><FONT=20
face=3D"Courier New"> )<BR>{<BR><SPAN style=3D"mso-spacerun: =
yes">&nbsp;&nbsp;=20
</SPAN>static const BYTE pcode[] =3D<BR><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp; </SPAN>{<BR>/* 00000 */ =
HB_P_LINE, 2,=20
0,<SPAN style=3D"mso-tab-count: 1">&nbsp; </SPAN>/* 2 */<BR><SPAN=20
style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</SPAN>HB_P_PUSHSYMNEAR,=20
1,<SPAN style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </SPAN>/* DEVPOS =
*/<BR><SPAN=20
style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>HB_P_PUSHNIL,<BR><SPAN=20
style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</SPAN>HB_P_PUSHBYTE,=20
10,<SPAN style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</SPAN>/* 10=20
*/<BR><SPAN style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>HB_P_PUSHBYTE, 10,<SPAN=20
style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>/* 10 =
*/<BR><SPAN=20
style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</SPAN>HB_P_DOSHORT,=20
2,<BR><SPAN style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>HB_P_PUSHSYMNEAR, 2,<SPAN style=3D"mso-tab-count: =
1">&nbsp;&nbsp;&nbsp;=20
</SPAN>/* DEVOUT */<BR><SPAN=20
style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>HB_P_PUSHNIL,<BR><SPAN=20
style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>HB_P_PUSHSTRSHORT, 12,<SPAN style=3D"mso-tab-count: 1">&nbsp; =
</SPAN>/* 12=20
*/<BR><SPAN style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</SPAN>'H',=20
'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd', 0, <BR><SPAN=20
style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>HB_P_PUSHSTRSHORT, 4,<SPAN style=3D"mso-tab-count: =
1">&nbsp;&nbsp;=20
</SPAN>/* 4 */<BR><SPAN style=3D"mso-tab-count: =
1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>'R', '/', 'B', 0, <BR><SPAN=20
style=3D"mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</SPAN>HB_P_DOSHORT,=20
2,<BR>/* 00037 */ HB_P_LINE, 3, 0,<SPAN style=3D"mso-tab-count: =
1">&nbsp;=20
</SPAN>/* 3 */<BR><SPAN style=3D"mso-tab-count: =
1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>HB_P_ENDPROC<BR>/* 00041 */<BR><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp; </SPAN>};<BR><BR><SPAN=20
style=3D"mso-spacerun: yes">&nbsp;&nbsp; </SPAN>hb_vmExecute( pcode, =
symbols=20
);<BR>}<BR><BR><o:p>&nbsp;</o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">What<SPAN=20
style=3D"mso-spacerun: yes">&nbsp; </SPAN>is the problem and how can I =
fix=20
it.<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US">Thank you all for =
your help=20
in advance.<o:p></o:p></SPAN></P><SPAN lang=3DEN-US=20
style=3D"FONT-FAMILY: Arial; mso-ansi-language: EN-US"><o:p>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt">
<HR>
</P>
<P class=3DMsoNormal=20
style=3D"MARGIN: 0cm 0cm =
0pt">Polihronis</P></o:p></SPAN></DIV></BODY></HTML>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019