I'm trying to compile this source code http://nrg.cs.ucl.ac.uk/mptcp/mptcp_userland_0.1.tar.gz and I'm getting unknown type name 'u8' among other types (u_int, u_char, u_long....etc)

I have Ubuntu 12.04 LTS and gcc version 4.6.3

How to solve this issue?

Thank you

  • Have you installed the -dev and -dbg packages? – Kaz Wolfe Mar 20 '14 at 6:26
  • What are the exact name of these packages? – loo3y35 Mar 20 '14 at 6:33
  • I am not too sure, I assume the generic dev and dbg packages for gcc. – Kaz Wolfe Mar 21 '14 at 2:17

I solved the issue by using typedef http://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html#The-typedef-Statement

I added this typedef unsigned u8; to the beginning of the files I had errors in

You can find the current known integer data types here http://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html#Integer-Types

  • This is a seriously dangerous advice and will likely cause all kinds of disaster. u8 is supposed to be defined as a 8-bit unsigned integer. "unsigned" is just an unsigned int, which will likely be 32 or 64 bits depending on your architecture. – Morgan Nov 19 '19 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.