Thank you for your help. That all makes since to me. However, the following code should be acceptable right?
Qt Code:
  1. int test()
  2. {
  3. int argc = 1;
  4. char *arg[] = {"test"};
  5. QApplication app(argc, argv);
  6. QPushButton quit("Quit");
  7. quit.resize(75, 30);
  8. quit.setFont(QFont("Times", 18, QFont::Bold));
  9. QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));
  10. quit.show();
  11. return app.exec();
  12. }
To copy to clipboard, switch view to plain text mode 
I tried Qt Creator and this code did compile. However, when I run the project with Visual Studio (converting with qmake -t vclib), I receive the same linking errors. Another interesting discover is that if I point Qt Creator to the Qt files it came with, a .dll is produced. If I point it to the Qt files I compiled I only get a .lib file. Why is that? In any case I really need to be able to compile with Visual Studio. I have also discovered that a the above function will compile with Visual Studio if I make the function static. Naturally this also will not do. Any more ideas?