Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Building Code::Blocks on Win 64

<< < (9/15) > >>

childinsilence:
I've tried to build C::B rev. 6661 on Win7 x64 wit TDM64-GCC 4.5.1.
All seems fine till the make reaches SqPlus. Then I get:

--- Code: ---g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE  -fno-inline  -std=c++0x -Wall   -I.\include -ID:\Daten\Stefan\Tools\WxWidgets\wxWidgets-2.9.1\contrib\include -I.\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\scripting\include -Iinclude\scripting\sqplus  -c D:\Daten\Stefan\Entwicklung\codeblocks\trunk\src\sdk\scripting\sqplus\SquirrelBindingsUtilsWin32.cpp -o .objs\sdk\scripting\sqplus\SquirrelBindingsUtilsWin32.o
In file included from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/windows.h:62:0,
                 from include\scripting\sqplus/SquirrelBindingsUtilsWin32.h:7,
                 from D:\Daten\Stefan\Entwicklung\codeblocks\trunk\src\sdk\scripting\sqplus\SquirrelBindingsUtilsWin32.cpp:5:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/windef.h:105:13: error: conflicting declaration 'typedef int BOOL'
include\scripting\sqplus/sqplus.h:54:21: error: 'BOOL' has a previous declaration as 'typedef SQInteger BOOL'
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/include/windef.h:132:13: error: conflicting declaration 'typedef int INT'
include\scripting\sqplus/sqplus.h:55:21: error: 'INT' has a previous declaration as 'typedef SQInteger INT'
--- End code ---

I think there is a problem with the inclusion order and the different sizes. SQInteger is typedefed to __int64 not to int.

daniloz:
Just a ping...

Any news on building C::B on Win 64. I've just tried on win7 with wxWidgets 2.9.11 and I'm still hitting the SQPlus redefinition of BOOL and INT. Even after applying the patch I've found in "some post I don't remember anymore" (I'll try to provide a link here), I hit an error when compiling cbauibook.cpp, related to ProcessEvent... sorry, I don't have the log and no access to my win7 computer right now... But wanted to see if anyone has done it, anyway...

Any help is much appreciated.

Thx,
daniloz

Biplab:
First of all, sorry for the delay in updating this thread and keeping you all up to date.

I have updated my patches to trunk and posted a new build at the following link. Patch required to build is added to the binary package and as well as also attached to this post. Grab it from the following link and let me know how it works.


--- Quote ---http://www.box.com/s/dyh4yenh2byrgig4dpuv
--- End quote ---

Important notes:
1) CC freezes while parsing. So disable it until this is fixed.
2) Some quick testing shows "Crash-on-exit" problem is gone (with CC disabled).
3) Doesn't include any Contrib plugins.
4) Crash handler exchndl.dll is omitted as the code is broken under Win 64 bit. So if you are interested in debugging it, let me know - I'll post a build with Debugging information.

MortenMacFly:

--- Quote from: Biplab on January 31, 2012, 05:40:08 am ---
--- Quote ---http://www.box.com/s/dyh4yenh2byrgig4dpuv
--- End quote ---

--- End quote ---
VERY NICE, Biplab!

I've done a lot of work in that direction, too. I'll try to integrate both of our works.


--- Quote from: Biplab on January 31, 2012, 05:40:08 am ---1) CC freezes while parsing. So disable it until this is fixed.
2) Some quick testing shows "Crash-on-exit" problem is gone (with CC disabled).
3) Doesn't include any Contrib plugins.
4) Crash handler exchndl.dll is omitted as the code is broken under Win 64 bit. So if you are interested in debugging it, let me know - I'll post a build with Debugging information.

--- End quote ---
Concerning 1.): I guess I've fixed this. Because it does not happen on my machine anymore.
Concerning 2.): Good to know - was it related to the Pushing 7 Popping of the event handlers, too?
Concerning 3.): I have *some* working already. But it's a pain to need another project file all the time (at least for me).
Concerning 4.): I did some work in that direction, that it will at least compile, but still not work., :-(

BTW: Did you try on Linux, too?

Biplab:

--- Quote from: MortenMacFly on January 31, 2012, 07:15:44 am ---I've done a lot of work in that direction, too. I'll try to integrate both of our works.

--- End quote ---

Good to know that. You can send me patches and I'll incorporate them & test.


--- Quote from: MortenMacFly on January 31, 2012, 07:15:44 am ---Concerning 1.): I guess I've fixed this. Because it does not happen on my machine anymore.
Concerning 2.): Good to know - was it related to the Pushing 7 Popping of the event handlers, too?
Concerning 3.): I have *some* working already. But it's a pain to need another project file all the time (at least for me).
Concerning 4.): I did some work in that direction, that it will at least compile, but still not work., :-(

BTW: Did you try on Linux, too?

--- End quote ---
1) That's good news. Send / commit a patch.
2) Yes. It was related to that.
3) I'll compile them and fix if patch is necessary.
4) Awaiting your patch.

And, I didn't try it on Linux. :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version