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.
Could be spaces in the path. Try renaming
Pelles C Projects
Pelles_C_Projects
Should not the program have a return(0) statement after the printf()?
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