in reply to Re^5: [XS on Win32] How to have the extension's dll export its symbols.
in thread [XS on Win32] How to have the extension's dll export its symbols.
Foo.dll then exports _boot_Foo, _foo, boot_Foo and _foo ... which is exactly what I'm after.use ExtUtils::MakeMaker; my %options = %{ { 'TYPEMAPS' => [ 'C:\\perl510_M\\5.10.0\\lib\\ExtUtils\\typemap' ], 'NAME' => 'Foo', 'INC' => '-IC:/temp/Foo_build', 'FUNCLIST' => ['boot_Foo', 'foo'], 'VERSION' => '0.01' } }; WriteMakefile(%options); # Remove the Makefile dependency. Causes problems on a few systems. sub MY::makefile { '' }
whereas I think I needed to code it asint __declspec(dllexport) foo(int x, int y)
Certainly the latter rendition creates a dll that exports foo(). But it exports it as XS_Foo_foo - which is not quite what I want.__declspec(dllexport) int foo(int x, int y)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: [XS on Win32] How to have the extension's dll export its symbols.
by BrowserUk (Patriarch) on Mar 06, 2008 at 02:48 UTC |