On Fri, 03 Feb 2012 15:30:47 +0100
hermann <brummer-(a)web.de> wrote:
Am Freitag, den 03.02.2012, 15:17 +0100 schrieb Renato
Budinich:
Forgot to send to list also:
On Fri, 3 Feb 2012 14:48:37 +0100
Nick Copeland <nickycopeland(a)hotmail.com> wrote:
You probably need something like -I/usr/lib/faust which will give
you
the final path of /usr/lib/faust/gui/FUI.h, you
might also want to
try -I. if the headerfiles are also in $CWD/gui Either way, I am
not certain you would find it with -L/-l (upper/lower case)
sinceit
looks
like an include file rather than a library.
ok, it seems it gets past that but I get another error:
$ g++ -I/usr/lib/faust -o simple simple.cpp
In file included from simple.cpp:48:0:
/usr/lib/faust/gui/faustqt.h:34:24: fatal error: QApplication: No
such file or directory
compilation terminated.
$ locate QApplication
/usr/include/qt4/QtGui/QApplication
-I/usr/include/qt4/QtGui/
ok, so I ended up with this:
$ g++ -I/usr/lib/faust -I/usr/include/QtGui -I/usr/include/QtCore -o simple simple.cpp
In file included from
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:62:0,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/algorithm:63,
from /usr/include/QtCore/qglobal.h:68,
from /usr/include/QtCore/qnamespace.h:45,
from /usr/include/QtCore/qobjectdefs.h:45,
from /usr/include/QtCore/qobject.h:47,
from /usr/include/QtCore/qcoreapplication.h:45,
from /usr/include/QtGui/qapplication.h:45,
from /usr/include/QtGui/QApplication:1,
from /usr/lib/faust/gui/faustqt.h:34,
from simple.cpp:48:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:358:41:
error: macro "max" passed 3 arguments, but takes just 2
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:369:41:
error: macro "min" passed 3 arguments, but takes just 2
In file included from
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:62:0,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/algorithm:63,
from /usr/include/QtCore/qglobal.h:68,
from /usr/include/QtCore/qnamespace.h:45,
from /usr/include/QtCore/qobjectdefs.h:45,
from /usr/include/QtCore/qobject.h:47,
from /usr/include/QtCore/qcoreapplication.h:45,
from /usr/include/QtGui/qapplication.h:45,
from /usr/include/QtGui/QApplication:1,
from /usr/lib/faust/gui/faustqt.h:34,
from simple.cpp:48:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5:
error: expected unqualified-id before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5:
error: expected ‘)’ before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5:
error: expected ‘)’ before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5:
error: expected ‘)’ before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:354:5:
error: expected initializer before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:358:5:
error: template declaration of ‘const _Tp& std::max’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5:
error: expected unqualified-id before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5:
error: expected ‘)’ before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5:
error: expected ‘)’ before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5:
error: expected ‘)’ before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:365:5:
error: expected initializer before ‘const’
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/algorithmfwd.h:369:5:
error: template declaration of ‘const _Tp& std::min’
In file included from
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/algorithm:63:0,
from /usr/include/QtCore/qglobal.h:68,
from /usr/include/QtCore/qnamespace.h:45,
from /usr/include/QtCore/qobjectdefs.h:45,
from /usr/include/QtCore/qobject.h:47,
from /usr/include/QtCore/qcoreapplication.h:45,
from /usr/include/QtGui/qapplication.h:45,
from /usr/include/QtGui/QApplication:1,
from /usr/lib/faust/gui/faustqt.h:34,
from simple.cpp:48:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h: In
function ‘void std::__merge_sort_loop(_RandomAccessIterator1, _RandomAccessIterator1,
_RandomAccessIterator2, _Distance)’:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:3285:26:
error: expected unqualified-id before ‘(’ token
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h: In
function ‘void std::__merge_sort_loop(_RandomAccessIterator1, _RandomAccessIterator1,
_RandomAccessIterator2, _Distance, _Compare)’:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/stl_algo.h:3308:26:
error: expected unqualified-id before ‘(’ token
BTW simple.dsp consists of:
process = _,_*2;