Re: example needed: sip + Qt
From: Uwe Mayer (merkosh_at_hadiko.de)
Date: 01/28/05
- Next message: Uwe Mayer: "Re: example needed: sip + Qt"
- Previous message: Dfenestr8: "An mysql-python tutorial?"
- Maybe in reply to: Uwe Mayer: "example needed: sip + Qt"
- Next in thread: Uwe Mayer: "Re: example needed: sip + Qt"
- Reply: Uwe Mayer: "Re: example needed: sip + Qt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "Phil Thompson" <phil@riverbankcomputing.co.uk> Date: Fri, 28 Jan 2005 23:18:06 +0100
On Friday 28 January 2005 14:47 pm, Phil Thompson wrote:
> > The QLabel example in the SIP reference manual yields syntax errors for
> > me.
>
> What syntax errors? If there is a documentation bug then I'll fix it.
I'll come to that a little later, that happened in the simple c++ word
example.
I am currently fiddling around with the QLabel example. I copied the example
and tried it out. First problem was that the generated makefile does not
attempt to compile the original hello.cpp sources.
So I wrote a configure script and a Makefile.am for that.
It was not clear to me what type of archive or object was needed, so I first
tried creating a normal object file, then libtool archives and then normal
archives. It turned out I needed a normal archive an the library search path
has to be extended to include the current directory (-L.), i.e. where the
libhello.a lies.
My only way of doing so was edditing the Makefile generated by configure.py.
Is there a way of telling that to configure.py?
So now the hello.cpp example compiles. I fire up python:
>>> import hello
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: ./hello.so: undefined symbol: _ZTV5Hello
$ c++filt _ZTV5Hello
vtable for Hello
The compilation did not give any warnings or error messages. Any ideas?
Thanks
Uwe
-- It would seem that evil retreats when forcibly confronted. -- Yarnek of Excalbia, "The Savage Curtain", stardate 5906.5
- application/pgp-signature attachment: stored
- Next message: Uwe Mayer: "Re: example needed: sip + Qt"
- Previous message: Dfenestr8: "An mysql-python tutorial?"
- Maybe in reply to: Uwe Mayer: "example needed: sip + Qt"
- Next in thread: Uwe Mayer: "Re: example needed: sip + Qt"
- Reply: Uwe Mayer: "Re: example needed: sip + Qt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|