Can compile, but cannot build

Started by JAlexander, December 20, 2015, 01:57:47 AM

Previous topic - Next topic

JAlexander

I'm new to Pelles C but have used both Code::Blocks and Visual Studio to create, compile, build and run programs.  On Pelles C, however, I can't get the simplest of programs to build.  An example of one such program is shown below:

#include <stdio.h>

int main(void)
{
   printf("Hello, World!");
}

The error I get is on the lines below this:
Building HW.exe.
*** Error: polink.exe -subsystem:console -machine:x64 -out:"C:\Users\alexa_000\Documents\Pelles C Projects\HW\HW.exe" "C:\Users\alexa_000\Documents\Pelles C Projects\HW\output\main.obj"
*** Error: The system cannot find the file specified. 
Done.

What am I doing wrong? I've searched the web, the Pelles C forum and the Pelles C web help, all to no avail.  Thanks.

jj2007

Could be spaces in the path. Try renaming
Pelles C Projects
Pelles_C_Projects

defrancis7

Should not the program have a return(0) statement after the printf()?

Bitbeisser

Quote from: defrancis7 on January 04, 2016, 05:02:11 PM
Should not the program have a return(0) statement after the printf()?
Yes, but that's not the reason for the OP's problem...

Ralf