Author Topic: The 12 March 2007 build will NOT be out.  (Read 14512 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.