Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B

Error Compiling Code::Blocks SVN under Windows

(1/2) > >>

MP2E:
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
--- End quote ---


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.

ivan_ijh:

--- Quote from: 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
--- End quote ---


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.

--- End quote ---


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)"

stahta01:

--- Quote from: MP2E on January 06, 2008, 11:41:54 pm ---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.

--- End quote ---

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

ivan_ijh:

--- Quote from: stahta01 on January 07, 2008, 04:48:32 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

--- End quote ---

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:

MP2E:
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 >_<

Navigation

[0] Message Index

[#] Next page

Go to full version