Problem with codeblocks

I created a program and it won't work a stand-alone executable. It says it's missing a 'cygwin.dll' file. I want it so this program will run from a disc, is that even possible?
hmm..You could try adding the the dll(which can be found in your compiler's folder or just download it) to your program directory. You can also link them statically during compilation. I found something similar(for mingw) here: http://www.cplusplus.com/forum/beginner/35456/
But that defeats the purpose of having a stand alone executable doesnt it? I don't want to have to put that in the folder with it..
Then try the other option I gave: linking them statically. But you should know that this can make your executable larger.
That's okay I'm not worried about that. I see that post tells what to do, but not really how to set it up. I'm very lost on how to link statically?
I'm not pretty sure if your compiler(cygwin) supports static compilation since i'm using mingw(gcc). But you can try checking out here https://www.daniweb.com/software-development/cpp/threads/358681/codeblocks-c-static-linking
Topic archived. No new replies allowed.