delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/02/16:36:22

From: "Joe C." <jcam_0 AT my-deja DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: DJGPP/Long filename problems in Windows NT/DOS box :-(
Date: Thu, 02 Sep 1999 19:04:15 GMT
Organization: Deja.com - Share what you know. Learn what you don't.
Lines: 56
Message-ID: <7qmhn5$v0n$1@nnrp1.deja.com>
NNTP-Posting-Host: 207.141.93.10
X-Article-Creation-Date: Thu Sep 02 19:04:15 1999 GMT
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)
X-Http-Proxy: 1.0 x22.deja.com:80 (Squid/1.1.22) for client 207.141.93.10
X-MyDeja-Info: XMYDJUIDjcam_0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I'm having a problem running the djgpp/gpp compiler on Windows NT.
I've looked at a few posts and tried the suggestions regarding long
filenames, but so far it's still not working.

Here's what I've done:

Used winzip to unzip djdev202.zip, gcc295b.zip and gpp295b.zip.  When I
look at the files in Win Explorer, or in a DOS box with DIR I can see
the long filenames just fine.  But when I try to "vi" or "edit" the
files, like "streambuf.h" I get no file - I can only edit it as
"stream~1.h"!  When I tried to compile this simple program to test:

#include <iostream>
use namespace std;

int main() {

        cout << "this is a test" << endl;

        return 0;
}

I got an error message:

>  test.cpp: d:/djgpp/lang/cxx/iostream.h:31: streambuf.h : No such
file or directory
>  ENOENT )

Also, the LFN= was set to "y" in the djgpp.env file.

This confirmed that DJGPP just didn't see streambuf.h, even though it
was there...

I read a post that said DJGPP does not have access to long filenames on
Windows NT, so I tried the next suggestion which was to use pkunzip.  I
did this, and I got the 8.3 filename format (but without the annoying
"~1" etc. ), set the LFN= to "n" in djgpp.env (also set it to "y"), and
still got errors.  This time the compiler says:

test.cpp:2: syntax error before `namespace'

If I just change the "include/namespace" lines to "#include
<iostream.h>" I get:

gpp.exe: installation problem, cannot exec `as': No such file or
directory (ENOENT)

Not sure of the next step, or if DJGPP/gpp will even run on Windows NT
at all.  Any suggestions appreciated.

TIA,
Joe


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

- Raw text -


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