[omniORB] arm-linux long double trouble

Tobias Hunger tobias@fresco.org
Mon Aug 5 15:57:00 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I have problems linking to omniDynamic4. Here is a short program from fresco's 
configure script showing the problem:

arm-linux-g++ -o conftest -g -O2 -I/home/cross/usr/include 
- -I/home/hunger/c/cross/usr/local/include  
- -L/home/hunger/c/cross/usr/local/lib/ conftest.cc  -lpthread -lomniDynamic4  
- -lomnithread -lomniORB4 >&5
<... Warnings about AME etc. omitted ...>
/home/hunger/c/cross/usr/local/lib//libomniDynamic4.so: un
defined reference to `operator<<=(long double &, cdrStream &)'
/home/hunger/c/Zaurus/buildroot-oz/staging/usr/local/lib//libomniDynamic4.so: 
undefined reference to `operator>>=(long double, cdrStream &)'
collect2: ld returned 1 exit status
configure:3780: $? = 1
configure: failed program was:
#line 3758 "configure"
#include "confdefs.h"
#include <omniORB4/CORBA.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
CORBA::Any_var any;
  ;
  return 0;
}


I guess this is caused by the length of the types on my arm-linux box: double 
and long double are 8 byte long. Any ideas how to fix this issue?

- -- 
Gruss,
Tobias

- ------------------------------------------------------------
Tobias Hunger           The box said: 'Windows 95 or better'
tobias@fresco.org                      So I installed Linux.
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9TpH5v0FZW3NyoqURApYoAJoCzk4Qd9TZHwlaayTSqgQT+ogqOwCbBxz6
xliuwsTEz94VLHPOTRRgtc8=
=6l9f
-----END PGP SIGNATURE-----