StanfordPL / x64asm

x86-64 assembler library
Apache License 2.0
465 stars 60 forks source link

Examples need updates? #227

Open osa1 opened 8 years ago

osa1 commented 8 years ago

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 commented 8 years ago

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