delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/03/17/07:21:50

Date: Sun, 17 Mar 1996 20:03:08 +0800 (GMT+0800)
From: "Orlando A. Andico" <orly AT natalie DOT eee DOT upd DOT edu DOT ph>
To: DJGPP Mailing List <djgpp AT delorie DOT com>
Subject: Using RSXWDK2 with DJGPP v2
Message-ID: <Pine.LNX.3.91.960317181151.88A-100000@natalie.eee.upd.edu.ph>
MIME-Version: 1.0

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime AT docserver DOT cac DOT washington DOT edu for more info.

---593114863-1452073426-827058883=:99
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine DOT LNX DOT 3 DOT 91 DOT 960317184015 DOT 123B AT natalie DOT eee DOT upd DOT edu DOT ph>

Hello all:

I finally got RSXWDK and installed it (I got it from ftp.uni-bielefeld.de 
as posted by someone a day or two ago). It is RSXWDK2 and the patches.

I edited DJGPP.ENV to RSX.ENV, with the new version pointing to the 
correct include and library path (the instructions in RSX HLP were for 
earlier versions, so I did this). Also, I copied the specs file from the 
RSXWDK lib/libdj directory to /djgpp/lib.

To compile RSX programs (allegedly) I merely 

  set DJGPP=c:\lang\djgpp\rsx.env

When I try to compile the time-honored hello.c program, here's what I get:

  gcc -Wall -v -win -o hello.exe hello.c

(I used redir to dump the error messages)

--------------------------------------------------------------------------
Reading specs from /lang/rsxwdk/lib/libdj\specs
gcc version 2.7.2
 /lang/djgpp/bin\cpp.exe -lang-c -v -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 -Wall hello.c /lang/djgpp/tmp\ccbaaaaa
GNU CPP version 2.7.2 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 /lang/djgpp/include
 /lang/rsxwdk/include
 /usr/local/include
 /usr/local/go32/include
 /usr/local/lib/gcc-lib/go32/2.7.2/include
 /usr/include
End of search list.
 /lang/djgpp/bin\cc1.exe /lang/djgpp/tmp\ccbaaaaa -quiet -dumpbase hello.c 
  -Wall -version -o /lang/djgpp/tmp\cccaaaaa
GNU C version 2.7.2 (80386, BSD syntax) compiled by GNU C version 2.7.2.
 /lang/djgpp/bin\as.exe -o /lang/djgpp/tmp\ccdaaaaa /lang/djgpp/tmp\cccaaaaa
 /lang/djgpp/bin\ld.exe -o hello.exe /lang/rsxwdk/lib/libdj\crt0.o 
  -L/lang/rsxwdk/lib/libdj /lang/djgpp/tmp\ccdaaaaa -lgcc -lc -lwin -lc 
  -lwin -Ttext 0x100a8 -lgcc
rsxw32.c(.text+0xee): multiple definition of `main'
hello.c(.text+0x10): first defined here
/lang/rsxwdk/lib/libdj/libwin.a: could not read symbols: Memory exhausted
--------------------------------------------------------------------------

I don't know what to make of the "multiple definitions of main()" bit. 
Perhaps the time-honored hello.c must use WinMain() instead of main() but 
that's just my guess. Anyone have any ideas about this?

The last line ("could not read symbols: Memory exhausted") is probably 
because the RSXWDK libraries are for DJGPP v1.12 and not for v2.

I tried to rebuild the libwin.a file (sources in /rsxwdk/libsrc/win; 
there is a makefile for DJGPP there). The newest version of WINE, 
unfortunately, seems to have an incompatible Windows.h so all my attempts 
at rebuilding failed miserably. I'll try looking for the include files 
from something like Turbo C++ for windows and try again.

I think the FAQ should mention this problem with getting include files 
from WINE, they caused me endless irritation.

I suppose I'll post later if I get the libraries to rebuild and 
successfully compile anything.

Cheers,

                                             ------------------------
                                              Orlando A. Andico
                                              oandico AT eee DOT upd DOT edu DOT ph
                                             ------------------------


---593114863-1452073426-827058883=:99--

- Raw text -


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