www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000355

When Created: 08/08/2002 11:21:05
Against DJGPP version: 2.03
By whom: a.pacquola@jumpy.it
Abstract: problem; unable to run Helloworld.cpp; unknown error message

This is a bug report for RHIDE 1.4.9 (Sep  3 2001 21:57:52)
I am running MS-DOS 8.0 (Windows 95)

Important environment variables:
PATH=C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND
DJGPP=c:\djgpp\djgpp.env
DJDIR=c:/djgpp
LFN=y
INFOPATH=.;c:/djgpp/share/rhide;c:/djgpp/bin/../share/rhide;c:/djgpp/share/rhide/SET;c:/djgpp/bin/../share/rhide/SET;c:/djgpp/info;c:/djgpp/gnu/emacs/info
LOCALEDIR=
LANGUAGE=
SHELL=
COMSPEC=C:\WINDOWS\COMMAND.COM
DJSYSFLAGS=

Here is the output from a sample compilation and link for C
executing: 
echo "int main(){return 0;}" | redir -eo gcc -Xlinker -v -Wa,-v -v -o /dev/null -x c -
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.1/specs
Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls
Thread model: single
gcc version 3.1
 c:/djgpp/lib/gcc-lib/djgpp/3.1/cc1.exe -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -Asystem=msdos -Asystem=unix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -DMSDOS -DGO32 -DDJGPP=2 -Dunix -remap -imacros c:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver - -quiet -dumpbase - -version -o c:/djgpp/tmp/RHbaaaaa/ccJark2H.s
GNU CPP version 3.1 (cpplib) (80386, BSD syntax)
GNU C version 3.1 (djgpp)
	compiled by GNU C version 3.1.
ignoring nonexistent directory "c:/djgpp/djgpp/include"
#include "..." search starts here:
#include <...> search starts here:
 c:/djgpp/lib/gcc-lib/djgpp/3.1/include
 c:/djgpp/include
End of search list.
<stdin>:1: parse error before string constant

End of the sample

Here is the output from a sample compilation and link for C++
executing: 
echo "int main(){return 0;}" | redir -eo gcc -Xlinker -v -Wa,-v -v -o /dev/null -x c++ -
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.1/specs
Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls
Thread model: single
gcc version 3.1
 c:/djgpp/lib/gcc-lib/djgpp/3.1/cc1plus.exe -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -Asystem=msdos -Asystem=unix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -DMSDOS -DGO32 -DDJGPP=2 -Dunix -remap -imacros c:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver - -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase - -version -o c:/djgpp/tmp/RHbaaaaa/ccU0L17i.s
GNU CPP version 3.1 (cpplib) (80386, BSD syntax)
GNU C++ version 3.1 (djgpp)
	compiled by GNU C version 3.1.
ignoring nonexistent directory "c:/djgpp/djgpp/include"
#include "..." search starts here:
#include <...> search starts here:
 c:/djgpp/lang/cxx-v31
 c:/djgpp/lang/cxx-v31/djgpp
 c:/djgpp/lang/cxx-v31/backward
 c:/djgpp/lib/gcc-lib/djgpp/3.1/include
 c:/djgpp/include
End of search list.
<stdin>:1: parse error before string constant

End of the sample

**********************************************************************
System info:

Rhide: version 1.4.9
DJGPP: version 2.03

Packages installed:
bnu2121b
djdev203
gcc31b
gdb511b
gpp31b
mak3791b
rhid149b


OS: Windows ME 4.90.3000
System:	X86-based PC
Processor: Intel(r) Celeron(tm) processor GenuineIntel ~600 MHZ
BIOS: Award Modular BIOS v6.00PG

********************************************************************************

My problem is the following:

Testing Rhide1.4.9 with this source code (hello.cpp):

#include <iostream>

using namespace std;

int main()

{
   cout << "Hello";

   return 0;
}
 

Message window output:

Compiling: hello.cpp
no errors
Creating: hello.exe
Error: c:/djgpp/lib/gcc-lib/djgpp/3.1/libstdcxx.a(c++locale.o):
In function `void std::__convert_to_v<float>(char const*, float&, std::_Ios_Iostate&, int* const&, int)':
c++locale.o(135) Error: undefined reference to `_finite'
Error: collect2: ld returned 1 exit status
There were some errors

********************************************************************************

environ.txt:

COMSPEC=C:\WINDOWS\COMMAND.COM
PROMPT=$p$g
TEMP=C:\WINDOWS\TEMP
TMP=C:\WINDOWS\TEMP
winbootdir=C:\WINDOWS
windir=C:\WINDOWS
BLASTER=A220 I5 D1 T4 P330
PATH=C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND
DJGPP=c:\djgpp\djgpp.env
DJDIR=c:/djgpp
USER=dosuser
GROUP=root
TMPDIR=c:/djgpp/tmp/RHbaaaaa
EMU387=c:/djgpp/bin/emu387.dxe
LFN=y
TEXMFMAIN=c:/djgpp/share/texmf
GO32STUB=c:/djgpp/bin/stubify.exe
RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx
RHIDE_TYPED_LIBS_DJGPP.cxx=stdcxx
RHIDE_TYPED_LIBS_DJGPP.cpp=stdcxx
RHIDE_TYPED_LIBS_DJGPP.f=g2c m
INFOPATH=.;c:/djgpp/share/rhide;c:/djgpp/bin/../share/rhide;c:/djgpp/share/rhide/SET;c:/djgpp/bin/../share/rhide/SET;c:/djgpp/info;c:/djgpp/gnu/emacs/info
INFO_COLORS=0x1f.0x31
INFO_LINES=40




Output of go32-v2:

DPMI memory available: 90590 Kb
DPMI swap space available: 32730 Kb




Autoexec.bat:

@ECHO OFF
path=c:\windows;c:\windows\command
\hibinv.exe
call \checksr.bat
IF "%config%"=="QUICK" GOTO QUICK
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%path%;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy leggimi.txt %RAMD%:\ > NUL

:ERROR
IF EXIST ebd.cab GOTO EXT
echo Inserire il disco di ripristino 2 di Windows Windows Millennium Edition
echo.
pause
GOTO ERROR

:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo Utilit… di diagnostica caricate su unit… %RAMD%.
echo.

IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
::If MSCDEX doesn't find a drive...
IF ERRORLEVEL 1 SET CDPROB=1
::
GOTO QUIT

:HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
::If MSCDEX doesn't find a drive...
IF ERRORLEVEL 1 SET CDPROB=1
cls
call help.bat
::
GOTO QUIT

:QUIT
call fixit.bat
rem Riordino variabili di sistema
set CDPROB=
set CDROM=
set LglDrv=
GOTO QUICK

:QUICK





Config.sys:

[menu]
menuitem=HELP, Guida
menuitem=CD, Avvia computer con supporto CD-ROM.
menuitem=NOCD, Avvia computer senza supporto CD-ROM.
menuitem=QUICK, Avvio minimo
menudefault=HELP,30
menucolor=7,0

[HELP]
device=oakcdrom.sys /D:mscd001 
device=btdosm.sys 
device=flashpt.sys
device=btcdrom.sys /D:mscd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /D:mscd001
devicehigh=ramdrive.sys /E 2048

[CD]
device=oakcdrom.sys /D:mscd001 
device=btdosm.sys 
device=flashpt.sys
device=btcdrom.sys /D:mscd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /D:mscd001
devicehigh=ramdrive.sys /E 2048

[NOCD]
devicehigh=ramdrive.sys /E 2048

[QUICK]

[COMMON]
files=10
buffers=10
dos=high,umb
stacks=9,256
lastdrive=z
device=display.sys con=(ega,,1)
country=039,850,country.sys
install=mode.com con cp prepare=((850) ega.cpi)
install=mode.com con cp select=850
install=keyb.com it,,keyboard.sys


************************************************
Bug report 10.27 08/08/2002 of:

Andrea Pacquola
mail: a.pacquola@jumpy 
************************************************

Solution added: 08/09/2002 08:44:08
By whom: a.pacquola@jumpy.it
Not a bug; solution posted to me by A.Pavenis:

"libm.a must be linked AFTER libstdcxx.a. Simple workaround is to put
both libstdcxx.a and libm.a explicitly at end of libraries to be linked in."

Thanks, excuse me.

A.Pacquola

Fixed in version on 08/09/2002 08:46:02
By whom: a.pacquola@jumpy.it



  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2010   by DJ Delorie     Updated Jul 2010