This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
compiling problems with egcs
- To: help-gcc at gnu dot org
- Subject: compiling problems with egcs
- From: c dot l dot wood at nospam dot csuohio dot edu (Chris Wood)
- Date: 7 Oct 1999 04:06:06 GMT
- Newsgroups: gnu.gcc.help
- Organization: Cleveland State University
- Xref: wodc7nx0 gnu.gcc.help:1296
I've posted this in comp.lang.c++, so before the grumps in there flame me
for putting this in their NG, let me see if anyone here can help me.
As I've posted before, egcs will not compile C++ for me on Windows 98.
for an example:
Compiling ANY C++ code, I get the following error (compiling from within
Quincy99:
GNU C++ version egcs-2.91.57 19980901 (egcs-1.1 release) (i386-mingw32)
compiled by GNU C version egcs-2.91.57 19980901 (egcs-1.1 release).
E:\egcs-1.1\lib\libstdc++.a(floatconv.o)(.text+0x12d8): undefined reference
to `__imp__HUGE'
I have no problem compiling C, and I can compile the same C++ programs on
MSVC++
If I try compiling at the command line, I get this:
F:\Projects\CIS459\GRoup Project>gcc -o linked.exe linked.cpp
ld: cannot open -lgcc: No such file or directory
If I check the output of the linker, it seems to be repeating its default
arguments (sorry for the wrapped text):
ld -o linked.exe E:\EGCS-1.1\LIB\GCC-LIB\i386-mingw32\egcs-
2.91.57\..\..\..\..\
i386-mingw32\lib\crt1.o -LE:\EGCS-1.1\LIB\GCC-LIB -LE:\EGCS-1.1\LIB\GCC-
LIB\i386
-mingw32\egcs-2.91.57\..\..\..\..\i386-mingw32\lib -LE:\EGCS-1.1\LIB\GCC-
LIB\i38
6-mingw32\egcs-2.91.57\..\..\.. C:\WINDOWS\TEMP\ccBYx3fb.o -lmingw32 -lgcc
-lmoldname -lcrtdll -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -
lmoldname -lcrtdll
ld: cannot open -lgcc: No such file or directory
How do fix this?
Thanks in advance,
Chris
--
Chris Wood
Cleveland, OH
c.l.wood(at)csuohio.edu [ replace (at) with @ to send mail ]