Re: example needed: sip + Qt

From: Uwe Mayer (merkosh_at_hadiko.de)
Date: 01/28/05


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




Relevant Pages

  • Re: Syntax errors in somobj.h
    ... I can't seem to compile successfully. ... My first attempt at compiling CAR also fails but in a slightly ... My build does not find any syntax errors in somobj.h. ... My build fails with a failure in RC.EXE. ...
    (comp.os.os2.programmer.misc)
  • Re: constructor problem
    ... > i am having a problem with costructors ... Unfortunately, the code that you posted is incomplete, and doesn't ... compile because it's riddled with syntax errors. ...
    (comp.lang.java.help)
  • SNMPing
    ... questions about compiling MIB's on Windows Server 2003 (even 2000 will ... do) and using traps for alert notification in MOM 2005. ... to compile them. ... there are syntax errors ...
    (microsoft.public.win2000.networking)
  • SNMPing
    ... MOM, but is more network, WMI and OS oriented. ... to compile them. ... SMI2SMIR adds objects to the namespace ... there are syntax errors ...
    (microsoft.public.win32.programmer.wmi)