V
void_3e01
I've been trying to get a login program to work for quite some time now
but for some reason I get the same error. I have chosen a small peice
of code that only gives me One error
#include <unistd.h>
#include <stdlib.h>
#include <iostream>
char * getpass(const char *prompt);
using namespace std;
int main()
{
char *password = getpass("Password: ");
return 0;
}
and the error is:
[Linker error] undefined reference to `getpass(char const*)'
P.S. My compiler is Dev-cpp
-Thanks in advance;
but for some reason I get the same error. I have chosen a small peice
of code that only gives me One error
#include <unistd.h>
#include <stdlib.h>
#include <iostream>
char * getpass(const char *prompt);
using namespace std;
int main()
{
char *password = getpass("Password: ");
return 0;
}
and the error is:
[Linker error] undefined reference to `getpass(char const*)'
P.S. My compiler is Dev-cpp
-Thanks in advance;