Needing urgent assistance on my project

Ivica Bukvic ico at fuse.net
Wed Feb 12 04:27:43 GMT 2003


Hi all,

I've been expanding my app by adding a third-party C-based functionality
(my app is C++/Qt). The problem is that I designed a new class (derived
from the QWidget) which includes the .h files from the 3 C-based files.

What happens is that the class is currently fully implemented but there
is no instance created within the main app (I don't know if this may be
a problem). So, when I compile the app, everything compiles just fine
until the final linking of all .o and moc.o files when I get bunch of
errors as follows:
g++ -O2 -O0 -Wall -fno-exceptions -fno-check-new -o rtmix OSC-timetag.o
OSC-client.o htmsocket.o oscevent.o qmidi.o simpleserver.o
clientsocket.o client.o qtabledisplay.o splash.o mathexpr.o
externaltimer.o errorlog.o settings.o ledwindow.o QLED.o metro.o
warning.o TimerEvent.o QLCD.o rtmix.o main.o qtabledisplay.moc.o
rtmix.moc.o externaltimer.moc.o qmidi.moc.o errorlog.moc.o
settings.moc.o client.moc.o oscevent.moc.o clientsocket.moc.o
splash.moc.o QLCD.moc.o warning.moc.o QLED.moc.o simpleserver.moc.o
metro.moc.o ledwindow.moc.o rtmix_meta_unload.o -L/usr/X11R6/lib
-L/usr/lib/qt3/lib -lpthread -lqt-mt -lpng -lz -lm -lXext -lX11 -lresolv
-lSM -lICE -lpthread -lresolv 
oscevent.o: In function `OSCEvent::OSCEvent[not-in-charge](QWidget*,
char const*, unsigned, char*, int)': 
oscevent.o(.text+0x30): undefined reference to
`OSCEvent::bufferForOSCbuf' 
oscevent.o(.text+0x41): undefined reference to
`OSC_initBuffer(OSCbuf_struct*, int, char*)' 
oscevent.o: In function `OSCEvent::OSCEvent[in-charge](QWidget*, char
const*, unsigned, char*, int)': 
oscevent.o(.text+0xae): undefined reference to
`OSCEvent::bufferForOSCbuf' 
oscevent.o(.text+0xbf): undefined reference to
`OSC_initBuffer(OSCbuf_struct*, int, char*)' 
oscevent.o: In function `OSCEvent::~OSCEvent [not-in-charge]()': 
oscevent.o(.text+0x124): undefined reference to `CloseHTMSocket(void*)' 
oscevent.o: In function `OSCEvent::~OSCEvent [in-charge]()': 
oscevent.o(.text+0x17e): undefined reference to `CloseHTMSocket(void*)' 
oscevent.o: In function `OSCEvent::~OSCEvent [in-charge deleting]()': 
oscevent.o(.text+0x1d8): undefined reference to `CloseHTMSocket(void*)' 
oscevent.o: In function `OSCEvent::OpenSocket()': 
oscevent.o(.text+0x23a): undefined reference to `OpenHTMSocket(char*,
int)' 
oscevent.o: In function `OSCEvent::OpenBundle()': 
oscevent.o(.text+0x2d3): undefined reference to `OSCTT_Immediately()' 
oscevent.o(.text+0x2e8): undefined reference to
`OSC_openBundle(OSCbuf_struct*, OSCTimeTag)' 
oscevent.o: In function `OSCEvent::CloseBundle()': 
oscevent.o(.text+0x361): undefined reference to
`OSC_closeBundle(OSCbuf_struct*)' 
oscevent.o: In function `OSCEvent::WriteMessage(char*)': 
oscevent.o(.text+0x3f1): undefined reference to
`OSC_writeAddress(OSCbuf_struct*, char*)' 
oscevent.o(.textgmake[3]: Leaving directory
`/home/ico/Programming/RTMix/RTMix-0.53/rtmix' 
gmake[2]: Leaving directory
`/home/ico/Programming/RTMix/RTMix-0.53/rtmix' 
gmake[1]: Leaving directory `/home/ico/Programming/RTMix/RTMix-0.53' 
+0x44f): undefined reference to `OSC_getPacket(OSCbuf_struct*)' 
oscevent.o(.text+0x462): undefined reference to
`OSC_packetSize(OSCbuf_struct*)' 
oscevent.o(.text+0x474): undefined reference to `SendHTMSocket(void*,
int, void*)' 
oscevent.o(.text+0x4c2): undefined reference to `CloseHTMSocket(void*)' 
collect2: ld returned 1 exit status 
gmake[3]: *** [rtmix] Error 1 
gmake[2]: *** [all-recursive] Error 1 
gmake[1]: *** [all-recursive] Error 1 
gmake: *** [all-recursive-am] Error 2 
*** failed ***

I am pretty sure that something trivial is screwed up, but I have no
idea what. Could someone please help me figure this thing out. Thank you
very much! Sincerely,

P.S. I am cross-posting this on the Kdevelop list since I am using
Kdevelop for my development.

Ivica Ico Bukvic, composer, multimedia sculptor,
programmer, webmaster & computer consultant 
http://meowing.ccm.uc.edu/~ico 
============================
"To be or not to be" - Shakespeare
"To be is to do"     - Socrates
"To do is to be"     - Sartre
"Do be do be do"     - Sinatra
"2b || ! 2b"         - ?
"I am"               - God



-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list