Sign in to follow this  
Followers 0
tekio

N00b compile error

7 posts in this topic


root@lightning:/usr/src/airbase-3.2/libs/libairware# make
g++ -I./include -O3 -fno-strict-aliasing -c ./src/airware-radiotap.cpp -o airware-radiotap.o
./src/airware-radiotap.cpp: In member function ‘bool radiotap_header::init(u_int8_t*)’:
./src/airware-radiotap.cpp:14: error: ‘memcpy’ was not declared in this scope
./src/airware-radiotap.cpp:20: error: ‘exit’ was not declared in this scope
./src/airware-radiotap.cpp: In member function ‘u_int32_t radiotap_header::retrieve_value(u_int32_t, u_int8_t*)’:
./src/airware-radiotap.cpp:67: error: ‘exit’ was not declared in this scope
./src/airware-radiotap.cpp:69: error: ‘memcpy’ was not declared in this scope
make: *** [airware-radiotap.o] Error 1
root@lightning:/usr/src/airbase-3.2/libs/libairware#

Either I'm missing some libraries (or something) or it's broken, help? I don't really know C++, and vaguely know what memcpy does.

0

Share this post


Link to post
Share on other sites

Either I'm missing some libraries (or something) or it's broken, help? I don't really know C++, and vaguely know what memcpy does.

You'll want to learn about includes and imports, as well as learn how to look up methods/constants/categories/etc. in documentation. For example, if you wanted to determine what the problem is in this case, you would look up which standard C headers contain "exit" and "memcpy". In this case, stdlib.h and string.h respectively. Then, you would check your code for those includes (e.g. "#include <stdlib.h>"). If the includes are there, then you can move on to looking at the code itself for formatting errors.

Again, it's important to learn to use documentation.

hope that helps.

1

Share this post


Link to post
Share on other sites

thanks for the replies:

It was configured before attempting to compile. Thanks for pointing me in the right direction Pan.

0

Share this post


Link to post
Share on other sites

Just for anyone else whom has trouble compiling airbase or jc-wepcrack..... just compile with an older kernel, backtrack 3 worked like a charm.

0

Share this post


Link to post
Share on other sites

just compile with an older kernel, backtrack 3 worked like a charm.

what do you mean by that? which kernel? 2.4? or just an older version of 2.6 ?

0

Share this post


Link to post
Share on other sites

just compile with an older kernel, backtrack 3 worked like a charm.

what do you mean by that? which kernel? 2.4? or just an older version of 2.6 ?

Whichever kernel is included with BT3. I'm pretty sure it is an older version of 2.6.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0