Pelles C forum

C language => Beginner questions => Topic started by: jejeking on September 22, 2010, 05:21:38 PM

Title: error when running c code on Windows
Post by: jejeking on September 22, 2010, 05:21:38 PM
Hi,

I am a newbie with C and Pelles C.
I am trying to run a c script on my Windows machine with Pelles C. This script is working fine when ran on a linux box.

I get this error when I try to compile it on pelles C on Windows:
<unistd.h> require the -Go compiler option

Does the "Go" compiler not come bundled with pelles C or if it does where should I activate it?
If it does not come bundled with it, is it something I need to download and add to some Pelles C directory?

Thanks!
Title: Re: error when running c code on Windows
Post by: DMac on September 22, 2010, 06:00:08 PM
-Go is a compiler switch.

In the Pelles C IDE.  Project>ProjectOptions>Compiler Tab> and check the option "Define compatibility names."

Title: Re: error when running c code on Windows
Post by: jejeking on September 22, 2010, 07:45:35 PM
Thanks! That did it.