0

I'm using NetBeans and I use Cygwin as the compiler but I'm constantly getting an error, running a simple code like:

#include <stdio.h>

int main() {
    printf('a');
    return 0;
}

I get this error :

2 [main] make 8400 child_info_fork::abort: C:\cygwin\bin\cygiconv-2.dll: Loaded to different address: parent(0x610000) != child(0x2F0000)
make: nbproject/Makefile-variables.mk:33: fork: Resource temporarily unavailable
2 [main] make 9712 child_info_fork::abort: C:\cygwin\bin\cygiconv-2.dll: Loaded to different address: parent(0x610000) != child(0x430000)
make: vfork: Resource temporarily unavailable

BUILD FAILED (exit value 2, total time: 139ms)
madth3
  • 7,275
  • 12
  • 50
  • 74
Shahb
  • 47
  • 1
  • 6
  • 3
    That's not how you use `printf`. http://en.cppreference.com/w/cpp/io/c/fprintf – chris Mar 13 '13 at 01:21
  • Thanks chris.. But I think thats not because of Printf.. since I get a same error on a code like this : #include int main() { int a =2 ; return 0; } – Shahb Mar 13 '13 at 01:43
  • A quick search found this: http://cygwin.wikia.com/wiki/Rebaseall, from [a cygwin question](http://stackoverflow.com/q/9300722/422353) – madth3 Mar 13 '13 at 01:52
  • Thanks madth .. that actually helped me... The problem was because of the antivirus I recently installed.. thanks again ;) – Shahb Mar 13 '13 at 02:01
  • did you try to clean & build? reinstallation of cygwin might help: not for everyone it works but for some works – 4pie0 Mar 13 '13 at 01:55

0 Answers0