I am trying to switch to the Solairs sparc 2.40 library. I am using GCC 3.4. When compiling both my program and the examples I get an undefined symbol "__floorf" in libgfl.so.
Doing a Google search I can figure out what floorf is used for, but I can't find where it is supposed to come from.
Any ideas where it should be found and linked in?
I can link just fine under Linux and under Solaris using the old 2.20 library, but I want to maintain the same code on all three platforms and the C++ wrapper changes makes that difficult if I don't use the same version on each platform.
Undefined Symbol in Solaris
Moderators: XnTriq, helmut, xnview
-
- Author of XnView
- Posts: 44723
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Undefined Symbol in Solaris
Which version of solaris do you have? I use cc not gcc, perhaps the problem??tailormade wrote:I am trying to switch to the Solairs sparc 2.40 library. I am using GCC 3.4. When compiling both my program and the examples I get an undefined symbol "__floorf" in libgfl.so.
Doing a Google search I can figure out what floorf is used for, but I can't find where it is supposed to come from.
Any ideas where it should be found and linked in?
I can link just fine under Linux and under Solaris using the old 2.20 library, but I want to maintain the same code on all three platforms and the C++ wrapper changes makes that difficult if I don't use the same version on each platform.
Pierre.
-
- Posts: 15
- Joined: Fri Jun 24, 2005 6:08 pm
Re: Undefined Symbol in Solaris
Are you sure you use the Sun Compiler (cc)? I am almost positive you are wrong. I tried using cc for my program, but GFL would not link with it so I had to switch to GCC 3.4.xnview wrote:
Which version of solaris do you have? I use cc not gcc, perhaps the problem??
I can link with V2.20 and my program compiled using gcc 3.40, so I don't think 2.20 could have been compiled using cc.
I am using gcc 3.4 under Solaris 8. GFL 2.20 will link with it, but GFL 2.40 gives the one undefined reference to __floorf from inside libgfl.so.
-
- Author of XnView
- Posts: 44723
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Undefined Symbol in Solaris
Strange i have used cc not gcc,could you send me a PM, i'll try to send you another version...tailormade wrote:Are you sure you use the Sun Compiler (cc)? I am almost positive you are wrong. I tried using cc for my program, but GFL would not link with it so I had to switch to GCC 3.4.xnview wrote:
Which version of solaris do you have? I use cc not gcc, perhaps the problem??
I can link with V2.20 and my program compiled using gcc 3.40, so I don't think 2.20 could have been compiled using cc.
I am using gcc 3.4 under Solaris 8. GFL 2.20 will link with it, but GFL 2.40 gives the one undefined reference to __floorf from inside libgfl.so.
Pierre.