Okay... "export" is documented as a "format-specific" directive for "-f obj"... and you can give it a second parameter, as you've done. It does not appear to be documented at all as a "-f win32" directive. It is accepted in "-f win32" (I don't know what it does), but only with one parameter, apparently. Can you live with "Cumba"?
Best,
Frank
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Looking again at your test2.nasm, the section declarations look like they're for "-f obj". Can ya live with "-f obj" instead of "-f win32"? Assembles without error in "-f obj" format...
Best,
Frank
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"Okay... "export" is documented as a "format-specific" directive for "-f obj"... and you can give it a second parameter, as you've done. It does not appear to be documented at all as a "-f win32" directive"
-- My bad. I did a search for 'DLL' in the documentation and didn't realize the section I was reading about exporting was specific to the obj format. Unfortunately my linker (Visual Studio) apparently doesn't support this format, but I can just insert an EXPORTS-section in the .def file when I link it if I need a different name for the function.
"win32 doesn't support anything other than <code>export name</code>"
-- True, and as indicated by the above section this is actually also sufficient.
Thanks for feedback!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sourcecode
I accidentally hit the submit button. The error message should have been:
test2.nasm:6: error: unrecognized export qualifier `MyCumbaFunction'.
Okay... "export" is documented as a "format-specific" directive for "-f obj"... and you can give it a second parameter, as you've done. It does not appear to be documented at all as a "-f win32" directive. It is accepted in "-f win32" (I don't know what it does), but only with one parameter, apparently. Can you live with "Cumba"?
Best,
Frank
Looking again at your test2.nasm, the section declarations look like they're for "-f obj". Can ya live with "-f obj" instead of "-f win32"? Assembles without error in "-f obj" format...
Best,
Frank
win32 doesn't support anything other than
<code>export name</code>
So it should be obj format get used I think.
"Okay... "export" is documented as a "format-specific" directive for "-f obj"... and you can give it a second parameter, as you've done. It does not appear to be documented at all as a "-f win32" directive"
-- My bad. I did a search for 'DLL' in the documentation and didn't realize the section I was reading about exporting was specific to the obj format. Unfortunately my linker (Visual Studio) apparently doesn't support this format, but I can just insert an EXPORTS-section in the .def file when I link it if I need a different name for the function.
"win32 doesn't support anything other than <code>export name</code>"
-- True, and as indicated by the above section this is actually also sufficient.
Thanks for feedback!