sas writes:
> HI. When I was trying to include the "custon.hh" header file, I got some
> error messages
> like this.....
>
> gcc -lsqlplus -I/usr/include -I/usr/include/mysql -L/usr/lib -o test3
> test3.cc
> In file included from /usr/include/custom.hh:71,
> from test3.cc:5:
> /usr/include/custom-macros.hh:8299:16: warning: nothing can be pasted
> after this token
> /usr/include/custom-macros.hh:8354:5: warning: nothing can be pasted
> after this token
> /usr/include/custom-macros.hh:8371:5: warning: nothing can be pasted
> after this token
> /usr/include/custom-macros.hh:8389:5: warning: nothing can be pasted
> after this token
> /usr/include/custom-macros.hh:8427:50: warning: nothing can be pasted
> after this token
> ( . . . . . . and these messages repeated many many times)
> test3.cc:13:26: warning: pasting would not give a valid preprocessing
> token
> test3.cc:13:26: warning: pasting would not give a valid preprocessing
> token
> test3.cc:13:26: warning: pasting would not give a valid preprocessing
> token
> .(......well and these messages also repeated many times)
>
> /tmp/ccRsci15.o: In function `mysql_ColData<const_string>::operator
> int(void) const':
> /tmp/ccRsci15.o(.gnu.linkonce.t.__opi__Ct13mysql_ColData1Z12const_string+0x10):
> undefined reference to `int mysql_ColData<const_string>::conv<int>(int)
> const'
> /tmp/ccRsci15.o: In function `mysql_ColData<const_string>::operator
> double(void)
>
>const':/tmp/ccRsci15.o(.gnu.linkonce.t.__opd__Ct13mysql_ColData1Z12const_string+0x12):
> undefined reference to `double
> mysql_ColData<const_string>::conv<double>(double) const'
> collect2: ld returned 1 exit status
> make: *** [test3] Error 1
>
> Should I always use gcc version 2.95.2? Does it work on gcc 2.96?
> I think I have linked the library's directory.....
> Can you give me some hints? Thanks a lot :)
>
>
Hi!
Yes, please use gcc 2.95.2.
Regards,
Sinisa
____ __ _____ _____ ___ == MySQL AB
/*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic
/*/ /*/ /*/ \*\_ |*| |*||*| mailto:[EMAIL PROTECTED]
/*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaca, Cyprus
/*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____
^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
/*/ \*\ Developers Team
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php