News:

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

Main Menu

Solution: Cpp-files are empty

Started by Dee, February 17, 2006, 08:22:21 AM

Previous topic - Next topic

Dee

Hello,

I got it working to use wxWidgets 2.4 but then I had another error. Some of my (under Windows created) cpp-files were empty or better they were shown as empty if I opened them in C::B. I could open them with gedit or something else and everything were fine.

I thought it may have something to do with this but did not understand how the problem was solved there.

So, I have the following simple idea: I just opened these files in gedit, choose "File -> Save as" and save them as UTF-8 instead of ISO-8859-15. After this the files are not empty anymore in C::B.

I don't know if this will help anyone but in case some newbie like me has the same problems, here's the solution. :)

Greetings, Dee

PS: Using Unbuntu 5.10 and latest C::B-deb for this.

mandrav

You probably didn't know about "Edit->File encoding"?
Be patient!
This bug will be fixed soon...

Dee

Probably not. ;) But I have no "Edit -> File encoding" (see attachment).

Greetings, Dee

[attachment deleted by admin]

sethjackson

What version of C::B do you have? You need a recent nightly build, or a build from SVN HEAD for this feature. :)

Dee

#4
I use the one from the download page for Linux or better Ubuntu Breezer. I never use unstable software!

BTW: I haven't found a nightly build for Linux... I only found "Linux : not supported yet" in every thread.

So my solution from the first posting is the best I can find... :)

Greetings, Dee

TDragon

Quote from: Dee on February 17, 2006, 10:47:31 PM
I never use unstable software!
As confusing as it may seem, Code::Blocks releases and builds mostly don't hold to the norm of stable and unstable. In fact, the files available on the download page have far more bugs than the current nightly build I'm running.

Linux users must build from SVN sources, but it's a simple matter of running boostrap, configure, and make, in sequence.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Dee

QuoteLinux users must build from SVN sources, but it's a simple matter of running boostrap, configure, and make, in sequence.
Yes I know, but I may be the first Linux User wo do not "make" programs. ;) Either they are available through synaptic or as deb-File. Otherwise I won't use them...

Unfortunately Code::Blocks or better Linux has several problems with my code, so that I could compile it but while executing it shows a very strange behaviour. Couldn't find the error yet... At least I don't think it has something to do with C::B. :)

Greetings, Dee

Michael

Quote from: Dee on February 18, 2006, 08:30:42 AM
Either they are available through synaptic or as deb-File. Otherwise I won't use them...

This is your choice after all. Anyway, some programs you may need could be available only as sources... :)

Moreover some applications/libraries/etc. are not distributed as binary, but just as sources (e.g., GPAC).

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]