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

Examples need updates? #227

Open
osa1 opened this issue Mar 16, 2016 · 1 comment
Open

Examples need updates? #227

osa1 opened this issue Mar 16, 2016 · 1 comment

Comments

@osa1
Copy link

osa1 commented Mar 16, 2016

I get this when I try to run the examples:

➜  examples git:(develop) make
g++ -std=c++0x -Werror -O3 abi.cc -I../ ../lib/libx64asm.a -o abi
abi.cc: In function ‘int main()’:
abi.cc:47:31: error: ‘const struct std::pair<bool, x64asm::Function>’ has no member named ‘call’
   cout << "fxn(2.2) = " << f1.call<float, float>(2.2) << endl;
                               ^
abi.cc:47:36: error: expected primary-expression before ‘float’
   cout << "fxn(2.2) = " << f1.call<float, float>(2.2) << endl;
                                    ^
abi.cc:47:36: error: expected ‘;’ before ‘float’
abi.cc:52:29: error: ‘const struct std::pair<bool, x64asm::Function>’ has no member named ‘call’
   cout << "fxn(2) = " << f1.call<int, int>(2) << endl;
                             ^
abi.cc:52:34: error: expected primary-expression before ‘int’
   cout << "fxn(2) = " << f1.call<int, int>(2) << endl;
                                  ^
abi.cc:52:34: error: expected ‘;’ before ‘int’
Makefile:8: recipe for target 'abi' failed
make: *** [abi] Error 1
@bchurchill
Copy link
Member

Confirmed. We haven't looked at these examples in a really long time.

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