Author Topic: Solution: Cpp-files are empty  (Read 4803 times)

Dee

  • Guest
Solution: Cpp-files are empty
« on: February 17, 2006, 08:22:21 am »
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.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Solution: Cpp-files are empty
« Reply #1 on: February 17, 2006, 08:36:11 am »
You probably didn't know about "Edit->File encoding"?
Be patient!
This bug will be fixed soon...

Dee

  • Guest
Re: Solution: Cpp-files are empty
« Reply #2 on: February 17, 2006, 10:12:45 pm »
Probably not. ;) But I have no "Edit -> File encoding" (see attachment).

Greetings, Dee

[attachment deleted by admin]

sethjackson

  • Guest
Re: Solution: Cpp-files are empty
« Reply #3 on: February 17, 2006, 10:22:49 pm »
What version of C::B do you have? You need a recent nightly build, or a build from SVN HEAD for this feature. :)

Dee

  • Guest
Re: Solution: Cpp-files are empty
« Reply #4 on: February 17, 2006, 10:47:31 pm »
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
« Last Edit: February 17, 2006, 10:49:58 pm by Dee »

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Solution: Cpp-files are empty
« Reply #5 on: February 17, 2006, 10:57:50 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.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Dee

  • Guest
Re: Solution: Cpp-files are empty
« Reply #6 on: February 18, 2006, 08:30:42 am »
Quote
Linux 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

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Solution: Cpp-files are empty
« Reply #7 on: February 18, 2006, 06:37:17 pm »
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