I am getting back into programming downloaded Pelles C ran a simple code and came up with a strange error and can't seem to find anywhere how to fix it does anyone know what I can do to fix it. The error is "POLINK: error: Unresolved external symbol '__penter'."
the program code is as follows.
#include<stdio.h>
int main()
{
int a;
int b;
int c;
printf("Enter value for a \n");
scanf("%d",&a);
printf("Enter value for b \n");
scanf("%d",&b);
c=a+b;
printf("The value of c is %d \n",c);
return 0;
}
I have rewritten it many times and can't seem to figure out how to fix this error any help would be appreciated.
Compiles fine here (WinXP SP3). Can you post the commandlines of your projects please?
Welcome to the Forum, Ian.
I got it to work but now its telling me access is denied. My anti virus is preventing me from running the program. It keeps identifying it as a virus.
Quote from: IanCupp on December 13, 2013, 07:11:28 AM
The error is "POLINK: error: Unresolved external symbol '__penter'."
From project take off compiler option 'Enable hook function call' -Gh
Hi IanCupp,
Are you using Avira? I got the same result. It's a false-positive :
Virus or unwanted program 'TR/Agent.41445879 [trojan]'
detected in file 'C:\Documents and Settings\Vortex\Local Settings\Temp\~0652138.TMP.
Action performed: Deny access
virustotal (https://www.virustotal.com/fi/file/b6b108c917c24b006e8bdfb83e00e1b797514dabb40a87854e7486ea5b49247c/analysis/1387016499/)
Same with code with msvc virustotal (https://www.virustotal.com/fi/file/b20e294dae434462b218d5b631f3273266b77bf594fd08af9de69467c4d20a52/analysis/1387017122/)
I wonder when those crappy AV programs will identify a simple hello world application as malware.
I am using AVG and it just won't let me run it period and when it identifies it as a virus it removes it so my projects keep getting deleted. Its quite frustrating.
Exclude that folder from scanning like here (http://www.avg.com/ww-en/faq.num-4428)