RE: [wxperl-users] Building wxPerl with wxWindows 2.3.1, and usingXML resources #2

Dear Mattia,
Thanks for the info - I'm getting further!

I've built xrc using:
nmake -f makefile.vx FINAL=3D1
to create wxxrc.lib (rather than wxxrcd.lib), and this worked fine.

However, when I try building wxPerl, using:
nmake=20
perl Makefile.PL
nmake=20

I get the following errors (I've snipped sections out to give the gist,
as it goes on quite a bit):

	link -out:..\..\blib\arch\auto\Wx\XRC\XRC.dll -dll -nologo
-nodefaultlib -release
-libpath:"c:\perl\5.6.1\lib\MSWin32-x86-multi-thread\CORE"  -machine:x86
XRC.obj ..\..\blib\arch\auto\Wx\Wx.lib
C:\perl\5.6.1\lib\MSWin32-x86-multi-thread\CORE\perl56.lib
c:\wx2.3.1\lib\wx23_1.lib c:\wx2.3.1\lib\zlib.lib
C:\wx2.3.1\lib\wxxrc.lib "C:\Program Files\Microsoft Visual
Studio\VC98\lib\oldnames.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\kernel32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\user32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\gdi32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\winspool.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\comdlg32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\advapi32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\shell32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\ole32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\oleaut32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\netapi32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\uuid.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\wsock32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\mpr.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\winmm.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\version.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\odbc32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\odbccp32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\msvcrt.lib"
wxxrc.lib(xmlres.obj) : error LNK2005: "public: __thiscall
wxString::~wxString(void)" (??1wxString@@QAE@XZ) already defined in
wx23_1.lib(wx23_1.dll)
wxxrc.lib(xmlres.obj) : error LNK2005: "public: virtual bool __thiscall
wxGDIObject::GetVisible(void)" (?GetVisible@wxGDIObject@@UAE_NXZ)
already defined in wx23_1.lib(wx23_1.dll)
wxxrc.lib(xmlres.obj) : error LNK2005: "public: virtual void __thiscall
wxGDIObject::SetVisible(bool)" (?SetVisible@wxGDIObject@@UAEX_N@Z)
already defined in wx23_1.lib(wx23_1.dll)
wxxrc.lib(xmlres.obj) : error LNK2005: "public: virtual bool __thiscall
wxGDIObject::RealizeResource(void)"
(?RealizeResource@wxGDIObject@@UAE_NXZ) already defined in
wx23_1.lib(wx23_1.dll)
wxxrc.lib(xmlres.obj) : error LNK2005: "public: virtual bool __thiscall
wxGDIObject::IsFree(void)const " (?IsFree@wxGDIObject@@UBE_NXZ) already
defined in wx23_1.lib(wx23_1.dll)
wxxrc.lib(xmlres.obj) : error LNK2005: "protected: virtual class
wxGDIImageRefData * __thiscall wxBitmap::CreateData(void)const "
(?CreateData@wxBitmap@@MBEPAVwxGDIImageRefData@@XZ) already defined in
wx23_1.lib(wx23_1.dll)
..
..
..
wxxrc.lib(xmlres.obj) : warning LNK4006: "public: __thiscall
wxString::~wxString(void)" (??1wxString@@QAE@XZ) already defined in
wx23_1.lib(wx23_1.dll); second definition ignored
wxxrc.lib(xmlres.obj) : warning LNK4006: "public: virtual bool
__thiscall wxGDIObject::GetVisible(void)"
(?GetVisible@wxGDIObject@@UAE_NXZ) already defined in
wx23_1.lib(wx23_1.dll); second definition ignored
wxxrc.lib(xmlres.obj) : warning LNK4006: "public: virtual void
__thiscall wxGDIObject::SetVisible(bool)"
(?SetVisible@wxGDIObject@@UAEX_N@Z) already defined in
wx23_1.lib(wx23_1.dll); second definition ignored
..
..
..
   Creating library ..\..\blib\arch\auto\Wx\XRC\XRC.lib and object
...\..\blib\arch\auto\Wx\XRC\XRC.exp
wxxrc.lib(xmlbin.obj) : error LNK2001: unresolved external symbol "char
const * const  wxEmptyString" (?wxEmptyString@@3PBDB)
wxxrc.lib(xmlwrite.obj) : error LNK2001: unresolved external symbol
"char const * const  wxEmptyString" (?wxEmptyString@@3PBDB)
wxxrc.lib(xmlexpat.obj) : error LNK2001: unresolved external symbol
"char const * const  wxEmptyString" (?wxEmptyString@@3PBDB)
wxxrc.lib(xh_panel.obj) : error LNK2001: unresolved external symbol
"char const * const  wxEmptyString" (?wxEmptyString@@3PBDB)
wxxrc.lib(xh_dlg.obj) : error LNK2001: unresolved external symbol "char
const * const  wxEmptyString" (?wxEmptyString@@3PBDB)
..
..
..
wxxrc.lib(xh_unkwn.obj) : error LNK2001: unresolved external symbol
"public: static class wxClassInfo  wxWindowBase::sm_classwxWindowBase"
(?sm_classwxWindowBase@wxWindowBase@@2VwxClassInfo@@A)
..
..
..
...\..\blib\arch\auto\Wx\XRC\XRC.dll : fatal error LNK1120: 49 unresolved
externals

Have I missed something in my build of wx2.3.1...?

Sorry to take up your time, but I really want to be able to use resource
files, so that I can design screens graphically!

Thanks,

James


> -----Original Message-----
> From: Mattia Barbon [mailto:mbarbon@dsi.unive.it]
> Sent: 05 November 2001 22:19
> To: James Lavery
> Cc: wxperl-users@lists.sourceforge.net
> Subject: RE: [wxperl-users] Building wxPerl with wxWindows 2.3.1, and
> usingXML resources
>=20
>=20
> > Dear Mattia,
> > Thanks for the information - it all makes sense. =20
> >=20
> > However, I tried downloading the latest snapshot from
> > http://wxperl.sourceforge.net/snapshot/wxPerl.zip, and I=20
> get the same
> > "'SetString' : is not a member of 'wxRadioBox'" error.  Am=20
> I getting=20
> the
> > correct snapshot?  Wx.pm in the snapshot has a version of 0.08.
> My fault ( you'll notice I keep saying this quite often... )
> There were other changes I forgot to check.
> The current CVS/snapshot should compile OOTB
>=20
> ( BTW, don't forget to
>=20
>   cd $WXWIN\contrib\src\xrc
>   nmake -f makefile.vc
>=20
>   before building wxPerl, to build xrc )
>=20
> Hope this helps
> Mattia
>=20
>=20

0
james (30)
1/23/2014 1:01:01 AM
perl.wxperl.users 3070 articles. 0 followers. Follow

1 Replies
672 Views

Similar Articles

[PageSpeed] 52

> Dear Mattia,
> Thanks for the info - I'm getting further!
> 
> I've built xrc using:
> nmake -f makefile.vx FINAL=1
nmake -f makefile.vc FINAL=1 WXUSINGDLL=1

( will I ever learn how to give instructions correctly... )

> to create wxxrc.lib (rather than wxxrcd.lib), and this worked fine.
> 
> However, when I try building wxPerl, using:
> nmake 
> perl Makefile.PL
> nmake 
> 
> I get the following errors (I've snipped sections out to give the 
gist,
> as it goes on quite a bit):
> 
> 	link -out:..\..\blib\arch\auto\Wx\XRC\XRC.dll -dll -nologo
> -nodefaultlib -release
> -libpath:"c:\perl\5.6.1\lib\MSWin32-x86-multi-thread\CORE"  -
machine:x86

<snip>

> wxxrc.lib(xmlres.obj) : error LNK2005: "public: __thiscall
> wxString::~wxString(void)" (??1wxString@@QAE@XZ) already defined in
> wx23_1.lib(wx23_1.dll)

<snip>

All these are due to the fact that wx is compiled as a DLL, but
wxXRC is compiled as if wxWindows were compiled as a static lib

> .
> .
> wxxrc.lib(xh_unkwn.obj) : error LNK2001: unresolved external symbol
> "public: static class wxClassInfo  wxWindowBase::sm_classwxWindowBase"
> (?sm_classwxWindowBase@wxWindowBase@@2VwxClassInfo@@A)
> .
> .
> .
> ..\..\blib\arch\auto\Wx\XRC\XRC.dll : fatal error LNK1120: 49 
unresolved
> externals
> 
> Have I missed something in my build of wx2.3.1...?
> 
> Sorry to take up your time, but I really want to be able to use 
resource
Sorry *again* for *your* time... ( but this should really be the
 _last_ time... )

> files, so that I can design screens graphically!

Regards
Mattia

0
mbarbon
1/23/2014 1:01:01 AM
Reply:

Similar Artilces:

RE: [wxperl-users] Building wxPerl with wxWindows 2.3.1, and usingXML resources #3
Dear Mattia, Forgot to say that I did a=20 nmake realclean before the=20 perl makefile.pl nmake in order to clean things up from the 2.2.7 build. James > -----Original Message----- > From: Mattia Barbon [mailto:mbarbon@dsi.unive.it] > Sent: 05 November 2001 22:19 > To: James Lavery > Cc: wxperl-users@lists.sourceforge.net > Subject: RE: [wxperl-users] Building wxPerl with wxWindows 2.3.1, and > usingXML resources >=20 >=20 > > Dear Mattia, > > Thanks for the information - it all makes sense. =20 > >=20 > > Howev...

RE: [wxperl-users] Building wxPerl with wxWindows 2.3.1, and usingXML resources
Dear Mattia, Thanks for the information - it all makes sense. =20 However, I tried downloading the latest snapshot from http://wxperl.sourceforge.net/snapshot/wxPerl.zip, and I get the same "'SetString' : is not a member of 'wxRadioBox'" error. Am I getting the correct snapshot? Wx.pm in the snapshot has a version of 0.08. Thanks, James > Dear Mattia, > Thanks for the information - it all makes sense. > > However, I tried downloading the latest snapshot from > http://wxperl.sourceforge.net/snapshot/wxPerl.zip, and I get the sam...

RE: [wxperl-users] Building wxPerl with wxWindows 2.3.1, and usingXML resources #4
Dear Mattia, Excellent! I've got things built, now I just have to get to grips with resources... Thanks a lot, James > -----Original Message----- > From: Mattia Barbon [mailto:mbarbon@dsi.unive.it] > Sent: 06 November 2001 15:34 > To: James Lavery > Cc: wxperl-users@lists.sourceforge.net > Subject: RE: [wxperl-users] Building wxPerl with wxWindows 2.3.1, and > usingXML resources >=20 >=20 > > Dear Mattia, > > Thanks for the info - I'm getting further! > >=20 > > I've built xrc using: > > nmake -f makef...

[wxperl-users] Building wxPerl with wxWindows 2.3.1, and using XML resources
Hi All, I'm new to wxPerl and wxWindows, (but not to Perl...), and am a bit confused about a couple of things... I want to use XML resource files with wxPerl, and understand that this is only available with the 'unstable' 2.3.1 version of wxWindows. I've downloaded and built this with no problems, into c:\wx2.3.1\wx23_1.dll. Three questions: 1. How do I rebuild wxPerl to use this version of wxWindows? =20 I've tried editing build\nmake.mak to change WXWIN to c:\wx2.3.1, and rebuilding the makefile for wxPerl and remaking, but I get the errors: Controls....

Re:[wxperl-users] wxPerl-0.20 Source Build on OSX.3.5/wxPython 2.5.2.7
> I've just built wxPerl 0.20 as indicated in the subject, and I had a =0D = > few issues: > > First, the syntax for wx-config used in > Any_wx_c= onfig.pm::get_core_libs_25 seems to have changed: Instead of > "--libs=3D= list" it's now "--libs list". yes, it was changes in wxWidgets CVS l= ast week. > Next, Makemaker is building the root Makefile with both b= libdirs: and Which MakeMaker version? If 6.22, downgrade to 6.17 or= use the snapshot at makemaker.org. > blibdirs::. That produces an = error. Cha...

Re: [wxperl-users] wxPerl-0.20 Source Build on OSX.3.5/wxPython 2.5.2.7
> MakeMaker 6.21. Sorry. Below I meant to write: "If 6.21, downgrad= e to 6.17 or use the snapshot at makemaker.org." ^^^^ Regards=0D = Mattia > On Aug 18, 2004, at 11:56 PM, mattia.barbon@libero.it wrote:=0D = > ''' > >> Next, Makemaker is building the root Makefile with both blibd= irs: and > > > > Which MakeMaker version? If 6.22, downgrade to 6.17 = or > > use the snapshot at makemaker.org. > > > ... > > Thanks! > > = Mattia > > > > > > > > > &g...

Re: [wxperl-users] wxPerl binary for wxWindows 2.3.x?
>Of course, I 'm probalby caught between a rock and a hard place slightly - >if I want the extra functionality/fixes in wxWindows 2.3.3, I'll have to >take the potential hit on new bugs! I've been using 0.11b6 for some weeks and it's stable on my machine. I'm going to send my next preview version to a few people for testing in the day or two as well. Mattia, let me know before you release 0.11-stable, so I send you the latest STC stuff. I'm updating the sample/demo script at the moment. Marcus ...

[wxperl-users] wxPerl-0.20 Source Build on OSX.3.5/wxPython 2.5.2.7
I've just built wxPerl 0.20 as indicated in the subject, and I had a few issues: First, the syntax for wx-config used in Any_wx_config.pm::get_core_libs_25 seems to have changed: Instead of "--libs=list" it's now "--libs list". Next, Makemaker is building the root Makefile with both blibdirs: and blibdirs::. That produces an error. Changing the single colon to a double colon fixes the problem, but it has to be done every time one runs Makefile.PL. I couldn't figure out where to fix it in the MakeMaker files. Last, could you take out the...

[wxperl-users] wxPerl 0.11 *beta* + wxWindows 2.3.3 *snapshot* available
This is a Win32-only binary snapshot. Use only if you know you need it. http://wwwstud.dsi.unive.it/~mbarbon/wx/ Regards mattia ...

[wxperl-users] [RFC] Removing support for wxWindows 2.2 and 2.3
Hello, I, personally, don't think compatibility with wxWindows 2.2 is worth keeping (since wxWindows' team has dropped support for it), and while I am at it, it'd be nice to remove all the 2.3 compatibility: if someone, for any reason, can't switch to wxWindows 2.4, they can always use an older wxPerl version. Any comments? Regards Mattia --- Mattia Barbon <mbarbon@dsi.unive.it> wrote: > Hello, > I, personally, don't think compatibility with wxWindows 2.2 is worth keeping (since > wxWindows' team has dropped support for it), and ...

RE: [wxperl-users] Plans for wxPerl 0.23, wxWidgets 2.6.0 #2
Hello, > I tried to compile wxPerl CVS against 2.6.0 and I got the = errors as below. > > I am compiling on WinXP using MSVC6. Should this = work? Have others > successfully compiled? Yes, but with MSVC 5 and= GCC (various versions), not MSVC 6. Are you up to date with MSVC servic= e packs? > C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils/xsubpp = -noprototypes > -nolinen <snip> > Grid.c(390) : warning C4189: 'CLAS= S' : local variable is initialized but not > referenced > Grid.c(464) := fatal error C1001: INTERNA...

RE: Re[2]: [wxperl-users] Installation on FreeBSD 5.3 #2
Hello, > > > > Can anyone point me in the right direction? > > =0D = > > > Not without some more information... > > > what ExtUtils::MakeMa= ker version do you have? > > > > $VERSION =3D '6.17'; > > > > > Wh= at is the output of > > > make > > > > ./cpp/helpers.h:27: error: `wx= OutputStream' does not name a type > > ./cpp/helpers.h:37: error: expect= ed `,' or `...' before '*' token > > ./cpp/helpers.h:37: error: ISO C++ = forbids declarati...

Re: [wxperl-users] wxPerl on wxX11 ? #2
> --- John Ralls <jralls@ceridwen.fremont.ca.us> wrote: > > > > > On Jul 11, 2006, at 5:31 PM, Sergei Steshenko wrote: > > > > > Hello All, > > > > > > is it possible to compile wxPerl on wxX11 rather than on wxGTK ? > > > > > > If yes, will it be functional ? > > > > > > Thanks, > > > Sergei. > > > > If wxX11 works (which is to say, if you can build it and run some of = > > the samples), then wxPerl will work fine with it. wxPerl doesn't care= ...

RE: [wxperl-users] Re: wxValidator available via wxPerl #2
Dear Mattia, Thanks - this works a treat! I was so close... Anyway, now I'm up and running. I had noticed the 'Attempt to free unreferenced...' error - will await a fix. Now that I've got things working, what do you suggest/would you like? I feel that validators are the way to go when it comes to transferring data to/from controls (rather than explicit GetValue/SetValue calls all over the place) - I have had to implement a similar concept (though not as elegant) in a very large Perl/Tk application which we have developed. I see that you think we should create...

Web resources about - RE: [wxperl-users] Building wxPerl with wxWindows 2.3.1, and usingXML resources #2 - perl.wxperl.users

O'Reilly Open Source Convention 2007 • July 23-27, 2007 • Portland, Oregon
O'Reilly Open Source Convention 2007 - July 23-27, 2007 - Portland, Oregon

Resources last updated: 12/21/2015 6:11:20 PM