delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/22/12:15:09

From: mrpoody AT home DOT com (Don Farley)
Newsgroups: comp.os.msdos.djgpp
Subject: problems with rsxide
Date: Fri, 22 Jun 2001 16:07:47 +0000 (UTC)
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Lines: 98
Message-ID: <3B336D5F.1D60D5FE@home.com>
NNTP-Posting-Host: femail7.sdc1.sfba.home.com
Mime-Version: 1.0
X-Trace: news.mailgate.org 993226067 11381 24.0.95.87 (2001-06-22 09:07:59)
X-Complaints-To: femail7 DOT sdc1 DOT sfba DOT home DOT com AT abuse DOT net abuse AT mailgate DOT org
NNTP-Posting-Date: Fri, 22 Jun 2001 16:07:47 +0000 (UTC)
Mail-From: <mrpoody AT home DOT com> from femail7.sdc1.sfba.home.com [24.0.95.87]
X-URL: http://www.Mailgate.ORG
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

When I run gccw32 TEST3.C in the rsxide command line I get this dos
reply I've been battling for a month to get it configured to work and
remembered that you sent me a reply to the same sort of question and
asked for the dos error stuff here it is  This is how my auto exec is
set up I get the correct version when I type gccw32 -v or gcc -v reading

from rsxntdj specs file.I got it working once and then I could never
figure it out again. Here is a copy of test3.c and my autoexec.bat and
the error reply. Help! You can probably guess I'm a newbie. Thanks Don
Farley

Test3.c
#include <stdio.h>
#include <stdlib.h>
/* style of rsxio window (optional) */
char rsxio_window_title[] = "This is a test of rsxioapp";
int rsxio_window_close = 1;
int rsxio_main(int argc, char **argv, char **env)
{
  printf("\044[1;50m");         // set colours  /*was 023*  36m/
  printf("Hello World"); // print
  printf("\044[0m");            // reset colors /*was 023*/
  getchar();
  return 0;
}
DOS reply:
c:/djgpp/lib/crt0.o< .data+)xc2>:crt0.s: undefined reference to 'main'
c:/djgpp/lib/libc.a<crt1.o><.text+0x44e>:crt1.c: undefined reference to
'main'

Autoexec.bat:
SET SNDSCAPE=C:\WINDOWS
@PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\WIN98RK;%PATH%
SET BLASTER=A220 I7 D1 T2
SET PATH= C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\WIN98RK
set PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\Djgpp\bin;%path%
set DJGPP=C:/Djgpp/djgpp.env
Set  RSXNTDJ= %Path%;C:\DJGPP\RSXNTDJ\bin
Set  PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DJGPP\RSXNTDJ\bin;%PATH%
set include_path= %path%;C:\djgpp\include;
SET
C_INCLUDE_PATH=C:\DJGPP\RSXNTDJ\include\win32\anders;C:\djgpp\RSXNTdj\INCLUDE\MSSDK;

C:\MSSDK\INCLUDE

SET LIBRARY_PATH=C:\Djgpp\RSXNTDJ\LIB;C:\DJGPP\LIB
Rem TShoot: rem - By Windows Setup - @C:\WINDOWS\COMMAND\DelTree /Y
C:\WINDOWS\Temp\
rem TShoot:  @C:\WINDOWS\COMMAND\DelTree /Y   C:\WINDOWS\Temp\
rem TShoot: F:\PROGRA~1\NUMEGA\SOFTIC~1\WINICE.EXE


Here is the product of gccw32 test3.c -v


c:/djgpp/rsxntdj/bin/include
 c:/djgpp/rsxntdj/include/win32/anders
 c:/djgpp/rsxntdj/include/mssdk
 c:/djgpp/include
 c:/djgpp/lib/gcc-lib/djgpp/2.952/include
 c:/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.
 c:/djgpp/lib/gcc-lib/djgpp/2.952/cc1.exe c:/djgpp/tmp\cciWIpYr.i -m486
-malign-
jumps=2 -malign-loops=2 -malign-functions=2 -quiet -dumpbase test3.c
-version -o
 c:/djgpp/tmp\ccCkEAAf.s
GNU C version 2.95.2 19991024 (release) (djgpp) compiled by GNU C
version 2.95.2
 19991024 (release).
 c:/djgpp/bin/as.exe -o c:/djgpp/tmp\cceO9Cw6.o c:/djgpp/tmp\ccCkEAAf.s
 c:/djgpp/bin/ld.exe c:/djgpp/lib/crt0.o -Lc:/windows/command
-Lc:/djgpp/bin -Lc
:/windows -Lc:/windows/command -Lc:/progra~1/win98rk -Lc:/windows
-Lc:/windows/c
ommand -Lc:/djgpp/rsxntdj/lib -Lc:/djgpp/lib -Lc:/djgpp/lib
-Lc:/djgpp/lib/gcc-l
ib/djgpp/2.952 -Lc:/djgpp/bin -Lc:/djgpp/lib c:/djgpp/tmp\cceO9Cw6.o
-Tdjgpp.djl
 -lgcc -lc -lgcc
c:/djgpp/lib/crt0.o(.data+0xc2):crt0.s: undefined reference to `main'
c:/djgpp/lib/libc.a(crt1.o)(.text+0x44e):crt1.c: undefined reference to
`main'







-- 
Posted from femail7.sdc1.sfba.home.com [24.0.95.87] 
via Mailgate.ORG Server - http://www.Mailgate.ORG

- Raw text -


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