This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

compiling problems with egcs


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 ]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]