Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: vlad.ulmeanu on February 02, 2015, 03:33:34 pm
-
Hello ,
I've installed Code::Blocks 13.12 on Ubuntu 14.04 LTS and I can run a program and print something on the console ( fprintf with stdout ).
But : when I change the parameters to print in a file , Code::Blocks shows me on the terminal :
Process returned 139 .
Segmentation fault ( Core Dumped ).
What can I do ?
Thanks ,
Vlad
P.S. : I didn't make any kind of errors regarding writing the program, that's why I asked the question on this forum .
-
Did you try running the program from the console (shell, bash whatever) and confirm that it works when run from console?
-
P.S. : I didn't make any kind of errors regarding writing the program, that's why I asked the question on this forum .
i don't think so...
[Edit:] Are you using localized strings?
-
Localized strings means a string that is defined globally or a string that is defined locally ?
Please note that I'm working in C, not C++ .
-
localized means that you are using strings with some non ASCII output (ex. unicode)
Or more simple: are you using non english character in your output?
Can you show the code that is crashing?
-
Does '@' mark as an non - english character ( in the project name ) ?
The code doesn't have ANY non - english characters .
P.S. Changing the project name successfully compiled the code and solved the problem . ???
-
I still don't get what you problem has to do with c::b... does c::b crash? does your programm works outside c::b?
-
Next time you have a problem post a rebuild log as described in this FAQ.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)
Tim S.