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

Tutorial no longer works — API is outdated #23

Closed
wangray opened this issue May 7, 2017 · 2 comments
Closed

Tutorial no longer works — API is outdated #23

wangray opened this issue May 7, 2017 · 2 comments

Comments

@wangray
Copy link

wangray commented May 7, 2017

The first error is that the Assembler class has been moved to x64::Assembler.

Now, I get errors like

error: no method named `global_label` found for type `dynasmrt::x64::Assembler` in the current scope
error: no method named `offset` found for type `dynasmrt::x64::Assembler` in the current scope

when trying to run the example code.

@CensoredUsername
Copy link
Owner

Hmm, seems like the actual stand-alone examples were updated, but not the examples in the docs. Unfortunately we only run tests on the stand-alone examples.

As for the errors you mentioned, those would be caused by a missing use dynasmrt::{DynasmApi, DynasmLabelApi}; statement at the start. However on a glance this seemed to be correct for all examples. Could you tell me which example resulted in those errors for you?

@wangray
Copy link
Author

wangray commented May 7, 2017

Thanks, I was missing the use dynasmrt::{DynasmApi, DynasmLabelApi}; in that part of my code. It's all working now.

@wangray wangray closed this as completed May 7, 2017
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

2 participants