Problems with g++
Manuel Perera RodrÃÂguez
mperera@tcpsi.es
Tue Jul 18 02:39:00 GMT 2000
ÃÂ
Hello:
ÃÂ
IÃÂ need to know how compile a c++ program that
use MQSeries library. We use gcc compiler (2.95.2).
ÃÂ
We use the next flags:
ÃÂ
-libg++ -limqb23ss -limqc23ss -lmqic -lnsl
-lsocket
ÃÂ
This problem is caused by the use of operators overloading?.
ÃÂ
$ gmake all /bin/rm -f *.o gmake
"LIBDIR=./nodebug" "EXEDIR=./nodebug"
\ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ "LIBS=-limqb23ss -limqc23ss
-lmqic -lnsl -lsocket" "CFLAGS=-I./include -I/usr/local/ossasn1/include "
\ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ "EXT=_dbg"
all_ussdx gmake[1]: Entering directory
`/export/home/mperera/MovilPago' g++ -I./include
-I/usr/local/ossasn1/includeÃÂ ÃÂ ÃÂ -c USSD.c -o USSD.o In file
included from
/usr/include/imqitm.hpp:23, ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
from
/usr/include/imqbin.hpp:23, ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
from
/usr/include/imqi.hpp:23, ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
from USSD.c:14: /usr/include/imqerr.hpp:50: parse error before
`&' /usr/include/imqerr.hpp:50: `ImqErr::operator =(...)' must take
exactly one argument /usr/include/imqerr.hpp:54: confused by earlier errors,
bailing out gmake[1]: *** [USSD.o] Error 1 gmake[1]: Leaving
directory `/export/home/mperera/MovilPago' gmake: *** [all_nodebug] Error
2
ÃÂ
Thanks in advanced!
ÃÂ
Manuel Perera RodrÃÂguez Redes y
Comunicaciones TCP Sistemas e Ingenieria c/ Fernández Caro, 7, 4ê
Planta Madrid (Spain)
ÃÂ
e-mail: mperera@tcpsi.es http://www.tcpsi.es
ÃÂ
ÃÂ
More information about the Gcc
mailing list