It's probably really obvious to the experts, but I've been working for hours and am worn out from my other job...

Getting a "symbol(s) not found" and "collect2: Id returned 1 exit status" error when I try to open a SQLite DB...Can I even do what I'm trying to do?



*.pro file

#-------------------------------------------------
#
# Project created by QtCreator 2011-01-23T12:39:07
#
#-------------------------------------------------

QT += core gui
QT += sql

TARGET = STARIS
TEMPLATE = app


SOURCES += main.cpp\
mainwindow.cpp

HEADERS += mainwindow.h

FORMS += mainwindow.ui



main.cpp

#include <QtGui/QApplication>
#include "mainwindow.h"
#include <sqlite3.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <syslog.h>

int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();

int rc;
sqlite3 *db;

rc=sqlite3_open("/Users/test.db", &db);

return a.exec();
}