// -*- c++ -*- /* * Jakelib2 - General purpose C++ library * Copyright (C) 2001 Florian Wolff (florian@donuz.de) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Id: Db3Sample.jlc,v 1.3 2002/11/20 17:13:49 florian Exp $ */ #include #pragma javasyntax // #ifdef JAKELIB_WITH_GTK // #include // using namespace jakelib::lang; // int main(int argc, char* argv[]) // { // DB_ENV *env; // int rc; // rc = db_env_create(&env, 0); // System::out.println("db_env_create: " .. rc); // rc = env->open(env, "/home/florian/tmp/db"->latin1(), DB_CREATE, 0); // System::out.println("env->open: " .. rc); // return 0; // } // #else int main(int argc, char* argv[]) { JAKELIB_INIT; jakelib::lang::System::out.println("" .. argv[0] .. ": Berkeley DB3 not available.\n"); return 0; } // #endif