<div dir="ltr"><div>>
Adding -ld_classic as per <a href="https://stackoverflow.com/questions/77153800/xcode-15-c-compilation-errors" target="_blank">https://stackoverflow.com/questions/77153800/xcode-15-c-compilation-errors</a> got me nowhere.
<br><br></div><div>Well, to be correct, it got me past the "
ld: library 'c' not found" error, but introduced me to a "ld: framework not found Cocoa" error.</div><div><br></div><div>Cheers</div><div><br></div><div>Mike<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 7 Jan 2024 at 17:47, Michael Thompson <<a href="mailto:mike.cornflake@gmail.com">mike.cornflake@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>G'day,</div><div><br></div><div>Apologies for this. I've just bought a MacMini specifically for Laz development, and I'm stuck with an issue that seems be plaguing several other projects. The apologies are because I'm new to Mac, I might not be reporting this correctly - and the info to resolve may be on the web, our forum or this mailing list, but I'm not finding it.<br><br></div><div></div><div>if I run the build script direct, I get the following output:<br><div style="margin-left:40px">mike@Mikes-Mac-mini uBee512Launcher % ./ppaslink.sh <br>ld: warning: -multiply_defined is obsolete<br>-macosx_version_min has been renamed to -macos_version_min<br>ld: warning: ignoring duplicate libraries: '-lc'<br>ld: library 'c' not found<br>An error occurred while linking </div><br></div><div>This is exactly the build error I'm getting from within Lazarus, when I try to build my Project.<br>
<br>I've tried hand editing the .sh file and removing entries from the .res
file (so I could give you more insight into what might need changing),
but I don't know what I'm doing, and I never got a workable project. Adding -ld_classic as per <a href="https://stackoverflow.com/questions/77153800/xcode-15-c-compilation-errors" target="_blank">https://stackoverflow.com/questions/77153800/xcode-15-c-compilation-errors</a> got me nowhere.<br><br>
</div><div>Searching for these linker errors gets me a whole slew of recent posts from other projects saying that build scripts need to be updated for a new linker in XCode 15 (which is why I started poking around with the ppaslink.sh script). <br><br></div><div>I'm not sure how to install the 'c' library (on linux I'd be apt'ing round about now)<br></div><div><br></div><div>I'm using XCode Command Line Tools 15.1 / macOS 14.2. </div><div>I'm unable to revert to any XCode Command Lines from the 14.x range "your OS is too new".<br></div><div>My Mac Mini is Intel based.<br><br></div><div>I've tried this with and without XCode installed (seems to be a separate product)<br></div><div><br></div><div>I've also bumped an identical post on the forum:<br><a href="https://forum.lazarus.freepascal.org/index.php/topic,65153.msg501604/topicseen.html#new" target="_blank">https://forum.lazarus.freepascal.org/index.php/topic,65153.msg501604/topicseen.html#new</a><br><br></div><div>Help :-(<br></div><div><br></div><div>Mike<br></div><div><br><br></div></div>
</blockquote></div>