Connecting Tech Pros Worldwide Help | Site Map

Polink Error...Don't know how to fix it

Newbie
 
Join Date: Mar 2008
Posts: 5
#1: Mar 17 '08
I'm having trouble figuring out to fix this POLINK error in my code. The error states "unresolved external symbol '_same'. Where is the problem exactly in my code? Everything looks fine to me...


#include <stdio.h>
int same (int a, int b, int c); //function prototype

//Program to calculate if numbers are the same
int main (void)
{
int a, b, c, s;

printf ("Enter three numbers:");
scanf ("%d,%d,%d", &a,&b,&c);

s = same (a,b,c);

etc.

If someone could let me know which line the problem is in..or if I'm missing something, that would be great.

thank you in advance
gpraghuram's Avatar
Expert
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,256
#2: Mar 17 '08

re: Polink Error...Don't know how to fix it


where is the body of the fucntion same()?
In the code you have posted there is only prototype.


Raghuram
Reply