Mail Archives: djgpp/2002/08/17/16:17:04
If I link my C++program I get an error:
C:\DJGPP\KOD>gxx -o HELLO.exe HELLO.o -v
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.1/specs
Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR
--disab
le-nls
Thread model: single
gcc version 3.1
c:/djgpp/lib/gcc-lib/djgpp/3.1/collect2.exe -o HELLO.exe c:/djgpp/lib/crt0.o
-L
c:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/3.1 -Lc:/djgpp/bin -Lc:/djgpp/lib
-Lc:
/djgpp/lib/gcc-lib/djgpp/3.1/../../.. HELLO.o -lstdcxx -lm -lgcc -lc -lgcc
-Tdjg
pp-x.djl
c:/djgpp/lib/libc.a: could not read symbols: Malformed archive
collect2: ld returned 1 exit status
And this is the code:
#include <iostream>
using namespace std;
int
main ()
{
cout << "Hello World!\n";
return 0;
}
The environ.txt:
TMP=c:\windows\TEMP
TEMP=C:\windows\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
PATH=C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\COMMAND;˙˙˙ā}S$C:\PROGRAM\VANLIG~1\ODBC\FILEMA~1;C:\JDK1.1.8\BIN;C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\COMMAND
CLASSPATH="C:\Program\JavaSoft\JRE\1.3.1\lib\ext\QTJava.zip"
QTJAVA="C:\Program\JavaSoft\JRE\1.3.1\lib\ext\QTJava.zip"
DJGPP=C:\DJGPP\DJGPP.ENV
windir=C:\WINDOWS
BLASTER=A220 I5 D1
go32-v2.exe:
go32/v2 version 2.0 built Dec 24 2001 21:25:02
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: 20636 Kb
DPMI swap space available: 2296 Kb
autoexec.bat:
@C:\PROGRAM\NORTON~1\NAVBOOT.EXE /STARTUP
@ECHO OFF
SET BLASTER=A220 I5 D1
LH C:\WINDOWS\COMMAND\DOSKEY
if exist c:\pipost.bat call c:\pipost.bat
call c:\paprfix.bat
mode con codepage prepare=((850) c:\windows\COMMAND\ega.cpi)
mode con codepage select=850
keyb sv,,c:\windows\COMMAND\keyboard.sys
SET
Path=%Path%;˙˙˙ā}S$C:\PROGRAM\VANLIG~1\ODBC\FILEMA~1;C:\JDK1.1.8\BIN;C:\DJGPP\BIN;%PATH%
SET CLASSPATH="C:\Program\JavaSoft\JRE\1.3.1\lib\ext\QTJava.zip"
SET QTJAVA="C:\Program\JavaSoft\JRE\1.3.1\lib\ext\QTJava.zip"
SET DJGPP=C:\DJGPP\DJGPP.ENV
config.sys:
DEVICE=C:\WINDOWS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\WINDOWS\EMM386.EXE NOEMS
DOS=HIGH,UMB,AUTO
DEVICEHIGH=C:\WINDOWS\SYSTEM\CPQIDECD.SYS /D:IDECD001
FILESHIGH=80
BUFFERSHIGH=40,4
FCBSHIGH=10
SWITCHES=/F
device=c:\windows\COMMAND\display.sys con=(ega,,1)
Country=046,850,c:\windows\COMMAND\country.sys
I hope that you can find my problem... / Christoffer from Sweden
christoffer_adolfsson AT hotmail DOT com
_________________________________________________________________
MSN Hotmail är världens populäraste e-posttjänst. Skaffa dig ett eget konto
du också: http://www.hotmail.com
- Raw text -