#include <cstdint> #define MAGIC_NUMBER_VAL 7076; #define convert_func(NUM) hexify(NUM)#define hexify(NUM) 0x ## NUM static const uint16_t val = convert_func(MAGIC_NUMBER_VAL); //0x7076static const uint16_t val_tag = MAGIC_NUMBER_VAL;
Standard input is empty
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!