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

Compiling Code Block

<< < (2/4) > >>

puneet_m:
Infact I was using 2.8.4 and the problem was because of the newer version. I tried using 2.6.4 and it got compiled. But it is giving some linking errors. I have made a monolithic library for wxWidget and am giving the correct path for it.Any ideas as to what could be the reason for this problem.

puneet_m:
It shows the following error:

cannot find -lwxxrc

Why does it show this when I have linked all the libraries.

Thanks,
Puneet

Biplab:

--- Quote from: puneet_m on August 10, 2007, 08:10:34 pm ---cannot find -lwxxrc

Why does it show this when I have linked all the libraries.

--- End quote ---

It says it can't find libwxxrc.a. It would be much easier for the people in the forum to identify your problem if you are clear with your question. Let me ask you few.

1. OS version?
2. wxWidgets version?
3. wxWidgets build?
4. Compilation method (makefile or project file)?
5. What does "all the libraries" mean??
6. Did you maintain library order??

If you say it doesn't work without providing necessary details. People, like me, will post one answer - "It works for me!".

puneet_m:
OS Version:Windows XP
wxWidgets version : wxWidget 2.6.4
Build Method:
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1  clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1

Project File, I just use CodeBlocks.cbp and fire build from Code::Blocks

Library Linked:libwxmsw26u.a (since it is monolithic)

Thanks,
Puneet

puneet_m:
And the error is

:C:/Documents and Settings/pmaheshw/Desktop/codeblocks-1.0rc2/codeblocks-1.0rc2/src/sdk/wxscintilla/src/PlatWX.cpp:(.text$_ZN12wxStringBaseC2EPKcj[wxStringBase::wxStringBase(char const*, unsigned int)]+0x23): undefined reference to `_imp___ZN12wxStringBase8InitWithEPKcjj'
.objs\sdk\wxscintilla\src\ScintillaWX.o: In function `ZNK12wxSCICallTip12AcceptsFocusEv':C:/wxWidgets-2.6.4/include/wx/window.h:(.text$_Z16wxGetTranslationPKc[wxGetTranslation(char const*)]+0x2c): undefined reference to `_imp___ZNK8wxLocale9GetStringEPKcS1_'
.objs\sdk\wxscintilla\src\wxscintilla.o: In function `ZN11wxScintilla12StyleSetSpecEiRK8wxString':C:/Documents and Settings/pmaheshw/Desktop/codeblocks-1.0rc2/codeblocks-1.0rc2/src/sdk/wxscintilla/src/wxscintilla.cpp:2552: undefined reference to `_imp___ZNK8wxString11BeforeFirstEc'
:C:/Documents and Settings/pmaheshw/Desktop/codeblocks-1.0rc2/codeblocks-1.0rc2/src/sdk/wxscintilla/src/wxscintilla.cpp:2553: undefined reference to `_imp___ZNK8wxString10AfterFirstEc'
.objs\sdk\wxscintilla\src\wxscintilla.o: In function `ZN11wxScintilla8SaveFileERK8wxString':C:/Documents and Settings/pmaheshw/Desktop/codeblocks-1.0rc2/codeblocks-1.0rc2/src/sdk/wxscintilla/src/wxscintilla.cpp:2725: undefined reference to `_imp___ZN6wxFileC1EPKcNS_8OpenModeE'
.objs\sdk\wxscintilla\src\wxscintilla.o: In function `ZN11wxScintilla8LoadFileERK8wxString':C:/Documents and Settings/pmaheshw/Desktop/codeblocks-1.0rc2/codeblocks-1.0rc2/src/sdk/wxscintilla/src/wxscintilla.cpp:2737: undefined reference to `_imp___ZN6wxFileC1EPKcNS_8OpenModeE'
.objs\sdk\wxscintilla\src\wxscintilla.o: In function `ZNK6wxRect9GetBottomEv':C:/Documents and Settings/pmaheshw/Desktop/codeblocks-1.0rc2/codeblocks-1.0rc2/src/sdk/wxscintilla/src/wxscintilla.cpp:(.text$_ZeqRK8wxStringPKc[operator==(wxString const&, char const*)]+0x14): undefined reference to `_imp___ZNK8wxString3CmpEPKc'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
2 errors, 0 warnings
 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version