Re: QT1.42 Errors....

1999-02-18 Thread Peter Berlau
On Wed, Feb 17, 1999 at 03:42:51PM -0800, Brant Wells wrote:
> Howdy Y'all:
> 
> I'm trying to write some QT apps, just really toying around with C++, 
> but when I try to compile ANY of the QT apps, using the command line:
> 
> g++ -I/usr/local/qt/include -L/usr/X11R6 -lqt filename.CC
> 
Hi Brant,
You must set the environment for Qt like:

export TMAKEPATH=/usr/local/tmake/lib/linux-g++
PATH=$PATH:/usr/local/tmake/bin
export PATH

QTDIR=/usr/local/lib/qt
PATH=$QTDIR/bin:$PATH
if [ $MANPATH ]
then
MANPATH=$QTDIR/man:$MANPATH
else
MANPATH=$QTDIR/man
fi
if [ $LD_LIBRARY_PATH ]
then
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$QTDIR/lib
fi
if [ $CPLUS_INCLUDE_PATH ]
then 
CPLUS_INCLUDE_PATH=$QTDIR/include:$CPLUS_INCLUDE_PATH
else
CPLUS_INCLUDE_PATH=$QTDIR/include
fi
 
export QTDIR PATH MANPATH LD_LIBRARY_PATH LIBRARY_PATH
export CPLUS_INCLUDE_PATH
if [ $KDEDIR ]
then
LD_LIBRARY_PATH=/opt/kde/lib:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH
LIBRARY_PATH=$LD_LIBRARY_PATH
export LIBRARY_PATH
export MOC=$QTDIR/bin/moc
export MOC_PATH=$QTDIR/bin
export PATH=$QTDIR/bin:$PATH

You only must set the TMAKEPATH  if You use tmake,
if not, have a look at tmake, great tool for generating
makefiles, really, wow

Hope this helps

-- 
Peter Berlau 
[EMAIL PROTECTED]


QT1.42 Errors....

1999-02-18 Thread Brant Wells
Howdy Y'all:

I'm trying to write some QT apps, just really toying around with C++, 
but when I try to compile ANY of the QT apps, using the command line:

g++ -I/usr/local/qt/include -L/usr/X11R6 -lqt filename.CC

I get an error message about a whole bunch of undefined references...

Can anyone help me out?

Thanx, 

Brant

__
Get Your Private, Free Email at http://www.hotmail.com


Re: QT1.42 Errors....

1999-02-17 Thread Havoc Pennington

On Wed, 17 Feb 1999, Brant Wells wrote:
> I'm trying to write some QT apps, just really toying around with C++, 
> but when I try to compile ANY of the QT apps, using the command line:
> 
> g++ -I/usr/local/qt/include -L/usr/X11R6 -lqt filename.CC
> 
> I get an error message about a whole bunch of undefined references...
> 

Post the exact error message. First rule of asking for help.

Then people will readily recognize which library the missing symbols are
in.

Havoc



QT1.42 Errors....

1999-02-17 Thread Brant Wells
Howdy Y'all:

I'm trying to write some QT apps, just really toying around with C++, 
but when I try to compile ANY of the QT apps, using the command line:

g++ -I/usr/local/qt/include -L/usr/X11R6 -lqt filename.CC

I get an error message about a whole bunch of undefined references...

Can anyone help me out?

Thanx, 

Brant

__
Get Your Private, Free Email at http://www.hotmail.com