Hello,
I'm running Fink 0.29.15 on a MacBook Pro Snow Leopard. I tried running my
first Qt3 program (Helloworld) and I'm getting the following linker error
"ld: warning: in /sw/lib/libqt-mt.dylib, file was built for i386 which is
not the architecture being linked (x86_64)". What does this mean and how do
I fix it? Why wouldn't Fink have compiled Qt3 properly during install?
Here is the complete output from 'make':
Orion:~/src pgc92$ make
g++-4.2
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
-prebind -o helloworld hello.o -L/sw/lib -L/sw/lib/qt3/lib
-L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
ld: warning: in /sw/lib/libqt-mt.dylib, file was built for i386 which is not
the architecture being linked (x86_64)
Undefined symbols:
"QGList::write(QDataStream&, void*) const", referenced from:
vtable for QGListin hello.o
"QApplication::QApplication(int&, char**)", referenced from:
_main in hello.o
"QGList::~QGList()", referenced from:
vtable for QGListin hello.o
"QString::shared_null", referenced from:
_main in hello.o
_main in hello.o
"QStringData::deleteSelf()", referenced from:
_main in hello.o
_main in hello.o
"QGList::~QGList()", referenced from:
vtable for QGListin hello.o
"typeinfo for QPtrCollection", referenced from:
typeinfo for QGListin hello.o
"QLabel::QLabel(QString const&, QWidget*, char const*, unsigned int)",
referenced from:
_main in hello.o
"QGList::read(QDataStream&, void*&)", referenced from:
vtable for QGListin hello.o
"QGList::compareItems(void*, void*)", referenced from:
vtable for QGListin hello.o
"QPtrCollection::newItem(void*)", referenced from:
vtable for QGListin hello.o
"QApplication::exec()", referenced from:
_main in hello.o
"QApplication::~QApplication()", referenced from:
_main in hello.o
_main in hello.o
"QGList::clear()", referenced from:
vtable for QGListin hello.o
"QString::QString(char const*)", referenced from:
_main in hello.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [helloworld] Error 1
Thank you for your help,
Paul
Paul Cantalupo
Research Specialist/Systems Programmer
University of Pittsburgh
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners