List:MySQL++« Previous MessageNext Message »
From:don thompson Date:April 7 2005 9:24pm
Subject:sql_create in header
View as plain text  
I have a class csdata which uses sql_create_20(tshares,...  , and would 
like to define 'tshares row' as a member of this class.  Class ctran 
contains members of class csdata, so it includes its header file 
(csdata.h).  Below are the errors.
Is it possible to include this into a header file?  How? My header files 
have the standard :
#ifndef __csdata_hh__
#define __csdata_hh__
I'm sure this is more of a c++ question, but using these SSQLS 
structures is central to effectively using mysql++, and I'm stuck.
thanks, Don

gcc compile errors:
In file included from ctran.h:6,
                 from cldata.h:7,
                 from cldata.cpp:3:
<...sql_create_20... is on line 13 of csdata.h:>
csdata.h:13: error: syntax error before `*' token
csdata.h:13: error: type specifier omitted for parameter `cchar'
csdata.h:13: error: parse error before `*' token
csdata.h:13: error: missing ';' before right brace
... lots of errors like above...
csdata.h:13: error: `tshares' is not a template type
csdata.h:13: error: definition of `struct tshares' inside template parameter

auto_incrementJoachim Person14 Mar
  • Re: auto_incrementChris Frey14 Mar
    • Re: auto_incrementEarl Miles14 Mar
      • Re: auto_incrementChris Frey15 Mar
        • sql_create in headerdon thompson7 Apr
          • Re: sql_create in headerWarren Young8 Apr
            • Re: sql_create in headerdon thompson8 Apr
          • Re: sql_create in headerWarren Young9 Apr
  • Re: auto_incrementWarren Young15 Mar
    • Re: auto_incrementWarren Young15 Mar