This looks like you have not properly preprocessed your
C++ file, QT massages your raw C++ code and generates
further C++ code through the "moc" compiler. Any class you
derived from a QT-Object requires this step.
You cannot just load a bunch of C++ files into VC++ and
get it to work, you have to do something like:
qmake -project
qmake -tp vc ( generates a .dsp file for VC++)
where qmake is run in the directory of your sources. The first
step creates a QT-project, the second translate the ".pro" file
into a VC++ project which you can run. You will have to do
this every time you add new C++ files which define QT-widgets.
Or, figure out how to setup VC++ to do this.
dave
"hasadh" <> wrote in message
news: om...
> Thanks for your info. I have posted in QT forum.
>
>
>
> Victor Bazarov <> wrote in message
news:<TW6Qc.437$ erio.net>...
> > hasadh wrote:
> > > I am building an application over QT. I loaded my files to a VC++
> > > console application project.
> > > While trying to compile my classes, I got the following set for
> > > expcetion for all QT related classes. has anybody faced the same
> > > issue? Plz help me out
> >
> > Unresolved external errors usually appear due to one of two reasons:
> > either you used a library function/object but didn't supply the
> > library to the linker, or you declared a function yourself, used it,
> > and never defined it.
> >
> > Which of the two situations is applicable in your case, I don't know.
> > Try contacting Qt online forum (on TrollTech's web site).
> >
> > >
> > >
> > > QT version: 3.2.3
> > > OS : Windows 2000
> > >
> > > Exception trace,
> > > --------------------------------------------------------------
> > > Linking...
> > > addviewdialog.obj : error LNK2001: unresolved external symbol "public:
> > > virtual bool __thiscall AddViewDialog::qt_property(int,int,class
> > > QVariant *)" (?qt_property@AddViewDialog@@UAE_NHHPAVQVariant@@@ Z)
> > [...]
> >
> > V
|