From: Chris Trown Date: March 11 1999 2:26am Subject: Compiling mysql on HP List-Archive: http://lists.mysql.com/mysql/29 Message-Id: <19990310182632.A28757@cheops.net.csuchico.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello again. My success at getting mysql Perl modules to compile is 0. I've tried gcc 2.7.2.3, gcc 2.8.1 and egcs 1.1.1. I've recompiled perl so many times, I know the questions by heart. I can't get it to pass it's tests. I can't past the "Unresolved symbol: __udivdi3" problem. Monty's suggestion didn't help. Past readers will remember that using HP's CC compiler gets us nowhere. Using HP's compiler, it bombs thus: CC: "./../include/global.h", line 513: warning: "bool" is a future reserved word (215) CC: "sql_string.h", line 30: warning: size not used (117) CC: "sql_string.h", line 141: sorry, not implemented: cannot expand inline function bool String::append(char ) with statement after "return" (2070) Here is the piece of code: inline bool append(char chr) { if (str_length < Alloced_length) { Ptr[str_length++]=chr; } else { if (realloc(str_length+1)) return 1; Ptr[str_length++]=chr; } return 0; } I am not a C++ programmer. Is there any way that this can be rewritten to make it more acceptable for the compiler? Anyone, please? Chris... -- PGP fingerprint: 063FCE320681C336 78C164FC9B2F91EA