# Version 1.38

**URL:** <https://forum.juce.com/t/version-1-38/1023>\
**Category:** General JUCE discussion\
**Created:** [September 4, 2006, 6:24pm UTC](https://forum.juce.com/t/version-1-38/1023 "2006-09-04T18:24:14Z")\
**Posts on this page:** 18\
**Page:** 2

<div class="post-metadata">

**Author:** ![auspuff](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@auspuff](https://forum.juce.com/u/auspuff)\
**Post date:** [September 12, 2006, 2:10pm UTC](https://forum.juce.com/t/version-1-38/1023/21 "2006-09-12T14:10:22Z")

</div>

removing OTHER\_LD\_FLAGS\_ppc does not change a thing, debug build fails, release works ☹

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 12, 2006, 2:23pm UTC](https://forum.juce.com/t/version-1-38/1023/22 "2006-09-12T14:23:06Z")

</div>

Builds just fine on my machine, so can’t think what’s wrong there.

But if you’ve not got 10.2, then I wouldn’t bother using 10.3 anyway - just get rid of the xconfig file altogether and do a normal 10.4 build. The only reason I the xconfig is there is if you want to build a universal binary that works on all platforms from 10.2 owards.

---

<div class="post-metadata">

**Author:** ![auspuff](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@auspuff](https://forum.juce.com/u/auspuff)\
**Post date:** [September 12, 2006, 3:09pm UTC](https://forum.juce.com/t/version-1-38/1023/23 "2006-09-12T15:09:48Z")

</div>

removing xconfig file produces a different error:

/code/juce\_1\_38/build/macosx/…/…/src/juce\_core/text/juce\_String.cpp:331: error: ‘\_\_isfinite’ was not declared in this scope

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 12, 2006, 3:16pm UTC](https://forum.juce.com/t/version-1-38/1023/24 "2006-09-12T15:16:44Z")

</div>

juce\_isfinite is declared in juce\_MathsFunctions.h

If you have a look, you’ll see it’s defined differently for each OS version - on my setup here, to build in 10.3, I needed to use \_\_isfinite, and that still works for me. No idea why yours would be different, but I’d be interested to know if you can hack that file around to get it to build on your machine.

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://forum.juce.com/u/igor)\
**Post date:** [September 12, 2006, 3:23pm UTC](https://forum.juce.com/t/version-1-38/1023/25 "2006-09-12T15:23:23Z")

</div>

[quote=“jules”]Builds just fine on my machine, so can’t think what’s wrong there.

But if you’ve not got 10.2, then I wouldn’t bother using 10.3 anyway - just get rid of the xconfig file altogether and do a normal 10.4 build. [/quote]

I don’t know if it will help, but I had a similar problem. The ppc target for juce was set to 10.2.8, and my intel iMac doesn’t have that SDK installed. Changing the xconfig references to 10.2.8 to 10.3.9 fixed the problem.

I am getting a number of warnings of deprecated calls. Has anyone else mentioned that? Things like GetPort, SetPort, Region calls, Show and HideCursor…

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 12, 2006, 4:18pm UTC](https://forum.juce.com/t/version-1-38/1023/26 "2006-09-12T16:18:09Z")

</div>

[quote=“igor”][quote=“jules”]Builds just fine on my machine, so can’t think what’s wrong there.

But if you’ve not got 10.2, then I wouldn’t bother using 10.3 anyway - just get rid of the xconfig file altogether and do a normal 10.4 build. [/quote]

I don’t know if it will help, but I had a similar problem. The ppc target for juce was set to 10.2.8, and my intel iMac doesn’t have that SDK installed. Changing the xconfig references to 10.2.8 to 10.3.9 fixed the problem.

I am getting a number of warnings of deprecated calls. Has anyone else mentioned that? Things like GetPort, SetPort, Region calls, Show and HideCursor…[/quote]

That’s the same thing, but auspuff’s getting different errors when building for 10.3

The deprecated warnings are annoying, but for most of it, I can’t find any other way of doing the things that use these old functions… For example, getting the mouse position is deprecated, but there’s no replacement function!

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 13, 2006, 9:57am UTC](https://forum.juce.com/t/version-1-38/1023/27 "2006-09-13T09:57:18Z")

</div>

Ok, I just managed to get this error to happen to me as well - here’s a fix, which replaces a section of juce\_MathsFunctions.h:

```auto
#ifdef JUCE_LINUX
  #define juce_isfinite(v) std::isfinite(v)
#elif JUCE_MAC
  #if MACOS_10_2_OR_EARLIER
    #define juce_isfinite(v) __isfinite(v)
  #elif MACOS_10_3_OR_EARLIER
    #define juce_isfinite(v) __isfinited(v)
  #else
    #define juce_isfinite(v) std::isfinite(v)
  #endif
#elif JUCE_WIN32 && ! defined (isfinite)
  #define juce_isfinite(v) _finite(v)
#else
  #define juce_isfinite(v) isfinite(v)
#endif
```

You’ll probably have to make sure you do a full clean rebuild to get it to compile properly.

---

<div class="post-metadata">

**Author:** ![testcase](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@testcase](https://forum.juce.com/u/testcase)\
**Post date:** [September 14, 2006, 3:37am UTC](https://forum.juce.com/t/version-1-38/1023/28 "2006-09-14T03:37:33Z")

</div>

Hi,  
I also was having a couple of build issues under 10.4, but the suggestions above fixed the problems. i trashed the juce.xcode and i then had an error about converting int\* to socklen\_t\*. i changed the following in juce\_Socket.cpp, i guess the #if is not working correctly.

#if defined (JUCE\_LINUX) || (defined (JUCE\_MAC) && ! MACOS\_10\_2\_OR\_EARLIER)  
socklen\_t len = sizeof (sockaddr);  
#else  
socklen\_t len = sizeof (sockaddr);

thanks

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 14, 2006, 8:05am UTC](https://forum.juce.com/t/version-1-38/1023/29 "2006-09-14T08:05:47Z")

</div>

[quote=“testcase”]Hi,  
I also was having a couple of build issues under 10.4, but the suggestions above fixed the problems. i trashed the juce.xcode and i then had an error about converting int\* to socklen\_t\*. i changed the following in juce\_Socket.cpp, i guess the #if is not working correctly.

#if defined (JUCE\_LINUX) || (defined (JUCE\_MAC) && ! MACOS\_10\_2\_OR\_EARLIER)  
socklen\_t len = sizeof (sockaddr);  
#else  
socklen\_t len = sizeof (sockaddr);

thanks[/quote]

I’ve tested that code under 10.2, 10.3 and 10.4, and had no problems. Maybe your build has conflicting settings about which OS version it’s targeting? Seems like your MACOS\_10\_2\_OR\_EARLIER flag must be set even though you’re using 10.4.

---

<div class="post-metadata">

**Author:** ![testcase](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@testcase](https://forum.juce.com/u/testcase)\
**Post date:** [September 14, 2006, 3:02pm UTC](https://forum.juce.com/t/version-1-38/1023/30 "2006-09-14T15:02:50Z")

</div>

[quote=“jules”]

I’ve tested that code under 10.2, 10.3 and 10.4, and had no problems. Maybe your build has conflicting settings about which OS version it’s targeting? Seems like your MACOS\_10\_2\_OR\_EARLIER flag must be set even though you’re using 10.4.[/quote]

Hmm. I can’t find anything, but I will continue to look and post if I find something.

---

<div class="post-metadata">

**Author:** ![testcase](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@testcase](https://forum.juce.com/u/testcase)\
**Post date:** [September 18, 2006, 9:49pm UTC](https://forum.juce.com/t/version-1-38/1023/31 "2006-09-18T21:49:54Z")

</div>

hi i think the following needs to be added to juce\_Slider.cpp

void SliderListener::sliderValueChanged (Slider\*)  
{  
}

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 19, 2006, 8:51am UTC](https://forum.juce.com/t/version-1-38/1023/32 "2006-09-19T08:51:46Z")

</div>

Really?.. It’s a pure virtual function deliberately to make sure people can’t forget to implement it. Why do you think it shouldn’t be pure virtual?

---

<div class="post-metadata">

**Author:** ![testcase](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@testcase](https://forum.juce.com/u/testcase)\
**Post date:** [September 19, 2006, 3:29pm UTC](https://forum.juce.com/t/version-1-38/1023/33 "2006-09-19T15:29:54Z")

</div>

Ooop. My error. sorry. I am making some wrappers so that some things can be called from lisp and i was getting a link error because it was a missing symbol - but, as you point out it should be.

---

<div class="post-metadata">

**Author:** ![atomix1040](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@atomix1040](https://forum.juce.com/u/atomix1040)\
**Post date:** [January 16, 2007, 8:57pm UTC](https://forum.juce.com/t/version-1-38/1023/34 "2007-01-16T20:57:46Z")

</div>

```auto
Ld /Developer/Projects/myPlug/build/JuceVST.vst/Contents/MacOS/JuceVST normal ppc
    cd /Developer/Projects/myPlug/build/VST_Mac
    /usr/bin/g++-4.0 -o /Developer/Projects/myPlug/build/JuceVST.vst/Contents/MacOS/JuceVST -L/Developer/Projects/myPlug/build -L/Developer/SDKs/juce/bin -F/Developer/Projects/myPlug/build -filelist /Developer/Projects/myPlug/build/JuceVST.build/Objects-normal/ppc/JuceVST.LinkFileList -framework Carbon -framework QuickTime -framework AGL -framework CoreAudio -framework CoreServices -framework CoreMIDI -arch ppc -Wl,-Y,1455 -bundle -mmacosx-version-min=10.3 -ljucedebug -isysroot /Developer/SDKs/MacOSX10.3.9.sdk
/usr/bin/ld: /Developer/SDKs/juce/bin/libjucedebug.a(juce_String.o) illegal reference for -dynamic code (section difference reference from section ( __TEXT,__ eh_frame) relocation entry (50) to symbol: ___isfinite defined in dylib: /Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libSystem.dylib)
collect2: ld returned 1 exit status
```

this is what i’m getting, juce is 1.40 audiopluginframework is latest.

i can’t compile with sdk 10.4u cause it gives me an error with undefined juce\_isfinite(), i’m kinda stuck. any ideas ? (this is a debug build with juce build on sdk 10.3.9).

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 17, 2007, 9:56am UTC](https://forum.juce.com/t/version-1-38/1023/35 "2007-01-17T09:56:45Z")

</div>

That isfinite thing is a real PITA on the mac as every OS release and compiler change seems to implement it in bizarre and incompatible ways…

In the upcoming release I’ve removed all uses of it from the library itself, using tests like “n \> -1.0e20 && n \< -1.0e20” (or something appropriate) instead. That way at least it all links.

---

<div class="post-metadata">

**Author:** ![atomix1040](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@atomix1040](https://forum.juce.com/u/atomix1040)\
**Post date:** [January 17, 2007, 10:18am UTC](https://forum.juce.com/t/version-1-38/1023/36 "2007-01-17T10:18:09Z")

</div>

and i though macos was superior in all ways possible. and yet this thing comes up.

i’ll wait for a new release, for now i’ll go with using the “Release” biuld for my plug, hope i wont crash anything.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 17, 2007, 11:49am UTC](https://forum.juce.com/t/version-1-38/1023/37 "2007-01-17T11:49:35Z")

</div>

(This isn’t actually macos - it’s the c library that’s the trouble)

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 10:00am UTC](https://forum.juce.com/t/version-1-38/1023/38 "2017-05-12T10:00:04Z")

</div>

Closed on May 12, 2017, 10:00am UTC



[Previous page](https://forum.juce.com/t/version-1-38/1023.md?page=1)
