Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: vlad.ulmeanu on February 02, 2015, 03:33:34 pm

Title: CodeBlocks doesn't allow me to work with external files
Post 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 .
Title: Re: CodeBlocks doesn't allow me to work with external files
Post by: scarphin on February 02, 2015, 03:49:04 pm
Did you try running the program from the console (shell, bash whatever) and confirm that it works when run from console?
Title: Re: CodeBlocks doesn't allow me to work with external files
Post by: BlueHazzard on February 02, 2015, 04:31:54 pm
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?
Title: Re: CodeBlocks doesn't allow me to work with external files
Post by: vlad.ulmeanu on February 02, 2015, 04:57:38 pm
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++ .
Title: Re: CodeBlocks doesn't allow me to work with external files
Post by: BlueHazzard on February 02, 2015, 05:01:58 pm
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?
Title: Re: CodeBlocks doesn't allow me to work with external files
Post by: vlad.ulmeanu on February 02, 2015, 05:27:43 pm
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 . ???
Title: Re: CodeBlocks doesn't allow me to work with external files
Post by: BlueHazzard on February 02, 2015, 05:57:14 pm
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?
Title: Re: CodeBlocks doesn't allow me to work with external files
Post by: stahta01 on February 02, 2015, 06:22:05 pm
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.