Go to the previous open issue
Go to the previous issue (open or closed)
Please log in to bookmark issues
icon_project.png sqlite3cc / Open Bug report #3 compilation fails with older compilers because of a protected constructor in row.h
Go to the next issue (open or closed)
Go to the next open issue
Issue basics
  • Type of issue
    Bug report
  • Targetted for
    Not determined
  • Status
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
  • Resolution
    Not determined
  • Reproducability
  • Severity
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
I get the following error when trying to build in Linux SuSE (customized) environment:

-- start quote --
libtool: compile: mk7i-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT query.lo -MD -MP -MF .deps/query.Tpo -c -fPIC -DPIC -o .libs/query.o In constructor 'sqlite::query::iterator::iterator(sqlite::query&, bool)':
../include/sqlite3cc/row.h:74: error: 'sqlite::row::row()' is protected error: within this context
make[2]: *** [query.lo] Error 1
make[2]: Leaving directory `/home/mk7/CxxProf-master/sqlite3cc-0.1.1/src'
-- end quote --

Checking in the source code, it DOES appear to be a genuine C++ error. For the argument's sake, I modified "protected" into "public" in row.h and tried again and this time the build was successful.

I'm trying to build CxxProf package, that uses Sqlite2cc in its implementation.
Steps to reproduce this issue
try building on Linux. I'm using gcc 4.0.2. Not sure if that may be the problem. I'm not a great expert on C++, so I don't know if you declare some class as a friend class, that it would automatically apply to all classes declared within the friend class.

Ok, now I tried compiling with gcc 4.8.2 and it builds fine. So, it's a compiler limitation. Maybe just too exotic.
Todos (0 / 0)
There are no comments
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif