POLINK: error: Unresolved external symbol '__penter'.

Started by IanCupp, December 13, 2013, 07:11:28 AM

Previous topic - Next topic

IanCupp

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.

jj2007

Compiles fine here (WinXP SP3). Can you post the commandlines of your projects please?

Welcome to the Forum, Ian.

IanCupp

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.

TimoVJL

#3
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
May the source be with you

Vortex

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
Code it... That's all...

TimoVJL

#5
virustotal
Same with code with msvc virustotal
May the source be with you

Vortex

I wonder when those crappy AV programs will identify a simple hello world application as malware.
Code it... That's all...

IanCupp

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.

TimoVJL

#8
Exclude that folder from scanning like here
May the source be with you