Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keeps saying uint16 is not declared [closed]

Tags:

c++

c

Ok I know this has got to be a simple question but for the life of me I can't figure out why I keep getting this message I am using eclipse V3.8 on ubuntu linux V13.04

Compile says "unit16 has not been declared

#ifndef ENIGMA_2C_H_
#define ENIGMA_2C_H_

class Enigma2C {

public:
    static bool checkOptionKey(uint16 option, char *key);
    static bool encrypt (char *inString, char *outString);
    static bool decrypt (char *inString, char *outString);
};

#endif
like image 531
Kris Armstrong Avatar asked Dec 11 '22 11:12

Kris Armstrong


1 Answers

Use uint16_t in cstdint, which is introduced in C++11. Or define your own type.

For C, it's in stdint.h, which is introduced in C99.

like image 103
Yu Hao Avatar answered Dec 22 '22 19:12

Yu Hao