Expand|Select|Wrap|Line Numbers
- Undefined first referenced
- symbol in file
- die() /var/tmp//cckddR2X.o
- ld: fatal: symbol referencing errors. No output written to a.out
- collect2: ld returned 1 exit status
Expand|Select|Wrap|Line Numbers
- #include <math.h>
- #include <string>
- #include <iostream>
- #include <fstream>
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- #include "die.h"
- int die(){
- srand (time(NULL));
- int number = rand() % 6 + 1;
- return number;
- }
Expand|Select|Wrap|Line Numbers
- #ifndef __DIE_H
- #define __DIE_H
- int die();
- #endif