In my C++ program, I'd like to display the SQLite3 version. To do so, this is what I have done.

class SQLite3_RDB {
    private:
        sqlite3* db; //!< Data Base
        std::string tmp;
   public:
        SQLite3_RDB(){}
        ~SQLite3_RDB(){sqlite3_close(db); }
        const std::string& getSQLiteVersion();

};

const std::string& SQLite3_RDB::getSQLiteVersion(){
    tmp = sqlite_version();
}

However, as soon as I call the getSQLiteVersion() class member function, I get a "program failure". The gdb reports 'Signal received: SIGSEGV (Segmentation fault)'
What am I doing wrong?

--
ArbolOne.ca
Using Fire Fox and Thunderbird.
ArbolOne is composed of students and volunteers dedicated to providing free 
services to charitable organizations.
ArbolOne on Java Development in progress [ í ]

_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to