Problem creating an exe from C

I've made a small application in C with Netbeans. I've ran the application in Netbeans and it created an exe. I used that exe and it worked fine on my comp but when I move it to other comp it says: "This application failed to start because cygwin1.dll was not found. Re-installing the application may fix this problem."

How can i create the exe so that it runs anywhere?

Answers


The problem is you're using Cygwin GCC to compile your code. Cygwin provides a unix-like environment

  • if you're not doing anything Unix-y you can recomplie -mno-cygwin - see Can you statically compile a cygwin application?
  • if you are using Unix calls you'll need to distribute cygwin1.dll along with your app
  • or you can recompile with a different compiler, e.g. a GCC that targets mingw32 not cygwin, or one of the free (as-in-beer) Microsoft compilers from the platform SDK or Visual Studio Express downloads.

Need Your Help

Reading data from JSON

java json

Here is my JSON response

Preserve function name uglify mangle

javascript actionscript-3 externalinterface uglifyjs

We're linking together Javascript and AS3. For this to work AS3 needs to know the function names of the Javascript methods.