Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
Subject: mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Subject: Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
Subject: MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Subject: Re: Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
Subject: Problems compiling MaxDB

Subject: Problems compiling MaxDB

2007-08-10       - By Olav Sandst?

 Back
Reply:     1     2  

I have downloaded the latest version of the sources for MaxDB, version
V76_00_37 and installed the compile tools. When trying to compile
MaxDB on Linux (Redhat 4.0) using gcc version 3.4.5 I get the
following compile error:

cc -DREL30 -DLINUX -DX86_64 -DSAG -DSDB_RELEASE_070600
-I/home/olav/maxdb/linux/V76_00_37/MaxDB_DEV/usr/incl
-I/home/olav/maxdb/linux/V76_00_37/MaxDB_DEV/sys/wrk/incl
-I/home/olav/maxdb/linux/V76_00_37/MaxDB_DEV/sys/wrk/incl/SAPDB -DSYSV
-D_SVID -I/usr/include/ncurses -w -Wall -DBIT64 -fPIC -DDLL -DHAS_NPTL
-DSQLODBC -fno-strict-aliasing -DSAPDB_FAST -D_REENTRANT -O2
-I/home/olav/maxdb/linux/DevTool/incl -c vpa04gc.c
In file included from vpa04gc.c:98:
/home/olav/maxdb/linux/V76_00_37/MaxDB_DEV/usr/incl/livecachetypes.h:43:
error: syntax error before "OmsTypeDouble"

The source code in livecachetypes.h that the compiler complains about
is:

union OmsTypeDouble {
 double d;
 OmsTypeInt8 int8;
 OmsTypeDouble() {d = 0;}      <--- line 43
};

To me this looks like a C++ constructor and I am not surprised that
the C compiler complains about this. The questions is why I get this
error and what to do about it. It is a genuine error in the source
code? Or is there something in my compile environment that is wrong?
E.g. is this file wrongly included or do I use wrong compiler?

BTW Is there a public bug tracking system for MaxDB where I can check
if this problem have been reported earlier?

Thanks,
Olav

--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/maxdb?unsub=mysql@(protected)