<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [PD-dev] ? about symbol
exports</title></head><body>
<blockquote type="cite" cite>hi,<br>
<blockquote type="cite" cite>OTHER_LDFLAGS= -bundle -undefined
suppress -flat_namespace*<br>
</blockquote>
</blockquote>
<blockquote type="cite" cite>basically, all symbols defined by pd are
missing,<br>
so, you can try to link with these options :<br>
<br>
-bundle -undefined error -twolevel_namespace -bundle_loader
/usr/local/pd/bin/pd<br>
<br>
where you'll have to adjust path to the pd binary.<br>
<br>
besides solving the undefined issue, this linking mode allows you to
define your own symbols,<br>
local to your library, this is better if you want to avoid
conflicts<br>
with other libs.<br>
<br>
cheers,<br>
<br>
yves/</blockquote>
<div><br></div>
<div>hi yves,</div>
<div><br></div>
<div>...ok, I tried the above, but came up with the same problems...so
then I removed my symbol.exp from the target, and then came up with
different errors:&nbsp; basically saying:</div>
<div><br></div>
<div><tt><font size="-1" color="#000000">/usr/bin/libtool: unknown
option character `b' in: -bundle<br>
Usage: /usr/bin/libtool -static [-] file [...] [-filelist
listfile[,dirname]] [-arch_only arch] [-sacLT]<br>
Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist
listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name]
[-compatibility_version #] [-current_version #] [-seg1addr 0x#]
[-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#]
[-seg_addr_table &lt;filename&gt;] [-seg_addr_table_filename
&lt;file_system_path&gt;] [-all_load] [-noall_load]</font></tt></div>
<div><br></div>
<div>...so I dropped the -bundle and -bundle_loader flags, and added
-dynamic, so that this is my LDFLAGS:</div>
<div><br></div>
<div>-undefined error -twolevel_namespace -dynamic
/Applications/pd-0.35-test23/bin/pd</div>
<div><br></div>
<div>...and then, of course, I get another new error:</div>
<div><br></div>
<div><tt><font size="-1" color="#000000">DynamicLibrary
/Users/tigital/Desktop/gem-0.87/src/PBprojects/gem_darwin/build/GEM_d<span
></span>arwin.dylib<br>
ld: /Applications/pd-0.35-test23/bin/pd is input for the dynamic link
editor, is not relocatable by the static link editor again<br>
/usr/bin/libtool: internal link edit command failed</font></tt></div>
<div><br></div>
<div>...guess I've got loads to learn about ld!&nbsp; but i am also
wondering why the &quot;-bundle&quot; and &quot;-bundle_loader&quot;
didn't work...</div>
<div><br></div>
<div>confused,</div>
<div>jamie</div>
</body>
</html>