Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bah.registry] undefined reference to `bah_registry_TRegistryValue__setName' #101

Open
GWRon opened this issue Jul 22, 2023 · 1 comment

Comments

@GWRon
Copy link
Contributor

GWRon commented Jul 22, 2023

When trying to compile one of the examples in bah.registry in 32bit or 64bit you get the following error:

[100%] Linking:reg_example_01.exe
... registry.release.win32.x64.a(mbr_glue.c.release.win32.x64.o):glue.c:(.text+0x773): undefined reference to `bah_registry_TRegistryValue__setName'
... registry.release.win32.x64.a(mbr_glue.c.release.win32.x64.o):glue.c:(.text+0x77f): undefined reference to `bah_registry_TRegistryValue__setValueType'
... registry.release.win32.x64.a(mbr_glue.c.release.win32.x64.o):glue.c:(.text+0x7f3): undefined reference to `bah_registry_TRegistryValue__setLong'
...
@GWRon
Copy link
Contributor Author

GWRon commented Jul 22, 2023

The methods of TRegistryValue are now mangled into bah_registry_TRegistryValue__setName_v_TTRegistryValueS and similar.

adding {nomangle} resolves the issue but I am not sure if this is the way to go - or if you (@woollybah) preferred a different way (with the current featureset of NG).

Type TRegistryValue
...
	Function _setName(value:TRegistryValue, name:String) {nomangle}
		value.name = name
	End Function

	Function _setValueType(value:TRegistryValue, valueType:Int) {nomangle}
		value.valueType = valueType
	End Function

	Function _setInteger(value:TRegistryValue, vInteger:Int) {nomangle}
		value.vInteger = vInteger
	End Function

	Function _setLong(value:TRegistryValue, vLong:Long) {nomangle}
		value.vLong = vLong
	End Function

	Function _setString(value:TRegistryValue, vString:String) {nomangle}
		value.vString = vString
	End Function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant