NO

Author Topic: error when running c code on Windows  (Read 3144 times)

jejeking

  • Guest
error when running c code on Windows
« 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!

Offline DMac

  • Member
  • *
  • Posts: 272
Re: error when running c code on Windows
« Reply #1 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."

No one cares how much you know,
until they know how much you care.

jejeking

  • Guest
Re: error when running c code on Windows
« Reply #2 on: September 22, 2010, 07:45:35 PM »
Thanks! That did it.