Not Compile

Not Compile

Post by Alireza Ghasem » Tue, 22 Jul 2003 12:24:02



Hi,
I use WinXP.after installing djgpp 2.03 according to your instructions I
wrote the simplest c program like this:
#include <stdio.h>
int main(void)
{
  printf("Hello, world!\n");
  return 0;
Quote:}

Then I saved it as a.c
But it did not compile.I had following error using  "gcc a.c -o a.exe"
d:/djgpp/tmp\ccAP9JCv.s: Assembler messages:
d:/djgpp/tmp\ccAP9JCv.s:19: Error: Rest of line ignored. First ignored
character
 is `,'.
content og environ.txt:
"
ALLUSERSPROFILE=E:\Documents and Settings\All Users
APPDATA=E:\Documents and Settings\Alireza\Application Data
CommonProgramFiles=E:\Program Files\Common Files
COMPUTERNAME=KELOAS-4Z7KQ4IY
ComSpec=E:\WINDOWS\system32\cmd.exe
DJGPP=d:/djgpp/djgpp.env
HELPFILES=D:\DOSPROGS\C700\HELP\*.HLP
HOMEDRIVE=E:
HOMEPATH=\Documents and Settings\Alireza
INCLUDE=D:\Program Files\VC98\atl\include;D:\Program
Files\VC98\mfc\include;D:\Program Files\VC98\include
INIT=D:\DOSPROGS\C700\INIT
LIB=D:\Program Files\VC98\mfc\lib;D:\Program Files\VC98\lib
LOGONSERVER=\\KELOAS-4Z7KQ4IY
MSDevDir=D:\Program Files\Microsoft Visual Studio\MSDev98
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=D:\Program Files\Borland\Delphi5\Projects\Bpl;E:\Program
Files\Borland\vbroker\jre\Bin;E:\Program
Files\Borland\vbroker\Bin;D:\Program
Files\Borland\Delphi5\Bin;E:\WINDOWS\system32;E:\WINDOWS;E:\WINDOWS\System32
\Wbem;D:\Program Files\Borland\Delphi5\Projects\Bpl;E:\Program
Files\Borland\vbroker\jre\Bin;E:\Program
Files\Borland\vbroker\Bin;D:\Program
Files\Borland\Delphi5\Bin;E:\WINDOWS\system32;E:\WINDOWS;E:\WINDOWS\System32
\Wbem;E:\PROGRA~1\Negatory\ASMSTU~1\Assemblers\TASM;D:\TCWIN45\BIN;D:\DOSPRO
GS\C700\BIN;D:\TCWIN45\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;F:\2.6;F:\2.6;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0806
ProgramFiles=E:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=E:
SystemRoot=E:\WINDOWS
TEMP=E:\DOCUME~1\Alireza\LOCALS~1\Temp
TMP=E:\DOCUME~1\Alireza\LOCALS~1\Temp
USERDOMAIN=KELOAS-4Z7KQ4IY
USERNAME=Alireza
USERPROFILE=E:\Documents and Settings\Alireza
windir=E:\WINDOWS
"
output of go32-v2:
"
go32/v2 version 2.0 built Dec 24 1999 17:46:57
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries as
 well as v1 binaries (old makefiles).  Put ahead of the old go32 in your
PATH
 but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.

DPMI memory available: 57129 Kb
DPMI swap space available: 0 Kb
"
outpu of "gcc a.c -o a.exe -v"
"
Reading specs from d:/djgpp/lib/gcc-lib/djgpp/2.952/specs
gcc version 2.95.2 19991024 (release)

d:/djgpp/lib/gcc-lib/djgpp/2.952/cpp.exe -lang-c -v -D__GNUC__=2 -D__GNUC_MI
NOR
__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__GO32_
_ -D
__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -As
yste
m(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Acpu(i386) -Amachine(i3
86)
-Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros
d:/djgpp/lib/../include/s
ys/version.h -remap a.c d:/djgpp/tmp\ccu18iBg.i
GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 d:/djgpp/include
 d:/djgpp/lib/gcc-lib/djgpp/2.952/include
 d:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
 $DJDIR/lang/cxx
 $DJDIR/lib/gcc-lib/djgpp/2.952/../../../../djgpp/include
End of omitted list.
 d:/djgpp/lib/gcc-lib/djgpp/2.952/cc1.exe
d:/djgpp/tmp\ccu18iBg.i -quiet -dumpba
se a.c -version -o d:/djgpp/tmp\ccDUFRFi.s
GNU C version 2.95.2 19991024 (release) (djgpp) compiled by GNU C version
2.95.2
 19991024 (release).
 d:/djgpp/bin/as.exe -o d:/djgpp/tmp\cc6t9ddo.o d:/djgpp/tmp\ccDUFRFi.s
d:/djgpp/tmp\ccDUFRFi.s: Assembler messages:
d:/djgpp/tmp\ccDUFRFi.s:19: Error: Rest of line ignored. First ignored
character
 is `,'.
"
I unzipped the following files:
djdev203.zip   gcc2952b.zip   bnu27b.zip     gpp2952b.zip   txi40b.zip
faq230b.zip

Thanks a lot.
Bye.

Customer Service:
Learn More about Irangate's Late Night, & Low Traffic discounts,
Please visit: http://members.irangate.net/percentdiscount.php

Delivered to you by Irangate Electronic Mail Service!

 
 
 

Not Compile

Post by DJ Delori » Tue, 22 Jul 2003 13:02:12


Quote:> I unzipped the following files:
> djdev203.zip   gcc2952b.zip   bnu27b.zip     gpp2952b.zip   txi40b.zip
> faq230b.zip

These are old.  GCC is up to 3.2.3, binutils is up to 2.14, and
texinfo is 4.2.

You should try upgrading and see if the problem exists in the latest
software.  We can't (well, won't) fix the old stuff, but the latest
stuff is a different story.

http://www.delorie.com/djgpp/zip-picker.html

 
 
 

Not Compile

Post by Andrew Cottrel » Tue, 22 Jul 2003 16:04:31


Quote:>I use WinXP.after installing djgpp 2.03 according to your instructions I

WinXP says it all I suspect.

Further to DJ's response make sure you update to the latest versions
of all of the zip files.

Andrew

 
 
 

1. *** GCC will not compile, can not find "as"...

Can someone help me out... I downloaded all the DJGPP required files,
read the faq and can still not get it to work.

When I try to compile a simple hello world program, it says

gcc.exe: installation problem, cannot exec 'as': no such file or
directory(ENOENT)...

If someone could let me know what I did wrong, I would appreciate it.

2. Ada to C++ Translators

3. Can not compile C++ program(???)

4. RHIDE and slashes

5. Midas Sound System, Not compiling!

6. SNMP Agent for ORACLE7?

7. gnuplot 3.6.212 not compiling under gcc(djgpp)

8. EPSON PRINT HEAD 4

9. TValidator.IsValidInput not compiling

10. Declare array size at run time not compile time ??How/Help

11. Can not compile C++ program

12. Info Zip unzip-5.32 does not compile with DJGPP/gcc-2.8.0

13. My GCC does not compile the C++ source