Обсуждение: Strange error message when linking

Поиск
Список
Период
Сортировка

Strange error message when linking

От
Guillaume Lelarge
Дата:
Hi,

I'm still working on a ctlColourPicker widget, our custom
wxColourPickerCtrl to work around issues found on Mac OS X by Dave. I
was obviously wrong when I said that coding this widget would be simple :-/

The patch attached is my current work. I'm pretty ashamed of it, but
can't find a way to fix my linking issue. Here is the error I got at the
linking step:

pgAdmin3.o: In function `ctlColourPickerXmlHandler':
/home/guillaume/freeprojects/git.pgadmin/pgadmin/../pgadmin/include/ctl/xh_ctlcolourpicker.h:25:
undefined reference to `vtable for ctlColourPickerXmlHandler'
collect2: ld returned 1 exit status

I have absolutely no idea what this could mean. Search engines didn't
help me on this. I don't know what to do. If you have any idea, I
welcome them.

If I don't find any way to fix this before the end of the week, I think
I'll fix the first issue another way: replacing wxColourPickerCtrl with
wxBitmapButton for each control (which means duplicated code, but much
simpler work). Simpler work means quicker work, so more time to code new
interesting 9.0 features. And I'll get back to this widget for next dev
cycle. But I would definitely prefer having a solution to my linking issue.


--
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

Вложения

Re: Strange error message when linking

От
Guillaume Lelarge
Дата:
Le 05/03/2010 00:52, Guillaume Lelarge a écrit :
> [...]
> I'm still working on a ctlColourPicker widget, our custom
> wxColourPickerCtrl to work around issues found on Mac OS X by Dave. I
> was obviously wrong when I said that coding this widget would be simple :-/
>
> The patch attached is my current work. I'm pretty ashamed of it, but
> can't find a way to fix my linking issue. Here is the error I got at the
> linking step:
>
> pgAdmin3.o: In function `ctlColourPickerXmlHandler':
> /home/guillaume/freeprojects/git.pgadmin/pgadmin/../pgadmin/include/ctl/xh_ctlcolourpicker.h:25:
> undefined reference to `vtable for ctlColourPickerXmlHandler'
> collect2: ld returned 1 exit status
>
> I have absolutely no idea what this could mean. Search engines didn't
> help me on this. I don't know what to do. If you have any idea, I
> welcome them.
>

Just tried on Windows, where it compiles and links. As it doesn't do
anything right now, I can't say if it works.


--
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

Re: Strange error message when linking

От
Ashesh Vashi
Дата:
Hi Guillaume,

Very small mistake. (I saw this error earlier.)
You forget to add "$(srcdir)/ctl/xh_ctlcolourpicker.cpp" in "pgadmin/ctl/module.mk" file.
Please find the attached patch.

--
Thanks & Regards,
Ashesh Vashi

On Fri, Mar 5, 2010 at 5:44 AM, Guillaume Lelarge <guillaume@lelarge.info> wrote:
Le 05/03/2010 00:52, Guillaume Lelarge a écrit :
> [...]
> I'm still working on a ctlColourPicker widget, our custom
> wxColourPickerCtrl to work around issues found on Mac OS X by Dave. I
> was obviously wrong when I said that coding this widget would be simple :-/
>
> The patch attached is my current work. I'm pretty ashamed of it, but
> can't find a way to fix my linking issue. Here is the error I got at the
> linking step:
>
> pgAdmin3.o: In function `ctlColourPickerXmlHandler':
> /home/guillaume/freeprojects/git.pgadmin/pgadmin/../pgadmin/include/ctl/xh_ctlcolourpicker.h:25:
> undefined reference to `vtable for ctlColourPickerXmlHandler'
> collect2: ld returned 1 exit status
>
> I have absolutely no idea what this could mean. Search engines didn't
> help me on this. I don't know what to do. If you have any idea, I
> welcome them.
>

Just tried on Windows, where it compiles and links. As it doesn't do
anything right now, I can't say if it works.
--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Вложения

Re: Strange error message when linking

От
Guillaume Lelarge
Дата:
Hi Ashesh,

Le 05/03/2010 07:31, Ashesh Vashi a écrit :
> [...]
> Very small mistake. (I saw this error earlier.)
> You forget to add "$(srcdir)/ctl/xh_ctlcolourpicker.cpp" in "pgadmin/ctl/
> module.mk" file.
> Please find the attached patch.
>

Wow, thanks a lot. I thought I updated all module.mk file, but I was wrong.

Thanks again, I'll continue my work on this widget today.


--
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

Re: Strange error message when linking

От
Ashesh Vashi
Дата:


:-)

On Fri, Mar 5, 2010 at 1:03 PM, Guillaume Lelarge <guillaume@lelarge.info> wrote:
Hi Ashesh,

Le 05/03/2010 07:31, Ashesh Vashi a écrit :
> [...]
> Very small mistake. (I saw this error earlier.)
> You forget to add "$(srcdir)/ctl/xh_ctlcolourpicker.cpp" in "pgadmin/ctl/
> module.mk" file.
> Please find the attached patch.
>

Wow, thanks a lot. I thought I updated all module.mk file, but I was wrong.

Thanks again, I'll continue my work on this widget today.


--