User forums > Help
CodeBlocks_wx29.cbp linkage issue?
stahta01:
--- Quote from: stefanos_ on May 31, 2012, 11:45:00 am ---In
--- Code: ---C:\MinGW\__installer\downloaded\
--- End code ---
this file libintl-0.17-1-mingw32-dll-8.tar.lzma is found and in
--- Code: ---C:\MinGW\bin\
--- End code ---
libintl-8.dll is found.
Is this the file I supposed to have, or should I find a newer version to install it?
--- End quote ---
It works for me; but, you still need to edit the project to directly link to it.
It is easier to edit the virtual "all" target.
I compile the "exchdl" target because I am using an DW2 version of MinGW GCC.
The exchdl.dll gives crash information when Code::Blocks crashes; I am hoping compiling a DW2 exchdl.dll will give better CB crash info.
But, so far my self compiled CB has refused to crash to confirm it works for me.
Patch I just used to compile wx29 version of exchdl.dll;
Note this is NOT a patch to be applied to trunk. Because it is no more correct than the original.
Note: I copied two DLLs (to the CB devel[29] folder) because I assumed it would need them when CB crashed.
The intl-8 and iconv DLLs.
Tested ONLY with the wx28 version of Code::Blocks.
Tim S.
--- Code: ---Index: src/CodeBlocks_wx29.cbp
===================================================================
--- src/CodeBlocks_wx29.cbp (revision 8021)
+++ src/CodeBlocks_wx29.cbp (working copy)
@@ -13,14 +13,16 @@
<Option object_output=".objs29" />
<Option type="3" />
<Option compiler="gcc" />
+ <Option projectLinkerOptionsRelation="1" />
<Compiler>
<Add directory="base\exchndl\include" />
</Compiler>
<Linker>
<Add library="bfd" />
<Add library="iberty" />
- <Add library="intl" />
+ <Add library="intl-8" />
<Add directory="base\exchndl\lib" />
+ <Add directory="$(TARGET_COMPILER_DIR)/bin" />
</Linker>
</Target>
<Target title="tinyXML">
--- End code ---
MortenMacFly:
--- Quote from: stefanos_ on May 31, 2012, 11:45:00 am ---Is this the file I supposed to have, or should I find a newer version to install it?
--- End quote ---
Well that's the dynamic (runtime) library, what you need it the related import library - for example:
http://gnuwin32.sourceforge.net/packages/gettext.htm
-> "Developer files".
(But that is rather old.)
stefanos_:
thanks to both of you.
@stahta01, your patch seems to do the trick; let's wait to see if it compiles successfully without further complains.
cheers
stefanos_:
even though I have successully compiled CodeBlocks_wx29.cbp, ContribPlugins.workspace fails to compile at CppCheck.cpp
--- Code: ---Compiling: CppCheckListLog.cpp
Linking dynamic library: ..\..\..\devel\share\codeblocks\plugins\CppCheck.dll
..\..\..\.objs\plugins\contrib\CppCheck\CppCheck.o: In function `ZN8CppCheck7ExecuteEv':
C:/SVN_Codes/CodeBlocks/src/plugins/contrib/CppCheck/CppCheck.cpp:223: undefined reference to `_imp___ZN11FileFilters13CPLPL_DOT_EXTE
'
collect2: ld returned 1 exit status
Process terminated with status 1 (1 minutes, 0 seconds)
1 errors, 7 warnings (1 minutes, 0 seconds)
--- End code ---
Update: Obviously it won't compile properly at some point, because certain plugin projects point to wxWidgets 2.8.x whereas they should have pointed to wxWidgets 2.9.x, so basically it means to generate a new .cbp for each contrib/<Project name> and add it to a new workspace...
I will experiment and see how it goes.
Update Part 2: Forget about it! the entire project heavily uses parameters such as "wxmsw28$(WX_SUFFIX)" and "$(#WX.lib)\gcc_dll" to make a few...I think the best thing for Code::Blocks would be to separate CodeBlocks_wx29.cbp et al in a totally new branch and experiment in there, or even fork it in GitHub and play there. I will going to do it tonight at home.
ollydbg:
I found that exchndl does not need intl library, see:
http://forums.codeblocks.org/index.php/topic,15940.msg107630.html#msg107630
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version