www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/10/20:23:51

Message-ID: <19990211012239.25650.rocketmail@send101.yahoomail.com>
Date: Wed, 10 Feb 1999 17:22:39 -0800 (PST)
From: Luke Ward <lukeaw AT yahoo DOT com>
Subject: program compile problem
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com


Hey, i'm having a problem compiling my first program.  First off i'd
like to say i'm no programer and have no experience with programs or
how to compile them.  However i followed instructions and i have
reason to believe that it may be the program and not me.  Ok, i'm
running on a P 200 mmx, 32 mb RAM system.  The output of the file
go32-v2.exe showed that the available DPMI memory is 22503 KB and the
available DPMI swap space is 7061 KB.  My autoexec.bat is as follows:

@C:\PROGRA~1\NORTON~1\NAVDX.EXE /Startup


SET MSINPUT=C:\MSINPUT
SET CLASSPATH=C:\Program Files\HEAT\navbar;%CLASSPATH%
set PATH=C:\DJGPP\BIN;%PATH%
set DJGPP=C:\DJGPP\DJGPP.ENV

My config.sys is as follows:

[common]
DEVICE=C:\CDROM\AOATAPI.SYS /D:IDECD000

my environ.lst file is as follows:

TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
MSINPUT=C:\MSINPUT
CLASSPATH=C:\Program Files\HEAT\navbar;
PATH=C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND
DJGPP=C:\DJGPP\DJGPP.ENV
windir=C:\WINDOWS
BLASTER=A220 I5 D1 

Now here is the problem, when i type gcc myfile.c -o myfile.exe
where myfile is the name of my file, it tells me this:

myfile.c:9:utmp.h:no such file or directory(ENOENT)
myfile.c:12:lastlog.h:no such file or directory(ENOENT)

Now, at the begining of the source there are these lines:

#include <fcntl.h>
#include <utmp.h>
#include <sys/types.h>
#include <unistd.h>
#include <lastlog.h>

i notice there is utmp.h and lastlog.h there but have absolutely NO
clue what they mean or what the rest of the source means either.  Now
i can include the entire source of the file which will remain nameless
for now.  i am quite sure this is either C or C++ programming but it
was given to me from someone else who i can't seem to get a hold of to
help me.  Any help that you can give would be much appreciated.  My
email is LukeAW AT yahoo DOT com
If you need the entire file source code i will supply it but would
rather not for copyright protection since i was told not to share this
file.  

Thanks

Luke

P.S. If this is going to be placed on a forum or news group  something
of that sort please inform me as to where i can see it.  





_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

- Raw text -


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