User forums > Help
Problem Creating Console Application (C++)
TDragon:
Have you tried running the compiled program outside of Code::Blocks (i.e. from the command line)? If it works, it may be a bug in Code::Blocks. If it doesn't work, it's a problem with MinGW or your PC.
Also, you haven't stated which version of C::B you're using.
Biplab:
Are you using latest nightly? If not please upgrade.
You can check the compiler options, linker options, link libraries, to see what are the differences.
PSU_Blue:
I think I realized what happened. I had manually added some lib files to be linked, and I had to delete one of them. I think the linker was looking for the lib file even though it wasn't needed, couldn't find it, and crashed. I deleted all my settings and reinstalled, and now it seems to work. Thank you for your help, though. I appreciate it.
TDragon:
--- Quote from: PSU_Blue on February 19, 2007, 04:48:17 pm ---I think the linker was looking for the lib file even though it wasn't needed, couldn't find it, and crashed.
--- End quote ---
You may be confusing GCC's compile-time linker, which will give you an error message in C::B's build log at compile time if it can't find a necessary file, with Windows' runtime linker, which resolves dependencies on DLLs. Code::Blocks gives you control over the compile-time linker only; the runtime linker will give you a "can't find DLL" message box if it can't find a necessary DLL when you run the program.
Whatever your problem, I'm glad it's fixed.
Navigation
[0] Message Index
[*] Previous page
Go to full version