You need to either find libregex and add appropriate -L<path> or
install it if it isn't already. This isn't the fault of wx or cygwin,
just you not having a proper build environment setup. This is a
consequence of C/C++ development and you should get used to it.
John
On Thu, 21 Oct 2004 15:40:19 +0100, Andrew Smith <espadav8@...> wrote:
> Thanks Daniel, after a while of messing with the -I and -L and trying
> to find out where it was installed I found that setup.h was in some
> completely random loaction so I moved it into /usr/local/include/wx/
> with the rest of the headers. Then running make gave me a completely
> different output and then complained about needing libwxmswd.a which
> it couldn't find, so I symlinked libwxmsw242d.a and now i's
> complaining about
>
> g++ -Wl,--subsystem,windows -mwindows -L/wx/lib -L/wx/contrib/lib
> -o hello.exe hello.o hello_reso
> urces.o /wx/lib/libwxmswd.a -lregex -lpng -ljpeg -lzlib -ltiff
> -lstdc++ -lgcc -lodbc32 -lwsock32 -l
> winspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32
> -lodbc32 -lwsock32 -lopengl32 -l
> glu32 -lole32 -loleaut32 -luuid
> /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:
> cannot find -lregex
> collect2: ld returned 1 exit status
> make: *** [hello.exe] Error 1
>
> I'm getting a bit cheesed off with this and I think I'm going to have
> a go of getting it working in Gentoo instead of CygWin. I'll let you
> know how this fairs ;)
>
> Thanks again :)
>
>
>
> On Thu, 21 Oct 2004 05:39:12 +0200, Daniel Foesch <krach42@...> wrote:
> > It looks like you need to specify a "-I/path/to/wxwidget" and a
> > "-L/path/to/wxwidget" where first is a capital i.
> >
> > If you install wxwidget to /usr then you shouldn't have a problem, if
> > you do it to /usr/local you're likely to get it to work, but not
> > assured, and if you install it anywhere else, you'll for sure have to
> > use the above.
> >
> > Say, you did a ./configure for wxwidget of /where/ever Then you're
> > going to specify "-I/where/ever" and "-L/where/ever"
> >
> > That should fix your problem.
> >
> >
> >
> >
> > On Thu, 21 Oct 2004 02:31:44 +0100, Andrew Smith <espadav8@...> wrote:
> > > Talking about creating a GUI built into the PearPC code I've been
> > > looking at wxWidgets (and have looked into GTK+ before) and was
> > > wondering if anyone has managed to get it installed correctly in
> > > CygWin. I've tried compiling it using both the makefile.g95 way and
> > > using the ./configure way but no matter which I use when I try and
> > > compile a simple HelloWorld app it says it can't find wx/setup.h (see
> > > below).
> > >
> > > If anyone has managed to get wxWidgets installed and can point me as
> > > to where I'm going wrong then please do so :) I know getting a GUI
> > > into PearPC isn't a high pority but I'm not proficient enough to code
> > > the 'hardcore' side of it but I can make GUI's nicely and quickly. I'm
> > > not bothered about using the Python and Ruby binding for it (because I
> > > don't know Python or Ruby but I do know basic C/C++).
> > >
> > > Thanks for any help (if I get any) ;)
> > >
> > > /wx/include/wx/msw/pen.h: In member function `bool wxPen::operator==(const
> > > wxPen&) const':
> > > /wx/include/wx/msw/pen.h:60: error: 'const class wxPen' has no member named '
> > > m_refData'
> > > /wx/include/wx/msw/pen.h: In member function `bool wxPen::operator!=(const
> > > wxPen&) const':
> > > /wx/include/wx/msw/pen.h:61: error: 'const class wxPen' has no member named '
> > > m_refData'
> > > In file included from /wx/include/wx/wx.h:46,
> > > from hello.cc:2:
> > > /wx/include/wx/timer.h:20:22: wx/setup.h: No such file or directory
> > > hello.cc: In member function `virtual bool Hello::OnInit()':
> > > hello.cc:8: error: `CreateStatusBar' undeclared (first use this function)
> > > hello.cc:9: error: `SetStatusText' undeclared (first use this function)
> > > make: *** [hello.o] Error 1
> > > --
> > > Andy Smith - Def since birth
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> > > Use IT products in your business? Tell us what you think of them. Give us
> > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> > > http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > > _______________________________________________
> > > Pearpc-devel mailing list
> > > Pearpc-devel@...
> > > https://lists.sourceforge.net/lists/listinfo/pearpc-devel
> > >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> > Use IT products in your business? Tell us what you think of them. Give us
> > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> > http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > _______________________________________________
> > Pearpc-devel mailing list
> > Pearpc-devel@...
> > https://lists.sourceforge.net/lists/listinfo/pearpc-devel
> >
>
>
> --
>
>
> Andy Smith - Def since birth
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Pearpc-devel mailing list
> Pearpc-devel@...
> https://lists.sourceforge.net/lists/listinfo/pearpc-devel
>
|