So I have this bit of C++ code to connect to a database server
#include <cstdlib>
#include<stdio.h>
#include "C:\file\path\server.h"
int main(int argc, char** argv) {
printf("starting");
short stat;
if (login("ServerName", "admin", "secret") == "OK"){
printf("Good");
}
else printf("Bad");
printf("done");
return 0;
}
when I try to compile it I get this error: relocation truncated to fit: R_X86_64_PC32 against undefined symbol `login' Any ideas?