Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: MP2E on January 06, 2008, 11:41:54 pm

Title: Error Compiling Code::Blocks SVN under Windows
Post by: MP2E on January 06, 2008, 11:41:54 pm
I have followed everything in the wiki and I have the latest version of wxMSW Installed however Code::Blocks fails to compile at wxScintilla. Here is the error:
Quote
-------------- Build: scintilla in Code::Blocks ---------------

Linking dynamic library: devel\wxscintilla.dll
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw28u
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
1 errors, 0 warnings


I'm assuming that this is something to do with wxMSW 2.8.7. I have compiled as said and entered it in to the Global Variables.
Title: Re: Error Compiling Code::Blocks SVN under Windows
Post by: ivan_ijh on January 07, 2008, 04:35:15 am
I have followed everything in the wiki and I have the latest version of wxMSW Installed however Code::Blocks fails to compile at wxScintilla. Here is the error:
Quote
-------------- Build: scintilla in Code::Blocks ---------------

Linking dynamic library: devel\wxscintilla.dll
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw28u
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
1 errors, 0 warnings


I'm assuming that this is something to do with wxMSW 2.8.7. I have compiled as said and entered it in to the Global Variables.


Well, i've just correct this on my C::B project. The reason is that linker cannot find library "wxmsw29u" ( or "libwxbase28.a" ). And my problem was in global variable "wx" (You can find it in   [Main Menu] /Settings/Global Variables. Lib directory must be exactly "wxdirectory/lib" (for example  mine is "D:\cvs_projects\codeblocks\wxWidgets2.8\lib". DO NOT USE  "wxdirectory/lib/gcc_lib", because in build options (linker search path) of the project this directory is extended with option "$(#WX.lib)\gcc_lib$(WX_CFG)"
Title: Re: Error Compiling Code::Blocks SVN under Windows
Post by: stahta01 on January 07, 2008, 04:48:32 am
I'm assuming that this is something to do with wxMSW 2.8.7. I have compiled as said and entered it in to the Global Variables.

What is the value you entered in for wx as the Global Variable.

Mine is F:\SourceCode\Libraries\wxWidgets\wxMSW-2.8.7
This folder contains an sub-directory called lib and under that is a folder called gcc_dll.
Inside the folder gcc_dll is a file named libwxmsw28u.a and an DLL to go with it.

Do you see the file named libwxmsw28u.a?

Note, please use the correct forum for future questions, These forums are for people developing Code::Blocks NOT people using Code::Blocks to develop other software.
For Code::Blocks installing issues I suggest the normal "Help" forum
http://forums.codeblocks.org/index.php/board,1.0.html


Tim S
Title: Re: Error Compiling Code::Blocks SVN under Windows
Post by: ivan_ijh on January 07, 2008, 05:17:36 am
Note, please use the correct forum for future questions, These forums are for people developing Code::Blocks NOT people using Code::Blocks to develop other software.
For Code::Blocks installing issues I suggest the normal "Help" forum
http://forums.codeblocks.org/index.php/board,1.0.html
Tim S

Excuse me if I'm wrong (I'm also new here), but as I see the problem is about building C::B using C::B for this (see "[cvsdirectory]\trunk\src\CodeBlocks.cbp"). I have a similar question posted here, but with linker problem.  :oops:
Title: Re: Error Compiling Code::Blocks SVN under Windows
Post by: MP2E on January 07, 2008, 05:18:29 am
My Base path is: C:\wxMSW-2.8.7
Lib path is: C:\wxMSW-2.8.7\lib
Include path is: C:\wxMSW-2.8.7\include
And yes, libwxmsw28u.a exists.

I don't know what else could be wrong >_<
Title: Re: Error Compiling Code::Blocks SVN under Windows
Post by: ivan_ijh on January 07, 2008, 05:31:24 am
My Base path is: C:\wxMSW-2.8.7
Lib path is: C:\wxMSW-2.8.7\lib
Include path is: C:\wxMSW-2.8.7\include
And yes, libwxmsw28u.a exists.

Try to use whole path to libwxmsw28u.a in Project Bulid Options\Linker Settings tab\Link libraries list as :
C:\wxMSW-2.8.7\lib\gcc_lib\libwxmsw28u.a
instead of "wxmsw28$(WX_SUFFIX)"

And if its all ok then the problem is with "wx" global variable. But if you have the same problem again i cannot help. Good night now !
Title: Re: Error Compiling Code::Blocks SVN under Windows
Post by: MP2E on January 07, 2008, 05:40:39 am
Wait a minute, actually that file doesn't exist! What can I do to get it?(sorry about misinforming you earlier, coulda sworn i saw it)
Title: Re: Error Compiling Code::Blocks SVN under Windows
Post by: stahta01 on January 07, 2008, 08:00:04 am
Wait a minute, actually that file doesn't exist! What can I do to get it?(sorry about misinforming you earlier, coulda sworn i saw it)

You need to compile wxWidgets to create the file named libwxmsw28u.a

See WiKi http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.6_to_develop_Code::Blocks_(MSW)


Tim S
Title: Re: Error Compiling Code::Blocks SVN under Windows
Post by: Jenna on January 07, 2008, 08:06:02 am
Wait a minute, actually that file doesn't exist! What can I do to get it?(sorry about misinforming you earlier, coulda sworn i saw it)

You need to compile wxWidgets to create the file named libwxmsw28u.a

See WiKi http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.6_to_develop_Code::Blocks_(MSW)


Tim S
The last ")" is missing from link.
Correct link is : http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.6_to_develop_Code::Blocks_(MSW) (http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.6_to_develop_Code::Blocks_(MSW)).
Title: Re: Error Compiling Code::Blocks SVN under Windows
Post by: stahta01 on January 07, 2008, 06:41:54 pm
Jens:

Thank you, for the correction of the link.

Tim S