delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/21/13:13:04

From: mad_pete1 AT hotmail DOT com (the nefarious philanphropist)
Newsgroups: comp.os.msdos.djgpp
Subject: Help please **Newbie**
Date: Fri, 21 Apr 2000 17:13:14 GMT
Organization: BT Internet
Lines: 51
Message-ID: <39008b33.397901@news.btinternet.com>
NNTP-Posting-Host: host5-99-50-98.btinternet.com
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Please could somebody help me .
I have downloaded djgpp together with the rsxntdj archive for making
windows programs.
When I unzipped all the archives into the same directory the different
zips often tried to overwrite the same file , to which I said no.
I added all the path statements to my autoexec.bat file for djgpp and
rsxntdj .
Then I tried to compile a few of the sample programs that come with
rsxntdj , using the command gccw32 . But everytime I get a message
about undefined references , particularly to 'winmain' 

e.g. libmain.a(winmain.o)(.text+0x18b):winmain.c: undefined reference
to 'winmain'

I have looked in the directories that I put the zip files in and
cannot find winmain.o . I can find libmain.a and winmain.c in
different directories .

Is the problem 'undefined reference to 'winmain' ' because I have
installed incorrectly ?
 I have added the following to the end of my autoexec.bat

set PATH=C:\DJGPP\djgpp\BIN;%PATH%
set DJGPP=C:\DJGPP\djgpp\DJGPP.ENV
SET RSXNTDJ=C:\djgpp\djgpp\RSXNTDJ
SET PATH=%RSXNTDJ%\bin;%PATH%
SET C_INCLUDE_PATH=%RSXNTDJ%\include\win32\anders

Is this correct ? I have put the files in C:\DJGPP\djgpp\

I have tried changing the first line above to:
SETPATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DJGPP\djgpp\BIN;C:\djgpp\djgpp\RSXNTDJ\BIN
but this made no difference.



The only remark I can find on undefined reference's is in the djgpp
faq and says

I'm also told that the stdio.h header supplied with RSXNTDJ defines
several inline functions with the extern qualifier, which causes GCC
to not compile them into the object file, and triggers undefined
references. The solution is to define the extern symbol to an empty
string in one of the source files which includes the stdio.h header. 

But , being a beginner I don't know how to do this.

I tried using the rsixde program because the smaple programs had 
irs programs in their directories , and used the make function , which
I guessed compiled the program with all its links to other files , but
this only gave another lot of effor messages .

- Raw text -


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