<br><br><div class="gmail_quote">On Fri, Feb 8, 2013 at 4:42 AM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi,<br>
<br>
i again bitten by inability to access global symbols of VM module at run time..<br>
while on unixes, it is fairly easy to do:<br>
<br>
dlsym(&#39;foo&#39;, RTLD_DEFAULT);<br></blockquote><div> </div><div>Only because the linux VM is linked with -export-dynamic</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
on windows, compiler/linker does not exposing any symbols :(<br></blockquote><div><br></div><div>But it can be asked to.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
so what i doing now is adding shitty primitives which just return<br>
pointers to variables....<br>
this smells bad..<br>
i wonder , is this impossible in principle, or it is just a<br>
win-specific default linker/compiler setting which<br>
different from unix one?<br></blockquote><div><br></div><div>I think I&#39;m right in thinking it&#39;s the latter.  If you&#39;re using the mingw cygwin compiler then, depending on version, you either use --export-dynamic or --export-all-symbols.  See <a href="http://www.squeakvm.org/svn/squeak/branches/Cog/cygwinbuild/HowToBuild">http://www.squeakvm.org/svn/squeak/branches/Cog/cygwinbuild/HowToBuild</a>.</div>
</div><div><br></div><div>If you&#39;re using the Microsoft LINK.EXE then you might have to get the Makefile to generate a .def file containing all exports.</div><div>-- </div>best,<div>Eliot</div>