PDA

View Full Version : Using Example Code - Network



scotland0208
17th November 2010, 23:58
I am trying to use the download manager example code
http://doc.qt.nokia.com/4.7/network-downloadmanager.html
Alone it compiles fine and runs, but I would like to use the download manager and the text progress bar in an application of my own.

When I include them in my project and try to compile, I get this error

undefined reference to '_imp__ZN21QNetworkAccessManagerC1EP7QObject'

and 3 other similar undefined references

I'm not sure what I'm doing wrong. I am using the latest QtCreator and the latest SDK for windows

ChrisW67
18th November 2010, 01:30
The library search path has not been set properly. Look at the QT variable in your PRO file and compare to the example.

scotland0208
18th November 2010, 02:18
I was missing the QT += network
I wasted soo much time trying to figure that out. ah well, thanks a lot