Author Topic: compiling codeblocks with vc toolkit 2003  (Read 6941 times)

Offline nacitar

  • Multiple posting newcomer
  • *
  • Posts: 27
compiling codeblocks with vc toolkit 2003
« on: February 24, 2006, 01:07:47 am »
is there a tutorial saying what changes need to be made to the .cbp file for code::blocks to compile it?  There are certain linker settings for mingw that i dont know the equivalents of for vc toolkit, and im sure there will be other problems...  One problem in getting (i just removed the linker settings that werent compatible, btw)  is like the following..

PlatWX.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::wxString(unsigned short const *)" (__imp_??0wxString@@QAE@PBG@Z) referenced in function "public: virtual int __thiscall SurfaceImpl::Ascent(class Font &)" (?Ascent@SurfaceImpl@@UAEHAAVFont@@@Z)
ScintillaWX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::wxString(unsigned short const *)" (__imp_??0wxString@@QAE@PBG@Z)
wxscintilla.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::wxString(unsigned short const *)" (__imp_??0wxString@@QAE@PBG@Z)
PlatWX.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned short const * const wxEmptyString" (__imp_?wxEmptyString@@3PBGB) referenced in function "public: virtual void __thiscall ListBoxImpl::Append(char *,int)" (?Append@ListBoxImpl@@UAEXPADH@Z)
ScintillaWX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) unsigned short const * const wxEmptyString" (__imp_?wxEmptyString@@3PBGB)
wxscintilla.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) unsigned short const * const wxEmptyString" (__imp_?wxEmptyString@@3PBGB)
PlatWX.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned short const * const wxListCtrlNameStr" (__imp_?wxListCtrlNameStr@@3QBGB) referenced in function "public: __thiscall wxSCIListBox::wxSCIListBox(class wxWindow *,int,class wxPoint const &,class wxSize const &,long)" (??0wxSCIListBox@@QAE@PAVwxWindow@@HABVwxPoint@@ABVwxSize@@J@Z)
PlatWX.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxCharBuffer const __thiscall wxString::mb_str(class wxMBConv &)const " (__imp_?mb_str@wxString@@QBE?BVwxCharBuffer@@AAVwxMBConv@@@Z) referenced in function "class wxCharBuffer const __cdecl wx2sci(class wxString const &)" (?wx2sci@@YA?BVwxCharBuffer@@ABVwxString@@@Z)
ScintillaWX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxCharBuffer const __thiscall wxString::mb_str(class wxMBConv &)const " (__imp_?mb_str@wxString@@QBE?BVwxCharBuffer@@AAVwxMBConv@@@Z)
wxscintilla.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class wxCharBuffer const __thiscall wxString::mb_str(class wxMBConv &)const " (__imp_?mb_str@wxString@@QBE?BVwxCharBuffer@@AAVwxMBConv@@@Z)
PlatWX.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxCharBuffer const __thiscall wxString::mbc_str(void)const " (__imp_?mbc_str@wxString@@QBE?BVwxCharBuffer@@XZ) referenced in function "public: static char const * __cdecl Platform::DefaultFont(void)" (?DefaultFont@Platform@@SAPBDXZ)
PlatWX.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::operator unsigned short const *(void)const " (__imp_??BwxString@@QBEPBGXZ) referenced in function "public: static void __cdecl Platform::DebugDisplay(char const *)" (?DebugDisplay@Platform@@SAXPBD@Z)
ScintillaWX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::operator unsigned short const *(void)const " (__imp_??BwxString@@QBEPBGXZ)
wxscintilla.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::operator unsigned short const *(void)const " (__imp_??BwxString@@QBEPBGXZ)
PlatWX.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::wxString(unsigned short const *,unsigned int)" (__imp_??0wxString@@QAE@PBGI@Z) referenced in function "class wxString __cdecl sci2wx(char const *,unsigned int)" (?sci2wx@@YA?AVwxString@@PBDI@Z)
PlatWX.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short const * __thiscall wxStringBase::c_str(void)const " (__imp_?c_str@wxStringBase@@QBEPBGXZ) referenced in function "class wxCharBuffer const __cdecl wx2stc(class wxString const &)" (?wx2stc@@YA?BVwxCharBuffer@@ABVwxString@@@Z)
ScintillaWX.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short const * __thiscall wxLocale::GetString(unsigned short const *,unsigned short const *)const " (__imp_?GetString@wxLocale@@QBEPBGPBG0@Z) referenced in function "unsigned short const * __cdecl wxGetTranslation(unsigned short const *)" (?wxGetTranslation@@YAPBGPBG@Z)
ScintillaWX.obj : error LNK2019: unresolved external symbol __imp__SetCaretPos@8 referenced in function "public: virtual void __thiscall ScintillaWX::UpdateSystemCaret(void)" (?UpdateSystemCaret@ScintillaWX@@UAEXXZ)
ScintillaWX.obj : error LNK2019: unresolved external symbol __imp__ShowCaret@4 referenced in function "private: bool __thiscall ScintillaWX::CreateSystemCaret(void)" (?CreateSystemCaret@ScintillaWX@@AAE_NXZ)
ScintillaWX.obj : error LNK2019: unresolved external symbol __imp__CreateCaret@16 referenced in function "private: bool __thiscall ScintillaWX::CreateSystemCaret(void)" (?CreateSystemCaret@ScintillaWX@@AAE_NXZ)
ScintillaWX.obj : error LNK2019: unresolved external symbol __imp__DestroyCaret@0 referenced in function "private: bool __thiscall ScintillaWX::DestroySystemCaret(void)" (?DestroySystemCaret@ScintillaWX@@AAE_NXZ)
ScintillaWX.obj : error LNK2019: unresolved external symbol __imp__HideCaret@4 referenced in function "private: bool __thiscall ScintillaWX::DestroySystemCaret(void)" (?DestroySystemCaret@ScintillaWX@@AAE_NXZ)
wxscintilla.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxString::AfterFirst(unsigned short)const " (__imp_?AfterFirst@wxString@@QBE?AV1@G@Z) referenced in function "public: void __thiscall wxScintilla::StyleSetSpec(int,class wxString const &)" (?StyleSetSpec@wxScintilla@@QAEXHABVwxString@@@Z)
wxscintilla.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxString::BeforeFirst(unsigned short)const " (__imp_?BeforeFirst@wxString@@QBE?AV1@G@Z) referenced in function "public: void __thiscall wxScintilla::StyleSetSpec(int,class wxString const &)" (?StyleSetSpec@wxScintilla@@QAEXHABVwxString@@@Z)
wxscintilla.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall wxString::Cmp(unsigned short const *)const " (__imp_?Cmp@wxString@@QBEHPBG@Z) referenced in function "bool __cdecl operator==(class wxString const &,unsigned short const *)" (??8@YA_NABVwxString@@PBG@Z)
wxscintilla.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short __thiscall wxString::GetChar(unsigned int)const " (__imp_?GetChar@wxString@@QBEGI@Z) referenced in function "class wxColour __cdecl wxColourFromSpec(class wxString const &)" (?wxColourFromSpec@@YA?AVwxColour@@ABVwxString@@@Z)
wxscintilla.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxFile::wxFile(unsigned short const *,enum wxFile::OpenMode)" (__imp_??0wxFile@@QAE@PBGW4OpenMode@0@@Z) referenced in function "public: bool __thiscall wxScintilla::SaveFile(class wxString const &)" (?SaveFile@wxScintilla@@QAE_NABVwxString@@@Z)
wxscintilla.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short __thiscall wxKeyEvent::GetUnicodeKey(void)const " (__imp_?GetUnicodeKey@wxKeyEvent@@QBEGXZ) referenced in function "protected: void __thiscall wxScintilla::OnChar(class wxKeyEvent &)" (?OnChar@wxScintilla@@IAEXAAVwxKeyEvent@@@Z)
wxscintilla.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxClassInfo::wxClassInfo(unsigned short const *,class wxClassInfo const *,class wxClassInfo const *,int,class wxObject * (__cdecl*)(void))" (__imp_??0wxClassInfo@@QAE@PBGPBV0@1HP6APAVwxObject@@XZ@Z) referenced in function _$E58
devel\wxscintilla.dll : fatal error LNK1120: 21 unresolved externals


fun stuff..  i compiled wxwidget's current release from their cvs and edited it to look for wxmsw270 and all that jazz, and im getting this..  The include and lib folders are referring to the proper places for wxwidgets.  Also, the linker options i mentioned were...

-Wl,--enable-auto-image-base
-Wl,--export-all-symbols
-Wl,--add-stdcall-alias
Jacob McIntosh - Software Developer

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: compiling codeblocks with vc toolkit 2003
« Reply #1 on: February 24, 2006, 01:11:28 am »
Hello,

May be this would help.

Best wishes,
Michael

takeshimiya

  • Guest
Re: compiling codeblocks with vc toolkit 2003
« Reply #2 on: February 24, 2006, 01:13:37 am »
Or this.

Offline nacitar

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: compiling codeblocks with vc toolkit 2003
« Reply #3 on: February 24, 2006, 01:21:02 am »
those are identical posts... and the guy doesnt share very much about what he did to accomplish it.  Anyone have commentary/other links?  I could use some enlightenment on those linker arguments i listed, and perhaps an idea of why im getting all those symbol errors.
Jacob McIntosh - Software Developer

takeshimiya

  • Guest
Re: compiling codeblocks with vc toolkit 2003
« Reply #4 on: February 24, 2006, 03:23:57 am »
Well, the only thing you need is asking him (Sam) to send you the patch (or to post it at the patch tracker, so others can benefit from it).