NO

Author Topic: Can compile, but cannot build  (Read 2988 times)

JAlexander

  • Guest
Can compile, but cannot build
« on: December 20, 2015, 01:57:47 AM »
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.

Offline jj2007

  • Member
  • *
  • Posts: 536
Re: Can compile, but cannot build
« Reply #1 on: December 29, 2015, 10:23:50 PM »
Could be spaces in the path. Try renaming
Code: [Select]
Pelles C Projects
Pelles_C_Projects

defrancis7

  • Guest
Re: Can compile, but cannot build
« Reply #2 on: January 04, 2016, 05:02:11 PM »
Should not the program have a return(0) statement after the printf()?

Offline Bitbeisser

  • Global Moderator
  • Member
  • *****
  • Posts: 772
Re: Can compile, but cannot build
« Reply #3 on: January 05, 2016, 11:32:17 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