Mail Archives: djgpp/2004/12/09/23:31:33
Dear Sir,
Recently I downloaded DJGPP for my interest. But I met with some
problems when executing gcc.exe. It displayed:
d:/dj/bin/ld.exe: cannot find -lc
collect2: ld returned 1 exit status
I think it has something to do with RAM disk. I'm using the computer
in the Department's computer room. The operation system is Win 2000 and the
amount of time I use the computer is recorded, and as a freshman, I have
only 100 computer hours for this term. So I tried to saved computer
time. I made a Win98 boot disk, and found network support, so that I can
start the computer under DOS, allocating RAM disk for 10MB by RAMDISK.SYS
(Microsoft), and download Turbo C++ 3.0 to use or just going on my
school's BBS (I found that the computer would crash when starting TC.EXE
if the size of the RAM disk is more than 10MB).
I found that Turbo C++ 3.0 doesn't support ANSI C++ completely (it was
made early before the standard came out), and it can't use memory well,
so I found DJGPP and want to have a look at it (I have little knowledge
about Linux, as I don't have my personal computer and don't have much time
to learn). But it seems to be a little big, so I downloaded XMSDSK, which
can simulate another RAM disk D: (I'm using XMSDSK 65536, which means use
a 64MB RAM disk). Then I downloaded DJGPP to the big RAM disk and unziped
it to D:\DJ. And I set DJGPP=d:\dj\djgpp.env. But when I want to compile
the simplest program hello.c, gcc brings out such error messages. The
computer seemed to have plenty of memory left, which I saw in go32-v2.
I then guessed that there might be some conflicts with RAM disk (by
the way, I only used himem.sys, ramdisk.sys, doskey.com, smartdrv.exe,
e100bpkt.com (packet driver), and xmsdsk.exe). However, when I found a
Win 98 computer, downloaded DJGPP, and entered the Command Prompt from
Startup Menu, also using himem, ramdisk, doskey, smartdrv, gcc COULD
run properly. I really don't know why, and it has taken me a lot of time
to try this and that. So could you please help me?
Thank you very much with best wishes!!!
Yin Dian
- Raw text -