Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: MC on January 12, 2014, 08:14:55 pm
-
Does anybody have an idea whats wrong with this project? Code::Blocks crashes when opening it :'(:
I use CodeBloxx Version 13.12 Rev 9501. I use german Win7 on a HP notebook with 2.5GHz and 6 G Ram.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="CCharToXDigit" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/CCharToXDigit" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/CCharToXDigit" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
<Target title="cc65_Debug">
<Option output="cc65bin/debug/CCharToXDigit.prg" prefix_auto="0" extension_auto="0" />
<Option working_dir="" />
<Option object_output=".cc65objs" />
<Option type="5" />
<Option compiler="cc65_" />
</Target>
<Target title="cc65_Release">
<Option output="cc65bin/release/CCharToXDigit.prg" prefix_auto="0" extension_auto="0" />
<Option working_dir="" />
<Option object_output=".cc65objs" />
<Option type="5" />
<Option compiler="cc65_" />
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
<Unit filename="CCharToXDigit.c">
<Option compilerVar="CC" />
<Option target="Debug" />
<Option target="Release" />
</Unit>
<Unit filename="CCharToXDigit.h" />
<Unit filename="CCharToXDigit.lst">
<Option target="Debug" />
<Option target="Release" />
</Unit>
<Unit filename="Test_CCharToXDigit.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="Test_CCharToXDigit.lst">
<Option target="Debug" />
<Option target="Release" />
</Unit>
<Unit filename="cc65_CCharToXDigit.c">
<Option compilerVar="CC" />
<Option target="cc65_Debug" />
<Option target="cc65_Release" />
</Unit>
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>
-
The error in the xml file was that it specified _cc65 as compiler instead of cc65 in line 35 and 42.
Fixing this, codebloxx could open that project file again.
As codebloxx should not crash if a wrong (or nonexisting) compiler is given in the project file i consider this
a BUG which should be fixed.
Imagine if for some reason the compiler is accidently given as _gcc instead of gcc (To use a known example instead of the
cc65 compiler i added by myself). Would be very diffucult to track down!
Please fix!
-
Doesn't crash here...
Probably you're using an executable coming from a wrong project, because you're mentioning codebloxx instead of the proper Code::Blocks, but who knows... ::) :P
-
I use Code::Blocks. I was just lazy about typing.
It is not that Code::Blocks crashes when i start the compiled program, but when the project xml file is loaded into
the editor. Additionally it works again with the same Code::Blocks, when the underscore was removed.
So i still think it is a bug in Code::Blocks during the process of parsing of the XML file.
-
Please describe the exact steps to reproduce the problem.
As far as I know no one loads the file in the editor, but in the project manager.