DJGPP compiler problem

DJGPP compiler problem

Post by Angel Rache » Wed, 10 Jan 2001 10:17:18



=====
:)>-<Rachel:)(:Jean-Marie:)(:Rebar>-<(:

__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

[ letter 1K ]


                                       snail mail: John V.Rebar
                                                   26300 Ansell Rd. N.W.
                                                   Poulsbo, Wa. 98370
        Dear Mr.D.J. Delorie,
        Ref: Sam's ISBN 0-672-31564-5 (DOS disk, DJGPP v2.02)

        I purchased "Sam's Teach Yourself C++ in 21 Days" about Nov.10,
    2000, more than twice 21 days has elapsed and I am still unable to
    compile "Hello World!", the first program in the book.
        I have thus far gained no satisfactory response to questions
    I've asked of Macmillan Publishing and now, in desparation, I appeal
    to you, the developer.
        I named the "Hello World!" program "hw.cpp".
        I typed "gcc hw.cpp" and got the following response:

        In file included from hw.cpp:1:
        c:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or dir
                                                               (EONENT)
        It is clear to me that DOS cannot find the include file because the
    path statement is bogus. The backslashes are RIGHT leaning when they
    should be LEFT leaning. I am amazed that such a bonehead error could
    have gotten past quality control.
        I have searched the entire suite of your programs and found the
    cited string in the cpp.exe file, line 20, col.40 but am unsure how to
    fix it or if indeed that is the problem. This is rather urgent since I
    want to compile my first C++ program before I am grayhaired.
      I believe it is your responsibility to fix this problem.  When you sell
    a product it ought to work!!

    Thank you.
    Sincerely,
    John V. Rebar

        P.S. This is not a WINDOWS problem!
        P.S. Please email and snail mail your response and send me
        a 3.5 inch floppy with a corrected version of cpp.exe on it.
        The path to cpp.exe is lib\gcc-lib\djgpp\2.81

 
 
 

DJGPP compiler problem

Post by DJ Delori » Wed, 10 Jan 2001 10:31:20


Quote:>         I purchased "Sam's Teach Yourself C++ in 21 Days" about Nov.10,
>     2000, more than twice 21 days has elapsed and I am still unable to
>     compile "Hello World!", the first program in the book.

You should have asked for help earlier.

Quote:>         In file included from hw.cpp:1:
>         c:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or dir

What OS are you using?  I'm going to guess NT, and you used winzip to
install the files, or you have 95/98 and you used pkunzip to install
the files.

Quote:>         It is clear to me that DOS cannot find the include file because the
>     path statement is bogus. The backslashes are RIGHT leaning when they
>     should be LEFT leaning. I am amazed that such a bonehead error could
>     have gotten past quality control.

It's not a bonehead error; DJGPP is a posix emulation, and fully
supports both styles of slashes.  I've been doing this for, oh, twelve
years now.  You'd think I'd notice something as basic as this.

Quote:>       I believe it is your responsibility to fix this problem.  When you sell
>     a product it ought to work!!

Did you buy the book from me?  No.  Did you buy it from Sams?  Yes.
It is *their* responsibility to ensure that the software *they* sell
you works.  *I* provide no warrantee AT ALL for the software I write
(although people rarely would need one), and I derive NO income from
Sams book sales.  Not a penny.

Quote:>         P.S. This is not a WINDOWS problem!

Actually, it is a windows problem.  Their support of long file names
in the DOS sessions varies from release to release, and they did a
poor job of it.  That makes it very difficult for us to make sure
users install the software correctly for the version of Windows
they're using.  We have our own install technique that Sams obviously
didn't use.

Quote:>         P.S. Please email and snail mail your response and send me
>         a 3.5 inch floppy with a corrected version of cpp.exe on it.
>         The path to cpp.exe is lib\gcc-lib\djgpp\2.81

Not a chance.

 
 
 

DJGPP compiler problem

Post by Eli Zaretski » Wed, 10 Jan 2001 17:26:39



>         In file included from hw.cpp:1:
>         c:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or dir
>                                                                (EONENT)
>         It is clear to me that DOS cannot find the include file because the
>     path statement is bogus. The backslashes are RIGHT leaning when they
>     should be LEFT leaning. I am amazed that such a bonehead error could
>     have gotten past quality control.

Your analysis is wrong: DJGPP supports both styles of slashes.

It's not a problem with slashes, it's an installation snafu, which has
to do with long file names (streambuf.h exceeds the DOS 8+3 limits).

If this is on Windows NT, remove your DJGPP installation and then
unzip it again with a DOS (not Windows!) unzip program.  If this is
Windows 9X, set LFN=y in the environment and try compiling again.

Quote:>       I believe it is your responsibility to fix this problem.  When you sell
>     a product it ought to work!!

It is okay to ask for help in this forum, even though you didn't buy
the book from DJ Delorie.  But it is NOT okay to _demand_ help from
someone whose work you are using without paying them a dime for
support or for the software.

You bought the book from SAMS, so it is their responsibility to make
their product work correctly on all supported platforms, and provide
installation instructions that work.

FWIW, there's a FAQ for DJGPP which lists solutions for some popular
problems.  If the book you bought doesn't come with a copy of the FAQ,
you can find the latest version here:

  ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/faq230b.zip
  http://www.delorie.com/djgpp/v2faq/faq.html

 
 
 

DJGPP compiler problem

Post by Raymond Martine » Wed, 10 Jan 2001 23:40:56




>                                        snail mail: John V.Rebar
>                                                    26300 Ansell Rd. N.W.
>                                                    Poulsbo, Wa. 98370
>         Dear Mr.D.J. Delorie,
>         Ref: Sam's ISBN 0-672-31564-5 (DOS disk, DJGPP v2.02)

>         I purchased "Sam's Teach Yourself C++ in 21 Days" about Nov.10,
>     2000, more than twice 21 days has elapsed and I am still unable to
>     compile "Hello World!", the first program in the book.
>         I have thus far gained no satisfactory response to questions
>     I've asked of Macmillan Publishing and now, in desparation, I appeal
>     to you, the developer.
>         I named the "Hello World!" program "hw.cpp".
>         I typed "gcc hw.cpp" and got the following response:

>         In file included from hw.cpp:1:
>         c:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or dir
>                                                                (EONENT)

This is a common PEBKAC caused by the improper installation of the DJGPP
packages.  The workaround for this is contained in the Frequently Asked
Questions.  

If you cannot find the workaround in The FAQ, you will need to post your
operating system, as well as the program used to extract the files from
the packages.

--

 
 
 

DJGPP compiler problem

Post by Chia-Hooi Li » Wed, 17 Jan 2001 17:42:07


Quote:>Your analysis is wrong: DJGPP supports both styles of slashes.

>It's not a problem with slashes, it's an installation snafu, which has
>to do with long file names (streambuf.h exceeds the DOS 8+3 limits).

>If this is on Windows NT, remove your DJGPP installation and then
>unzip it again with a DOS (not Windows!) unzip program.  If this is
>Windows 9X, set LFN=y in the environment and try compiling again.

Hi... I also having the same problem. I used the install.exe that comes with
DJGPP... I tried on both Windows NT and Win98, but it gave me same problem. Can you
give me some suggestion to how to fix the problems? How to set LFN=y in the
environment for windows 9x?

Thanks..

Chia-Hooi Lim

 
 
 

DJGPP compiler problem

Post by Prashant Ramachandr » Wed, 17 Jan 2001 18:25:32




| How to set LFN=y
| in the
| environment for windows 9x?

Edit the file C:\DJGPP\DJGPP.ENV and change the line.
The default should be LFN=y anyway.
--

Web: http://www.midpec.com/

 
 
 

DJGPP compiler problem

Post by Eli Zaretski » Wed, 17 Jan 2001 18:38:31



> >If this is on Windows NT, remove your DJGPP installation and then
> >unzip it again with a DOS (not Windows!) unzip program.  If this is
> >Windows 9X, set LFN=y in the environment and try compiling again.
> Hi... I also having the same problem. I used the install.exe that comes with
> DJGPP... I tried on both Windows NT and Win98, but it gave me same problem. Can you
> give me some suggestion to how to fix the problems?

I gave the suggestion (reproduced above) to use unzip32.exe to unpack the
zip files.  Did you try that?  If not, please do.

Quote:> How to set LFN=y in the environment for windows 9x?

From the DOS box's command prompt, type "set LFN=y" (without the quotes),
and then hit the [Enter] key.
 
 
 

DJGPP compiler problem

Post by Eli Zaretski » Wed, 17 Jan 2001 18:54:51





> | How to set LFN=y
> | in the
> | environment for windows 9x?

> Edit the file C:\DJGPP\DJGPP.ENV and change the line.

No, please do NOT edit DJGPP.ENV!  It has cryptic syntax, which makes it
very easy to*the entire DJGPP installation.

Veteran DJGPP users are kindly requested not to suggest that newbies edit
DJGPP.ENV, especially if the newbie in question has installation problems.

Quote:> The default should be LFN=y anyway.

Yes, but it seems not to be working.
 
 
 

DJGPP compiler problem

Post by taupi » Wed, 17 Jan 2001 23:05:00





> | How to set LFN=y
> | in the
> | environment for windows 9x?

> Edit the file C:\DJGPP\DJGPP.ENV and change the line.
> The default should be LFN=y anyway.
> --

> Web: http://www.midpec.com/

Another solution:
 - open a MS-DOS window
 - click at the uppermost left corner (on the MSDOS logo)
 - edit "Properties"
 - Then at the third parameter window, you have something like "command
file"
   Give a complete file name at this place (mine is c:\auto-dos.bat) and
edit that file (at the right place)
   in which you put a line:

   SET LFN=y

   The file you stated in this window is the specific autoexec-like
command you execute each time you open a MSDOS window.
In that procedure, you can also make a lot of things (such as antivirus
check, setting other environment commands, callling some initialization
procedures, etc.)

Note that the advantage of having a name recalling autoexec.bat but not
identical may prevent you from virusses trying to infect your autoexec,
such as inserting a line like "del c:\windows\*.exe" or other dreadfull
things.

--

------------------------------------------------------------------------
  Daniel Taupin, Physique des Solides, Univ. Paris-Sud, 91405 ORSAY

  Tl: (33)1.69.15.60.79, Fax: (33)1.69.15.60.86, home/fax:
(33)1.60.10.26.44

------------------------------------------------------------------------

 
 
 

1. DJGPP COMPILER PROBLEMS

I recently downloaded DJGPP.  I recievd the following files.

djdev202  (DJGPP basic developement kit)
bnu281b   (Basic assembler, linker)
gcc281b   (Basic GCC compiler)
lgp2811b  (C++ libraries)
gpp281b   (c++ compiler)

I am having trouble compiling programs that include classes included
in a college text book on programming in c++

the following simple program won't compile:

#include "ccc_win.cpp"
int main()
{ Point p(1, 3);
  cwin << p << Circle(p, 2.5);
  return 0;

Tried to compile with following command:

gxx -w -IC:\programming\cs201\horstman\cccfiles\ -o c.exe c.cpp

recieved following compiler error:

In file included from c.cpp:2:
C:/programming/cs201/horstman/cccfiles/ccc_win.cpp:28: windows.h:
No such file or directory.

I have no windows.h file in any of my directories.  Do I need to
download a
library that contains this header file? Any help with this problem will
be
greatly appreciated. Thanks.

------------------------------------------

go32/v2 version 2.0 built Nov 15 1998 14:36:43
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries
as
 well as v1 binaries (old makefiles).  Put ahead of the old go32 in your
PATH
 but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.

DPMI memory available: 24072 Kb
DPMI swap space available: 38224 Kb

___________________________________

TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
MSINPUT=C:\MSINPUT
DJGPP=C:\DJGPP\DJGPP.ENV
PATH=C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;;C:\PROGRA~1\BORLAND\CBUILD~1\BIN

windir=C:\WINDOWS
SNDSCAPE=C:\WINDOWS
BLASTER=A220 I5 D1 T2
CMDLINE=doskey e=c:\windows\explorer.exe

_______________________________________


SET MSINPUT=C:\MSINPUT
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;
SET DJGPP=C:\DJGPP\DJGPP.ENV
SET PATH=C:\DJGPP\BIN;%PATH%;C:\PROGRA~1\BORLAND\CBUILD~1\BIN
REM [CD-ROM Drive]

REM [Display]

REM [Sound, MIDI, or Video Capture Card]

REM [Mouse]

REM [Miscellaneous]

--------------------

FILES=60

2. PHONE MONITORING (SERVICE OBSERVANCE)

3. My Total Ignorance, DJGPP compiler problem

4. retrieves the path of the temprory directory

5. Problem with DJGPP Compiler

6. Variable argument lists in Rational Rose 4.0

7. Problem compiling a DJGPP gcc 3.0 cross compiler

8. Windows 2000 Server Standard Administrator pwd

9. problem compiling djgpp with DJGPP Front-End For Windows 95

10. DJGPP contest. Was: Problems djgpp+perl+MSDOS

11. egcs 1.1.2 linux-x-djgpp compiler?

12. djgpp compiler v.2.03