Author Topic: The 12 March 2007 build will NOT be out.  (Read 14514 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
The 12 March 2007 build will NOT be out.
« on: March 12, 2007, 08:34:03 pm »
little issue on linux

bloodmagic

  • Guest
Re: The 12 March 2007 build will NOT be out.
« Reply #1 on: March 12, 2007, 08:51:32 pm »
恩 ,期待正式版! :D

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 12 March 2007 build will NOT be out.
« Reply #2 on: March 13, 2007, 03:04:08 am »
Please post in English only. We don't understand what you are writing.
Be a part of the solution, not a part of the problem.

Offline Grom

  • Almost regular
  • **
  • Posts: 206
Re: The 12 March 2007 build will NOT be out.
« Reply #3 on: March 13, 2007, 05:28:09 am »
If western wold will continue doing all stupid stuff that they are doing.... Everybody will start understand what he is meaning. :P :twisted:
gcc+winXP+suse.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 12 March 2007 build will NOT be out.
« Reply #4 on: March 13, 2007, 05:43:12 am »
It's not a matter of East or West. It's a matter of common language. Common language of this forum is English. So it's a request to all of you to make your replies in English. :)

FYI, my country has 20+ different languages (major) and if you count lesser used ones it can reach upto 50. So if I start using them one by one it would be very difficult for others to understand. These can't be translated through online translators. ;)
Be a part of the solution, not a part of the problem.

blackcherry

  • Guest
Re: The 12 March 2007 build will NOT be out.
« Reply #5 on: March 13, 2007, 06:12:18 am »
sorry for that there's someone post in  Chinese

Although many people put emphasis on internet etiquette ,

there're always some don't listen to others

----------------------------
And by the way

I have a simple question

Can the developers of codeblock make one pack of zip file

with codeblock program and other all dll files?

It might be helpful to those who need to download all necessary dll files.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 12 March 2007 build will NOT be out.
« Reply #6 on: March 13, 2007, 07:25:20 am »
little issue on linux

The following patch would solve the problem. I've not applied it yet. I'll inform Thomas about this patch. It was his suggestion and he should check it. :)

Code
Index: include/prep.h
===================================================================
--- include/prep.h      (revision 3692)
+++ include/prep.h      (working copy)
@@ -5,7 +5,16 @@
 #include <wx/version.h>
 #endif
 
+// Undef the following constants. This seems to affect every file which uses namespace platform
+// So these two must be undef'ed first before using namespace platform in any other cpp file
+#ifdef linux
+       #undef linux
+#endif
+#ifdef unix
+       #undef unix
+#endif
 
+
 template <int major, int minor> struct wxMinimumVersion { enum { eval = (wxMAJOR_VERSION > major || (wxMAJOR_VERSION == major && wxMINOR_VERSION >= minor))}; };
 template <int major, int minor> struct wxExactVersion { enum { eval = (wxMAJOR_VERSION == major && wxMINOR_VERSION == minor)}; };
 template <bool b> struct CompileTimeAssertion{};
Index: sdk/configmanager.cpp
===================================================================
--- sdk/configmanager.cpp   (revision 3692)
+++ sdk/configmanager.cpp   (working copy)
@@ -33,6 +33,9 @@
 #include <shlobj.h>
 #endif
 
+#undef linux
+#undef unix
+
 #if defined(__APPLE__) && defined(__MACH__)
 #include <sys/param.h>
 #include <mach-o/dyld.h>

I've tested the patch and it will fix the compilation issue. :)

sorry for that there's someone post in  Chinese

Nothing to be sorry from your side. ;)

And by the way

I have a simple question

Can the developers of codeblock make one pack of zip file

with codeblock program and other all dll files?

It might be helpful to those who need to download all necessary dll files.

Well, it's a tricky question. Because plugins consist of a number of dlls. Not all of them gets an update everyday but it's tedious to find them out and pack the updated ones. :)

Regards,

Biplab
Be a part of the solution, not a part of the problem.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: The 12 March 2007 build will NOT be out.
« Reply #7 on: March 13, 2007, 07:38:06 am »
strange I already tried out the same thing yesterday, and I ran into problems.
The thing is I unconditionally undef-ed it. Which put me into troubles in configmanager.cpp.

Will try again soon.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: The 12 March 2007 build will NOT be out.
« Reply #8 on: March 13, 2007, 08:32:11 am »
tried it again, and I can say it doesn't work.
Tried it out on 2 different machines.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 12 March 2007 build will NOT be out.
« Reply #9 on: March 13, 2007, 08:37:34 am »
Did you apply the patch for configmanager.cpp? I can confirm it works. I have already compiled it. :)
Be a part of the solution, not a part of the problem.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: The 12 March 2007 build will NOT be out.
« Reply #10 on: March 13, 2007, 12:39:16 pm »
no, not the configmanager, strange it needs undef twice ..

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 12 March 2007 build will NOT be out.
« Reply #11 on: March 13, 2007, 04:09:43 pm »
no, not the configmanager, strange it needs undef twice ..

What I found is the linux and unix macros are somewhat hard-coded. So wherever you want to use another variable with same name, you have to undef them first and in each cpp file this should be done. I tried including prep.h where I made the undef but GCC refused to compile until I added them in cpp file itself. :)
Be a part of the solution, not a part of the problem.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: The 12 March 2007 build will NOT be out.
« Reply #12 on: March 13, 2007, 04:18:35 pm »
I think it's a bad idea to undefine these macros. We should just use different names. We don't know what other code might break because we re-define a previously established macro...
Be patient!
This bug will be fixed soon...

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 12 March 2007 build will NOT be out.
« Reply #13 on: March 13, 2007, 04:25:00 pm »
I think it's a bad idea to undefine these macros. We should just use different names. We don't know what other code might break because we re-define a previously established macro...

I'm not sure, but it may break some other parts. Already some other users and myself had posted alternative fixes. Now Thomas & You have to make a decision in this regard. :)
« Last Edit: March 13, 2007, 04:28:07 pm by Biplab »
Be a part of the solution, not a part of the problem.

Kalma

  • Guest
Re: The 12 March 2007 build will NOT be out.
« Reply #14 on: March 13, 2007, 07:28:20 pm »
Hello, I have litle problem :(, I could not make a new project enymore.
That means I dont see any Project template on New->Project, although
there are no other templates. So, what could be the reason for this behavior.
I'm using CB svn selfbuild rev 3687.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: The 12 March 2007 build will NOT be out.
« Reply #15 on: March 13, 2007, 08:20:02 pm »
I think it's a bad idea to undefine these macros. We should just use different names. We don't know what other code might break because we re-define a previously established macro...
The point is these are not established macros. They are just computer-generated bullshit.

The gcc documentation even states that these macros violate the ISO standard. More precisely, it says that if the non-standard macros unix and linux (or similar ones) are present in some outdated implementation, then Gcc will also define the correct, standard-compliant ones (__unix__ and __linux__).
According to ISO, you are guaranteed that any platform/compiler specific macros start with at least one underscore. At the same time, you must not use identifiers that start with underscores in your code (as these names are reserved for the compiler/platform).
Thus, there is really no legal way that namespace platform { const int linux; }; could be secretly replaced by some obnoxious macro.

However, reality looks like gcc just defines these macros anyway, which is really really bad.
So by undefining them, we're actually making things better :)

This issue, by the way, is a glancing example of why macros suck so bad, and why we should really get rid of any macros and preprocessor directives that we don't strictly need. Macros are just plain evil and stupid like a loaf of bread, you can't say otherwise...  :(
There are still a few places where we can't work around preprocessor alltogether, but I'd suggest we really , really do where we can.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: The 12 March 2007 build will NOT be out.
« Reply #16 on: March 13, 2007, 10:20:16 pm »
Hello, I have litle problem :(, I could not make a new project enymore.
That means I dont see any Project template on New->Project, although
there are no other templates. So, what could be the reason for this behavior.
I'm using CB svn selfbuild rev 3687.

Did you remember to run update.bat or ./update after re-compiling CodeBlocks?

Kalma

  • Guest
Re: The 12 March 2007 build will NOT be out.
« Reply #17 on: March 14, 2007, 06:20:21 pm »
Hello again 8), yes I did run update.bat and I also tried to reinstall nothing happened. Even if I deleted the registry keys and the configuration files in my homepath nothing happened. Idont know what else Icould do to fix this behavior. :(

bloodmagic

  • Guest
I'm sorry to post it in Chinese
« Reply #18 on: March 16, 2007, 05:41:58 am »
This time i use English .
ps:“ 期待正式版” means "longing for the solid(stable?) version.
sorry for that again :lol: