Skip to content

Creating shared object with BASE in EXPORTS on Windows

1 message · Kyle Baron

#
It looks like `BASE` is a keyword in the .def file specification.

https://github.com/bminor/binutils-gdb/blob/master/ld/deffilep.y#L241-L268

For several keywords, I could replicate the syntax error from ld.exe
when the keyword was listed in EXPORTS in the .def file.

As far as I can tell, the dllname-win.def file is a must in this  case
making sure none of the keywords get exported there.


Also:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Using_ld_the_GNU_Linker/win32.html