Hi,

I need to compile a program (dnaToProtein.cpp) for a project that I am working on. (I did not write the program but downloaded it off the web.) The program is written in C++ and uses the Nokia Qt libraries. I have downloaded and installed the Qt SDK for Linux/X11 32-bit onto my Ubuntu (9.10; 32-bit) Linux machine. However, I am unable to compile the program. I have tried both the following:
g++ dnaToProtein.cpp
and
g++ -L/opt/qtsdk-2010.02/qt/include/QtCore dnaToProtein.cpp
(/opt/qtsdk-2010.02/qt/include/QtCore is where the installer placed QCoreApplication, etc.)

Error messages are listed below. Note that program has the following #include statements:
#include <QCoreApplication>
#include <QString>
#include <QStringList>
#include <QTextStream>
#include <QFile>
#include <iostream>
#include "dnaToProtein.h"


Any help would be greatly appreciated.

Error Messages:
dnaToProtein.cpp:20:28: error: QCoreApplication: No such file or directory
dnaToProtein.cpp:21:19: error: QString: No such file or directory
dnaToProtein.cpp:22:23: error: QStringList: No such file or directory
dnaToProtein.cpp:23:23: error: QTextStream: No such file or directory
dnaToProtein.cpp:24:17: error: QFile: No such file or directory
In file included from dnaToProtein.cpp:26:
dnaToProtein.h:23: error: ‘QString’ does not name a type
dnaToProtein.h:27: error: ‘QString’ does not name a type
dnaToProtein.h:31: error: ‘QChar’ does not name a type
dnaToProtein.h:32: error: ‘QString’ was not declared in this scope
dnaToProtein.h:33: error: ‘QString’ was not declared in this scope
dnaToProtein.h:35: error: ‘QFile’ has not been declared
dnaToProtein.h:36: error: ‘QFile’ has not been declared
dnaToProtein.h:37: error: ‘QString’ does not name a type
dnaToProtein.h:39: error: ‘QString’ does not name a type
dnaToProtein.h:40: error: ‘QString’ was not declared in this scope
dnaToProtein.h:41: error: ‘QChar’ was not declared in this scope
dnaToProtein.h:42: error: ‘QString’ does not name a type
dnaToProtein.h:43: error: ‘QString’ does not name a type
dnaToProtein.h:45: error: variable or field ‘writeLogfile’ declared void
dnaToProtein.h:45: error: ‘QString’ was not declared in this scope
dnaToProtein.h:47: error: ‘QString’ does not name a type
dnaToProtein.h:77: error: expected constructor, destructor, or type conversion before ‘<’ token
dnaToProtein.h:78: error: expected constructor, destructor, or type conversion before ‘<’ token
dnaToProtein.h:79: error: expected constructor, destructor, or type conversion before ‘<’ token
dnaToProtein.h:80: error: expected constructor, destructor, or type conversion before ‘<’ token
dnaToProtein.h:81: error: expected constructor, destructor, or type conversion before ‘<’ token
dnaToProtein.h:82: error: expected constructor, destructor, or type conversion before ‘<’ token
dnaToProtein.cpp:29: error: ‘QChar’ does not name a type
dnaToProtein.cpp:58: error: redefinition of ‘bool isStartCodon’
dnaToProtein.h:32: error: ‘bool isStartCodon’ previously defined here
dnaToProtein.cpp:58: error: ‘QString’ was not declared in this scope
dnaToProtein.cpp:65: error: redefinition of ‘bool isStopCodon’
dnaToProtein.h:33: error: ‘bool isStopCodon’ previously defined here
dnaToProtein.cpp:65: error: ‘QString’ was not declared in this scope
dnaToProtein.cpp:72: error: redefinition of ‘bool isBaseCharacter’
dnaToProtein.h:41: error: ‘bool isBaseCharacter’ previously defined here
dnaToProtein.cpp:72: error: ‘QChar’ was not declared in this scope