Mail Archives: djgpp/2002/07/04/04:15:48
On Wed, 3 Jul 2002, Evan Hefner wrote:
> When I try to compile the following C++ program with RHIDE, it gives me
> link errors refering to (iostream?) functions. I have no idea what the
> problem is. Can anyone tell me how to fix it?
> The program is as follows:
> #include <isotream>
> int main(){
> return 0;
> }
> The first error I get is something about a function __convert_to_v in
> locale.o and the second is something about an undefined reference to
> _finite.
I guess You're using gcc-3.1 (but please don't think that it always
it's possible to guess what You're using. I'ts recommended to provide
more complete information to get help)
You should link libm.a after libstdcxx.a
Try following (I know Eli will be not happy with the recommendation ...):
1) Find file DJGPP.ENV, to which environment variable DJGPP is pointing
2) Backup it (to be able to restore it if editting will break it)
3) Find RHIDE related section (Some lines after line which contains
'[rhide]')
4) And replace it with following (You should already have similar lines
in Your DJGPP.ENV):
[rhide]
+RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx m
+RHIDE_TYPED_LIBS_DJGPP.cxx=stdcxx m
+RHIDE_TYPED_LIBS_DJGPP.cpp=stdcxx m
+RHIDE_TYPED_LIBS.f=g2c m
Please don't change anything else in this file
Andris
- Raw text -