String comparison

#include <iostream>
using std::cin;
using std::cout;
using std::endl;
#include <iomanip>

#include <cstdlib>
#include <string.h>
#include <cstring>
using std::strcmp;
using std::strcpy;
using std::strtok;
#include <cmath>
//
int strcmp(int*, int*);
extern "C" int b;
extern "C" int c;

//char strtok( char* string1, char* string2);
int main(void){

int* pb=&b;
*pb= b;

int* pc=&c;
*pc=c;
int *zPtr=&b;

int *aPtr=&c;

void *sPtr;

int number;
int z[5]={1,2,3,4,5};
cout<<z+4;
int lgr;
zPtr=z;
zPtr=&z[0];
//sort array in ascending order
const char *string1="initial";
const char *string2="initial";

cin>>z[1]>>z[2];
//char strcmp();
//zPtr=strcmp(string1, string2);
//lgr=(*(int*) larger (&string1, &string2);
if (b=strcmp(pb,pc))
cout<<"The strings are equal";

//b=(strcmp((*zPtr+3), *(zPtr+4))==0)
// cout<<"The strings are equal";
//else
// cout<<"The strings are unequal";
return 0;
}
//{
//char strcmp( char* string1, char *string2){
//
// //cout<< static_cast*(<char*0>(string1));
//
//std::cout<<strcmp(string1, string2)==0;
// cout<<"The strings are equal";
// return 0;
//}
How do I resolve the unresolved external symbol linker errors:

1>prob8-6.obj : error LNK2019: unresolved external symbol "int __cdecl strcmp(int *,int *)" (?strcmp@@YAHPAH0@Z) referenced in function _main
1>prob8-6.obj : error LNK2001: unresolved external symbol _c
1>prob8-6.obj : error LNK2001: unresolved external symbol _b

The "strcmp" function is for comparing char array's, not integers. If you're trying to see if two numbers are the same then why not use the '==' operator?
Topic archived. No new replies allowed.