Pelles C forum

C language => Beginner questions => Topic started by: IanCupp on December 13, 2013, 07:11:28 AM

Title: POLINK: error: Unresolved external symbol '__penter'.
Post by: IanCupp on December 13, 2013, 07:11:28 AM
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.
Title: Re: POLINK: error: Unresolved external symbol '__penter'.
Post by: jj2007 on December 13, 2013, 07:17:21 AM
Compiles fine here (WinXP SP3). Can you post the commandlines of your projects please?

Welcome to the Forum, Ian.
Title: Re: POLINK: error: Unresolved external symbol '__penter'.
Post by: IanCupp on December 13, 2013, 07:26:03 AM
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.
Title: Re: POLINK: error: Unresolved external symbol '__penter'.
Post by: TimoVJL on December 13, 2013, 10:12:56 AM
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
Title: Re: POLINK: error: Unresolved external symbol '__penter'.
Post by: Vortex on December 14, 2013, 11:10:56 AM
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
Title: Re: POLINK: error: Unresolved external symbol '__penter'.
Post by: TimoVJL on December 14, 2013, 11:25:24 AM
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/)
Title: Re: POLINK: error: Unresolved external symbol '__penter'.
Post by: Vortex on December 14, 2013, 11:35:31 AM
I wonder when those crappy AV programs will identify a simple hello world application as malware.
Title: Re: POLINK: error: Unresolved external symbol '__penter'.
Post by: IanCupp on December 15, 2013, 08:59:06 AM
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.
Title: Re: POLINK: error: Unresolved external symbol '__penter'.
Post by: TimoVJL on December 15, 2013, 11:05:37 AM
Exclude that folder from scanning like here (http://www.avg.com/ww-en/faq.num-4428)