News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Runtime Error! when attempting to use newly installed compiler

Started by cktdesigner, January 08, 2009, 07:52:56 PM

Previous topic - Next topic

cktdesigner

I am trying to use C::B to write code for an embedded project.  I have multiple targets: One is a local test environment that uses the Cygwin GCC compiler.   This works fine.

The HW embedded target is a MIPS varient that I have a GCC generated tool-chain for.   This tool-chain works fine when used in a standalone (command line) environment.

I have tried to add a target that uses the MIPS GCC compiler from within C::B.  I did this by:
  1. Setting up the compiler path, executable names, and includes, etc. from the Settings->Compiler...  setup
  2. Selecting this compiler for the HW target

To test I select the HW build target, select a single source file and request that the file be built.

C::B Pops up a "Microsoft Visual C++ Runtime Library" error box indicating:

"Runtime Error!"

"Program: C:\Program Files\CodeBlocks\codeblocks.exe"

"This application has requested the Runtime to terminate it in an unusal way."
"Please contact the application's support team for more information"


Did I miss something in the specification of the target compiler?

Thanks...


ollydbg

In my mind, Code::blocks doesn't need any thing from "visual C++ runtime library". So, I guess that you compiler or other command tool chain need Visual c++ libraries. :D.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Jenna

Quote from: ollydbg on January 12, 2009, 02:51:37 PM
In my mind, Code::blocks doesn't need any thing from "visual C++ runtime library". So, I guess that you compiler or other command tool chain need Visual c++ libraries. :D.

That's not 100% correct, C::B needs MinGW-dll(s), and MinGW uses MSVCRT.dll and there can be the problem.

Mabe you find a solution in this thread: http://forums.next.codeblocks.org/index.php/topic,7691.0.html