News:

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

Main Menu

CodeBlocks doesn't allow me to work with external files

Started by vlad.ulmeanu, February 02, 2015, 03:33:34 PM

Previous topic - Next topic

vlad.ulmeanu

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 .

scarphin

Did you try running the program from the console (shell, bash whatever) and confirm that it works when run from console?

BlueHazzard

Quote from: vlad.ulmeanu on February 02, 2015, 03:33:34 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?

vlad.ulmeanu

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++ .

BlueHazzard

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?

vlad.ulmeanu

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 . ???

BlueHazzard

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?

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]