Author Topic: CodeBlocks doesn't allow me to work with external files  (Read 3079 times)

Offline vlad.ulmeanu

  • Single posting newcomer
  • *
  • Posts: 3
CodeBlocks doesn't allow me to work with external files
« 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 .

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: CodeBlocks doesn't allow me to work with external files
« Reply #1 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?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: CodeBlocks doesn't allow me to work with external files
« Reply #2 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?

Offline vlad.ulmeanu

  • Single posting newcomer
  • *
  • Posts: 3
Re: CodeBlocks doesn't allow me to work with external files
« Reply #3 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++ .

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: CodeBlocks doesn't allow me to work with external files
« Reply #4 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?

Offline vlad.ulmeanu

  • Single posting newcomer
  • *
  • Posts: 3
Re: CodeBlocks doesn't allow me to work with external files
« Reply #5 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 . ???

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: CodeBlocks doesn't allow me to work with external files
« Reply #6 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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: CodeBlocks doesn't allow me to work with external files
« Reply #7 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

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org