User forums > Using Code::Blocks
howto setup properly C::B using wxwidgets compiled via msvs2008 x64
hcetiner:
simply I think I compiled successfully via x64 command prompt of MS Visual Studio whole libs and dlls using dsw solution in wxwidgets\build directory.
but I cannot compile a simple empty gui project set by wxwdget project wizard in CodeBlocks
it says setup.h not found.
when I add some directories in lib and include search folders it gives other errors.
but if I build wxwidgets via GCC instead of MS compiler. everything seems okay.
is GCC is a must have compiler for codeblocks ? doesn't codeblocks works with only MSVC Compiled wxwidgets ?
is there a very spesific reference page that teaches how to setup Codeblock settings to work properly with wxwidgets built via msvc2008 x64 ?
this is my a hundred attempts.and not achieved to build a simple GUI project with "hello world" window+button.
I think this thread will be unanswered and I have to try more weeks to achieve this issue properly by alone in the world.
my friends says this IDE is best for cross platform development especially for wxwidgets.
just I dont wantto return CBuilder (albeit its too good for lazies) because its Ms platform spesific.
any help really appriciated.
regards.
MortenMacFly:
--- Quote from: hcetiner on September 04, 2009, 02:10:17 am ---is GCC is a must have compiler for codeblocks ? doesn't codeblocks works with only MSVC Compiled wxwidgets ?
--- End quote ---
No. But: The wizard is GCC specific so it will create a GCC wxWidgets project, only. But the modifications are simple: Just adjust the compiler/linker path's in the project created by the wizard and adjust the naming convetion of the wx library you had created.
--- Quote from: hcetiner on September 04, 2009, 02:10:17 am ---just I dont wantto return CBuilder (albeit its too good for lazies) because its Ms platform spesific.
--- End quote ---
BTW: If you abandoned CBuilder because it's MS specific... why on earth would you use a MS compiler instead?! :shock:
hcetiner:
Before choosing it as my next partner of nights.just testing the abilities of Codeblocks.
if I achive my problem I will response this thread and will do a video tutor.to make people not lost their days.
thanks
hcetiner:
now problem is
--- Quote ---l : Command line warning D9002 : ignoring unknown option '/MACHINE:AMD64'
sssApp.cpp
cl : Command line warning D9002 : ignoring unknown option '/MACHINE:AMD64'
sssMain.cpp
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation. All rights reserved.
Linking executable: bin\Release\sss.exe
wxbase28.lib(event.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
--- End quote ---
how can I do a correct setup manually of global compiler settings ?
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\x64
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64
are linker directories I modified.
but no chance.
what makes so hard to setup C::B to build a first GUI app built with msvc x64 ?
MortenMacFly:
--- Quote from: hcetiner on September 04, 2009, 03:13:57 pm ---l : Command line warning D9002 : ignoring unknown option '/MACHINE:AMD64'
--- End quote ---
How about fixing this? Remove that option and/or replace it by the correct equivalent. (Which I don't know as I am not using MSVC anymore).
If the compiler does not recognise this switch it seems to default to x86. Thus the following error.
Navigation
[0] Message Index
[#] Next page
Go to full version