From: Gonzalo T. <gon...@so...> - 2004-03-27 19:16:40
|
Hi. Can anybody help me? I'm trying to install wxHaskell 0.6, but when I type make I get the following: ~/Sources/wxHaskell/wxhaskell-0.6>make c++ -c wxc/src/ewxw_main.cpp -o out/wxc/ewxw_main.o -MD -I/usr/local/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -Iwxc/include In file included from wxc/src/ewxw_main.cpp:1: wxc/include/wrapper.h: In constructor ` ELJDragDataObject::ELJDragDataObject(void*, char*, int (*)(void*), int (*)(void*, void*), int (*)(void*, int, const void*))': wxc/include/wrapper.h:172: error: no matching function for call to ` wxDataObjectSimple::wxDataObjectSimple(char*&)' /usr/local/include/wx/dataobj.h:193: error: candidates are: wxDataObjectSimple::wxDataObjectSimple(const wxDataObjectSimple&) /usr/local/include/wx/dataobj.h:198: error: wxDataObjectSimple::wxDataObjectSimple(const wxDataFormat& = wxFormatInvalid) wxc/include/wrapper.h: In constructor ` ELJTextValidator::ELJTextValidator(void*, void*, void*, long int)': wxc/include/wrapper.h:256: error: ambiguous overload for `wxString& = const char*&' operator /usr/local/include/wx/string.h:278: error: candidates are: wxString& wxString::operator=(int) <near match> /usr/local/include/wx/string.h:519: error: wxString& wxString::operator=(const wxString&) <near match> /usr/local/include/wx/string.h:521: error: wxString& wxString::operator=(wchar_t) <near match> /usr/local/include/wx/string.h:527: error: wxString& wxString::operator=(const wxWCharBuffer&) <near match> wxc/include/wrapper.h: At global scope: wxc/include/wrapper.h:330: error: conflicting return type specified for ` virtual char* ELJConnection::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)' /usr/local/include/wx/ipcbase.h:86: error: overriding `virtual wxChar* wxConnectionBase::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)' wxc/include/wrapper.h: In constructor `ELJConnection::ELJConnection(char*, int) ': wxc/include/wrapper.h:300: error: no matching function for call to ` wxTCPConnection::wxTCPConnection(char*&, int&)' /usr/local/include/wx/sckipc.h:60: error: candidates are: wxTCPConnection::wxTCPConnection(wxTCPConnection&) /usr/local/include/wx/sckipc.h:65: error: wxTCPConnection::wxTCPConnection() /usr/local/include/wx/sckipc.h:64: error: wxTCPConnection::wxTCPConnection(wxChar*, int) wxc/include/wrapper.h: In constructor `ELJPrintout::ELJPrintout(void*, void*, void*, void*, void*, void*, void*, void*, void*, void*)': wxc/include/wrapper.h:412: error: conversion from `char*' to `const wxString' is ambiguous /usr/local/include/wx/string.h:306: error: candidates are: wxString::wxString(wchar_t, unsigned int = 1) <near match> /usr/local/include/wx/string.h:284: error: wxString::wxString(int) <near match> wxc/include/wrapper.h: In constructor `ELJPreviewFrame::ELJPreviewFrame(void*, void*, void*, void*, void*, void*, void*, int, int, int, int, int)': wxc/include/wrapper.h:474: error: conversion from `char*' to `const wxString' is ambiguous /usr/local/include/wx/string.h:306: error: candidates are: wxString::wxString(wchar_t, unsigned int = 1) <near match> /usr/local/include/wx/string.h:284: error: wxString::wxString(int) <near match> wxc/include/wrapper.h: At global scope: wxc/include/wrapper.h:533: error: invalid type `const char[11]' for default argument to `const wxString&' make: *** [out/wxc/ewxw_main.o] Error 1 It looks to me like some type errors. How do I fix them? I tried with wxhaskell 0.5 and I got the same result. If it helps, the compiler version is ~/Sources/wxHaskell/wxhaskell-0.6>c++ --version c++ (GCC) 3.3 20030226 (prerelease) (SuSE Linux) Thanks in advance, Gonzalo Tarantola |
From: Daan L. <daa...@xs...> - 2004-03-29 09:15:05
|
On Sat, 27 Mar 2004 16:16:53 -0300, Gonzalo Tarantola <gon...@so...> wrote: > Hi. Can anybody help me? > > I'm trying to install wxHaskell 0.6, but when I type make I get the > following: Hi Gonzalo, It is hard to guess what causes your problems. I think though that you are trying to use wxHaskell 0.6 with wxGTK 2.5.1? In that case, there are two solutions: 1) use wxGTK 2.4.2 (instead of 2.5.1) 2) use the latest wxHaskell from CVS and configure wxGTK with the "--disable-shared" flag. (see <http://wxhaskell.sf.net/building.html>) I hope this helps, All the best, Daan. > > ~/Sources/wxHaskell/wxhaskell-0.6>make > c++ -c wxc/src/ewxw_main.cpp -o out/wxc/ewxw_main.o -MD > -I/usr/local/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ > -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -Iwxc/include > In file included from wxc/src/ewxw_main.cpp:1: > wxc/include/wrapper.h: In constructor ` > ELJDragDataObject::ELJDragDataObject(void*, char*, int (*)(void*), int > (*)(void*, void*), int (*)(void*, int, const void*))': > wxc/include/wrapper.h:172: error: no matching function for call to ` > wxDataObjectSimple::wxDataObjectSimple(char*&)' > /usr/local/include/wx/dataobj.h:193: error: candidates are: > wxDataObjectSimple::wxDataObjectSimple(const wxDataObjectSimple&) > /usr/local/include/wx/dataobj.h:198: error: > wxDataObjectSimple::wxDataObjectSimple(const wxDataFormat& = > wxFormatInvalid) > wxc/include/wrapper.h: In constructor ` > ELJTextValidator::ELJTextValidator(void*, void*, void*, long int)': > wxc/include/wrapper.h:256: error: ambiguous overload for `wxString& = const > char*&' operator > /usr/local/include/wx/string.h:278: error: candidates are: wxString& > wxString::operator=(int) <near match> > /usr/local/include/wx/string.h:519: error: wxString& > wxString::operator=(const wxString&) <near match> > /usr/local/include/wx/string.h:521: error: wxString& > wxString::operator=(wchar_t) <near match> > /usr/local/include/wx/string.h:527: error: wxString& > wxString::operator=(const wxWCharBuffer&) <near match> > wxc/include/wrapper.h: At global scope: > wxc/include/wrapper.h:330: error: conflicting return type specified for ` > virtual char* ELJConnection::OnRequest(const wxString&, const wxString&, > int*, wxIPCFormat)' > /usr/local/include/wx/ipcbase.h:86: error: overriding `virtual wxChar* > wxConnectionBase::OnRequest(const wxString&, const wxString&, int*, > wxIPCFormat)' > wxc/include/wrapper.h: In constructor > `ELJConnection::ELJConnection(char*, int) > ': > wxc/include/wrapper.h:300: error: no matching function for call to ` > wxTCPConnection::wxTCPConnection(char*&, int&)' > /usr/local/include/wx/sckipc.h:60: error: candidates are: > wxTCPConnection::wxTCPConnection(wxTCPConnection&) > /usr/local/include/wx/sckipc.h:65: error: > wxTCPConnection::wxTCPConnection() > /usr/local/include/wx/sckipc.h:64: error: > wxTCPConnection::wxTCPConnection(wxChar*, int) > wxc/include/wrapper.h: In constructor `ELJPrintout::ELJPrintout(void*, > void*, > void*, void*, void*, void*, void*, void*, void*, void*)': > wxc/include/wrapper.h:412: error: conversion from `char*' to `const > wxString' > is ambiguous > /usr/local/include/wx/string.h:306: error: candidates are: > wxString::wxString(wchar_t, unsigned int = 1) <near match> > /usr/local/include/wx/string.h:284: error: > wxString::wxString(int) <near match> > wxc/include/wrapper.h: In constructor > `ELJPreviewFrame::ELJPreviewFrame(void*, > void*, void*, void*, void*, void*, void*, int, int, int, int, int)': > wxc/include/wrapper.h:474: error: conversion from `char*' to `const > wxString' > is ambiguous > /usr/local/include/wx/string.h:306: error: candidates are: > wxString::wxString(wchar_t, unsigned int = 1) <near match> > /usr/local/include/wx/string.h:284: error: > wxString::wxString(int) <near match> > wxc/include/wrapper.h: At global scope: > wxc/include/wrapper.h:533: error: invalid type `const char[11]' for default > argument to `const wxString&' > make: *** [out/wxc/ewxw_main.o] Error 1 > > > It looks to me like some type errors. How do I fix them? I tried with > wxhaskell 0.5 and I got the same result. > > > If it helps, the compiler version is > ~/Sources/wxHaskell/wxhaskell-0.6>c++ --version > c++ (GCC) 3.3 20030226 (prerelease) (SuSE Linux) > > Thanks in advance, > > Gonzalo Tarantola > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > |
From: Gonzalo T. <gon...@so...> - 2004-03-31 03:13:25
|
First of all, thanks for your help I'm using wxGTK 2.4.2, so it shouldn't be the problem. I'll try to get the latest wxhaskell from CVS and see what I can do. By the way, I plan to use wxHaskell in a project for university. Let me tell you briefly what I want to do: The first goal is to write a GUI builder in Haskell. I want the application to show that Haskell can be a powerfull language for prototyping and rapid application development (or at leas to be a practical tool for that "weird people that program in Haskell"[1]). I would like to use wxHaskell to make the builder, and the builder output will also use wxHaskell. If I manage to do that, I think it will also help to show the strength of the wxHaskell library. Well, that's all. If anyone have any comments or useful information, please let me know. Regards, Gonzalo Tarantola [1] At least in my University, most students avoid functional programming as much as they can. Daan Leijen wrote: > On Sat, 27 Mar 2004 16:16:53 -0300, Gonzalo Tarantola > <gon...@so...> wrote: > >> Hi. Can anybody help me? >> >> I'm trying to install wxHaskell 0.6, but when I type make I get the >> following: > > > Hi Gonzalo, > > It is hard to guess what causes your problems. I think though that you > are trying to use wxHaskell 0.6 with wxGTK 2.5.1? In that case, > there are two solutions: > > 1) use wxGTK 2.4.2 (instead of 2.5.1) > 2) use the latest wxHaskell from CVS and configure wxGTK with > the "--disable-shared" flag. (see > <http://wxhaskell.sf.net/building.html>) > > I hope this helps, > All the best, > Daan. > > > |
From: Gour <go...@ma...> - 2004-03-31 07:41:05
|
Gonzalo Tarantola (gon...@so...) wrote: Hi! > By the way, I plan to use wxHaskell in a project for university. Let me > tell you briefly what I want to do: > The first goal is to write a GUI builder in Haskell. I want the > application to show that Haskell can be a powerfull language for > prototyping and rapid application development (or at leas to be a > practical tool for that "weird people that program in Haskell"[1]). I'd also like to see Haskell getting more in the 'mainstream'. Your project of writing GUI builder could be one nice step towards it. > I would like to use wxHaskell to make the builder, and the builder > output will also use wxHaskell. If I manage to do that, I think it will > also help to show the strength of the wxHaskell library. Although not having (at the moment) enough time (besides testing building of wxhaskell, ghc) to dive into Haskell & wxhaskell, I'm definitely interested to use both of them in the future, I'm interested if the tool like wxglade could be used with wxhaskell? There is also DialogBlocks dialog editor which 'understands' XRC too, as well as wxDesigner. Maybe it will be worth to write Haskell application to parse XRC files and generate appropriate wxhaskell code instead of writing GUI builder from a scratch? In this way one can choose preferred GUI tool - free (wxglade) or commercial (DialogBlocks & wxDesigner) and focusing on functional part of aplication in Haskell. > > Well, that's all. If anyone have any comments or useful information, > please let me know. These are some thoughts, but pls. bear in mind they are coming from one not very familiar with the wxhaskell & Haskell programming . Sincerely, Gour -- Gour go...@ma... Registered Linux User #278493 |
From: Gonzalo T. <gon...@so...> - 2004-04-02 02:17:52
|
Gour wrote: > Gonzalo Tarantola (gon...@so...) wrote: > > Hi! > > > > I'd also like to see Haskell getting more in the 'mainstream'. > Your project of writing GUI builder could be one nice step towards it. > I would also like that, and let's hope it helps! > > > Although not having (at the moment) enough time (besides testing building of > wxhaskell, ghc) to dive into Haskell & wxhaskell, I'm definitely interested > to use both of them in the future, I'm interested if the tool like wxglade > could be used with wxhaskell? > > There is also DialogBlocks dialog editor which 'understands' XRC too, as well > as wxDesigner. > > Maybe it will be worth to write Haskell application to parse XRC files and > generate appropriate wxhaskell code instead of writing GUI builder from a > scratch? > > In this way one can choose preferred GUI tool - free (wxglade) or commercial > (DialogBlocks & wxDesigner) and focusing on functional part of aplication in > Haskell. > > I think you're right. What you said was one of the approaches I was considering, and it can avoid me some headaches (But it'll get me others, surely :-)). I'll take a look at the tools you mention. > > These are some thoughts, but pls. bear in mind they are coming from one not > very familiar with the wxhaskell & Haskell programming . > Thanks for your opinions, I really appreciate them, they are very useful. > Sincerely, > Gour > Regards, Gonzalo |
From: Gour <go...@ma...> - 2004-04-05 16:14:44
|
Gonzalo Tarantola (gon...@so...) wrote: > I think you're right. What you said was one of the approaches I was > considering, and it can avoid me some headaches (But it'll get me > others, surely :-)). I'll take a look at the tools you mention. Have you seen some of the tools? What do you think? > >These are some thoughts, but pls. bear in mind they are coming from one not > >very familiar with the wxhaskell & Haskell programming . > > > Thanks for your opinions, I really appreciate them, they are very useful. Well, it would be more useful to offer some help in coding, but I hope I'll arrive at that stage at some moment :-) Sincerely, Gour -- Gour go...@ma... Registered Linux User #278493 |