www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/10/06:44:37

Xref: news2.mv.net comp.os.msdos.djgpp:4796
From: robert DOT fremin AT mailbox DOT swipnet DOT se (Robert Fremin)
Newsgroups: comp.os.msdos.djgpp
Subject: I cannot configure DOS-based DJGPP v2 to compile anything!!!
Date: Fri, 07 Jun 1996 21:01:55 GMT
Organization: -
Lines: 63
Message-ID: <31b88366.73050@nntpserver.swip.net>
NNTP-Posting-Host: dialup118-2-14.swipnet.se
NNTP-Posting-User: 41e1c758e329b31c4d905147051ba029
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

So, I'm completely new to UNIX-type programs on a MS-DOS PC platform, and this
is my first encounter with djgpp, which I have high hopes for solving my
memory needs. However, I try to compile this simple program without any success.
It's something with search-paths or something I think.


This is the program I want to compile on a MS-DOS pentium-system:

int main()
{
	return 0;
}


and this is the batchfile:

@echo off
c:\djgpp\bin\gcc.exe -Ic:\djgpp\include\ -Lc:\djgpp\lib\ -Bc:\djgpp\bin\ -m486
%1 %2 %3 %4


and this is the output, which ends with an error:

G:\>gcc -v test.c
gcc version 2.7.2
 c:\djgpp\bin\cpp.exe -lang-c -v -Ic:\djgpp\include\ -isystem c:\djgpp\bin\inclu
de -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -Di386 -DGO32 -DMSDOS -D__unix_
_ -D__i386__ -D__GO32__ -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__MSDOS -Asyste
m(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) test.c c:\windows\temp\ccbaa
aaa
GNU CPP version 2.7.2 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 c:\djgpp\include\
 c:\djgpp\bin\include
 /usr/local/include
 /usr/local/go32/include
 /usr/local/lib/gcc-lib/go32/2.7.2/include
 /usr/include
End of search list.
 c:\djgpp\bin\cc1.exe c:\windows\temp\ccbaaaaa -quiet -dumpbase test.c -m486 -ve
rsion -o c:\windows\temp\cccaaaaa
GNU C version 2.7.2 (80386, BSD syntax) compiled by GNU C version 2.7.2.
 c:\djgpp\bin\as.exe -o c:\windows\temp\ccdaaaaa c:\windows\temp\cccaaaaa
 c:\djgpp\bin\ld.exe crt0.o -Lc:\djgpp\lib\ -Lc:\djgpp\bin c:\windows\temp\ccdaa
aaa -lgcc -lc -lgcc
c:\djgpp\bin\ld.exe: cannot open crt0.o: No such file or directory (ENOENT)


my autoexec.bat include these lines:

  set temp=c:\windows\temp
  set djgpp=c:\djgpp\djgpp.env c:/djgpp/djgpp.env

  path %path%;c:\djgpp\bin


Could anyone solve my problem please???


--- Robert Fremin -----------------------------------
--- http://bip.concept.se/user/sprite/hemsida.htm ---
-----------------------------------------------------

- Raw text -


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