On Mon, Jul 21, 2008 at 03:15:09PM -0400, Bennett Helm wrote:

> I'm not setting things up right. I run:
> 
> g++ -o test test.cpp -Wall -I
> /Users/bennett/lyx/qt-4.4-install/include/QtCore/ -L /usr/lib64 -lQtCore
> 
> and get many instances of:
> 
> In file included from
> /Users/bennett/lyx/qt-4.4-install/include/QtCore/QDateTime:1,
>                  from test.cpp:1:
> /Users/bennett/lyx/qt-4.4-install/include/QtCore/qdatetime.h:47:28: error:
> QtCore/qstring.h: No such file or directory
> /Users/bennett/lyx/qt-4.4-install/include/QtCore/qdatetime.h:48:31: error:
> QtCore/qnamespace.h: No such file or directory
> 
> (That is the right directory for QtCore.) I even tried setting QT4DIR
> explicitly, but that didn't affect it.
> 
> What am I doing wrong?

Try:

g++ -o test test.cpp -Wall -I/Users/bennett/lyx/qt-4.4-install/include \
-I/Users/bennett/lyx/qt-4.4-install/include/QtCore -L/usr/lib64 -lQtCore

and I suspect that you also have to replace -L/usr/lib64 by
-L/Users/bennett/lyx/qt-4.4-install/lib

-- 
Enrico

Reply via email to