NO

Author Topic: POLINK: fatal error: 3 unresolved external(s)  (Read 3776 times)

vjmiyagi

  • Guest
POLINK: fatal error: 3 unresolved external(s)
« on: December 16, 2012, 01:49:23 AM »
I have yet to get anything to run, including the sample provided.  I turned on verbose and instead of getting the usual POLINK: fatal error: access denied, I got instead:

Building hello.OBJ.
C:\PellesC\Projects\Samples\Standard C\Hello\hello.c(17): warning #2216: Return value from function is never used.
Building hello.EXE.
POLINK: error: Unresolved external symbol '__penter'.
POLINK: error: Unresolved external symbol '_printf'.
POLINK: error: Unresolved external symbol '__mainCRTStartup'.
POLINK: fatal error: 3 unresolved external(s).
*** Error code: 1 ***
Done.


This is when I attempt to run the sample program that simply does Hello World.

Any help would be greatly appreciated.

I strongly suspect it is my antivirus, Bitdefender and have added POLINK.exe to excluded processes, but that didn't help.  I have excluded the folder also, without any joy.

CommonTater

  • Guest
Re: POLINK: fatal error: 3 unresolved external(s)
« Reply #1 on: December 16, 2012, 02:20:35 AM »
The "fatal error: access denied" usually means your program is already running.  You have to close it before trying again.
 
The errors you listed would seem to indicate that you should spend some time in the help file reading about project options...  It's not a "turn everything on" world in Pelles C.

To make a project use the File -> New -> Project .... then select the type of project you want and set up your file names and folders as you want them.

Attached below is a 32 bit console project "hello world"... load the project and look at the linker and compiler settings...
 
General rule: Never turn anything on that doesn't need to be on...
 
« Last Edit: December 16, 2012, 02:27:33 AM by CommonTater »

vjmiyagi

  • Guest
Re: POLINK: fatal error: 3 unresolved external(s)
« Reply #2 on: December 16, 2012, 02:33:26 AM »
hmmm when I tried to open the project I got "Bad version on 'test.ppj'.

CommonTater

  • Guest
Re: POLINK: fatal error: 3 unresolved external(s)
« Reply #3 on: December 16, 2012, 03:59:51 AM »
hmmm when I tried to open the project I got "Bad version on 'test.ppj'.

What version of Pelles C do you have? 
Look in Help -> About

(Older versions cannot open projects from newer versions...)

If it's not version 7r ... you can get a copy ...  HERE   
« Last Edit: December 16, 2012, 04:06:44 AM by CommonTater »

vjmiyagi

  • Guest
Re: POLINK: fatal error: 3 unresolved external(s)
« Reply #4 on: December 16, 2012, 05:19:11 AM »
Thank you for providing the link for the latest version.  Somehow, I managed to stumble upon 4. something or other today.

Hello World runs like a Swiss watch!  Thanks  :)

CommonTater

  • Guest
Re: POLINK: fatal error: 3 unresolved external(s)
« Reply #5 on: December 16, 2012, 10:12:23 PM »
Thank you for providing the link for the latest version.  Somehow, I managed to stumble upon 4. something or other today.

Hello World runs like a Swiss watch!  Thanks  :)

Excellent ... now give THIS a read for some guidance on getting started in C.
 
Version 4 ??  Wow, that's like 8 or 9 years old...