Pelles C forum

C language => Beginner questions => Topic started by: aki34 on March 02, 2011, 06:14:33 AM

Title: POLINK: warning: No object files specified; libraries used.
Post by: aki34 on March 02, 2011, 06:14:33 AM
I'm getting this error when i try to build the c file:

POLINK: warning: No object files specified; libraries used.
POLINK: error: Unresolved external symbol '__mainCRTStartup'.
POLINK: fatal error: 1 unresolved external(s).
*** Error code: 1 ***


How do i fix this????

Thanks
Title: Re: POLINK: warning: No object files specified; libraries used.
Post by: Vortex on March 02, 2011, 10:09:52 PM
Hi aki34,

Did you choose the right project type? ( console or GUI ) mainCRTStartup is for console applications and WinMainCRTStartup is used for GUI applications.