Reputation: 22810
I'm using cygwin and when I'm compiling hello world with gcc somehow the compiler doesn't understand about using std namespaces (some of them are missing), but when I compile with g++ yes they work. But when I click on the helloworld.exe it says that cygwin1.dll is missing.
Is there anything can I do?
Upvotes: -1
Views: 2768
Reputation: 29
cygwin1.dll errors could indicate a registry problem, a virus or malware.
Don't download cygwin1.dll. It can be an inappropriate version, or just unsafe. Try to reinstall cygwin (or try mingw32).
Upvotes: -1
Reputation: 41822
"gcc" is the C compiler - and namespaces are not a part of the C language. "g++" is the C++ compiler, so it will understand namespaces.
Try the no-cygwin
option when compiling to produce executables that depend on the mingw runtime instead of the cygwin runtime (which, AFAIR, introduces licencing issues).
Upvotes: 0