probine
14th December 2006, 20:10
I just want to use the variables given in the command line. This is the code:
#include <QCoreApplication>
#include <iostream>
#include "server.h"
using namespace std;
Server::Server(){
cout << "InfoSpeed server beta 0.9\n";
QString listenIp = QCoreApplication::arguments().at(1);
}
Server::~Server(){
}
This simple code gives me this error:
server.cpp: In constructor `Server::Server()':
server.cpp:18: error: invalid use of undefined type `struct QStringList'
E:/qt/include/QtCore/../../src/corelib/tools/qstring.h:64: error: forward declaration of `struct QStringList'
What is wrong ?
#include <QCoreApplication>
#include <iostream>
#include "server.h"
using namespace std;
Server::Server(){
cout << "InfoSpeed server beta 0.9\n";
QString listenIp = QCoreApplication::arguments().at(1);
}
Server::~Server(){
}
This simple code gives me this error:
server.cpp: In constructor `Server::Server()':
server.cpp:18: error: invalid use of undefined type `struct QStringList'
E:/qt/include/QtCore/../../src/corelib/tools/qstring.h:64: error: forward declaration of `struct QStringList'
What is wrong ?