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