This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C++ Link Errors

I am trying to build the Linux UML modeler with cygwin. Everything works
until I link. Libtool tries adding -ldl to the g++ linking call.  If I enter
g++ command by hand without the -ldl everything is fine, except I get a
number of C++ related linking errors.

My command line is:

g++ -Wl,--enable-auto-import -ftemplate-depth-99 -O2 -o uml.exe
messagecopy.o widgetassoccontainer.o assoccopy.o cutcopypaste.o
diagramprintpage.o classoptionspage.o worktoolbar.o usecasewidget.o
usecase.o umlwidget.o umlview.o umlobject.o umldoc.o uml_meta_unload.o uml.o
selectopdlg.o parmpropdlg.o operation.o objectwidget.o notewidget.o
notemultilineedit.o mylistviewitem.o mylistview.o messagewidget.o main.o
listpopupmenu.o infowidget.o floatingtext.o conceptwidget.o concept.o
classpropdlg.o classopspage.o classgenpage.o classattpage.o attribute.o
assocpropdlg.o assocpage.o association.o actorwidget.o actor.o
assocpage.moc.o classgenpage.moc.o umlview.moc.o umlobject.moc.o
worktoolbar.moc.o mylistview.moc.o uml.moc.o classpropdlg.moc.o
operation.moc.o umldoc.moc.o umlwidget.moc.o classattpage.moc.o
classoptionspage.moc.o diagramprintpage.moc.o association.moc.o
classopspage.moc.o messagewidget.moc.o selectopdlg.moc.o uml_meta_unload.o
-L/usr/X11R6/lib -L/usr/local/lib/qt2/lib -L/opt/kde2/lib
/opt/kde2/lib/libkhtml.dll.a /opt/kde2/lib/libkjava.dll.a
/opt/kde2/lib/libkdeprint.dll.a /opt/kde2/lib/libkparts.dll.a
/opt/kde2/lib/libkfile.dll.a /opt/kde2/lib/libksycoca.dll.a
/opt/kde2/lib/libkio.dll.a /opt/kde2/lib/libkdesu.dll.a -lutil
/opt/kde2/lib/libkssl.dll.a /opt/kde2/lib/libkdeui.dll.a
/opt/kde2/lib/libkdecore.dll.a /opt/kde2/lib/libltdl.dll.a
/opt/kde2/lib/libDCOP.dll.a /opt/kde2/lib/libkICE.dll.a -lipc -lSM -lICE
/usr/local/lib/libstdc++.a /usr/lib/libpcre.dll.a
/usr/lib/libpcreposix.dll.a -lqt -lpng -lz -ljpeg -lXext -lX11 -Wl,--rpath
-Wl,/opt/kde2/lib -Wl,--rpath -Wl,/opt/kde2/lib -Wl,--rpath
-Wl,/usr/local/lib/qt2/lib -Wl,--rpath -Wl,/usr/X11R6/lib

After a number of auto-import warnings, which I expect, like:
Warning: resolving QString::shared_null   by linking to
__imp___7QString$shared_null (auto-import)

I receive a series of messages, which I don't expect, like:
umlview.o(.text+0x34f5):umlview.cpp: undefined reference to `cerr'
umlview.o(.text+0x34fa):umlview.cpp: undefined reference to
`ostream::_ls(char const *)'
umlview.o(.text+0x3506):umlview.cpp: undefined reference to `endl(ostream &)

Any ideas?

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]