To clarify my question

Currently i am working on CodeBlocks IDE (C++, Win32). I just start look at 
openDBX. I think I got it installed cause after calling the ./configure I got 
no error and the console finished with 

config.status: executing libtool commands

Now I want to create a small app playing with openDBX. I had a MySQL server 
installed in my PC. I copied the small codes from the website 

#include <opendbx/api>
#include <iostream>

using namespace OpenDBX;

int main( int argc, char* argv[] )
{
    try
    {
        Conn db = Conn( "mysql", "127.0.0.1", "" );
        std::cout << "Initialized connection" << std::endl;
    }
    catch( std::exception &e )
    {
        std::cerr << "Caught exception: " << e.what() << std::endl;
        return 1;
    }

    return 0;
}


then build it and got 5 errors such 

C:\CodeBlocks\OpenDBXTrial\main.cpp|1|error: opendbx/api: No such file or 
directory|
C:\CodeBlocks\OpenDBXTrial\main.cpp|4|error: 'OpenDBX' is not a namespace-name|
C:\CodeBlocks\OpenDBXTrial\main.cpp|4|error: expected namespace-name before ';' 
token|
C:\CodeBlocks\OpenDBXTrial\main.cpp||In function 'int main(int, char**)':|
C:\CodeBlocks\OpenDBXTrial\main.cpp|10|error: 'Conn' was not declared in this 
scope|
C:\CodeBlocks\OpenDBXTrial\main.cpp|10|error: expected ';' before 'db'|
||=== Build finished: 5 errors, 0 warnings ===|


Some one can pls help me ?

Thank you very much




--- On Tue, 8/17/10, Doan Viet Dung <vietdung0...@yahoo.com> wrote:

From: Doan Viet Dung <vietdung0...@yahoo.com>
Subject: [opendbx] openDBX and CodeBlocks
To: libopendbx-devel@lists.sourceforge.net
Date: Tuesday, August 17, 2010, 7:40 PM

Hi all,

I am a newbie with openDBX. Currently, I was sucessfully complied openDBX but I 
got hard to start a simple application with openDBX in CodeBlocks. If someone 
know there exists some tutorals or some hints, pls let me know

Best
VDung



      
-----Inline Attachment Follows-----

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
-----Inline Attachment Follows-----

_______________________________________________
libopendbx-devel mailing list
libopendbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
http://www.linuxnetworks.de/doc/index.php/OpenDBX



      
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
libopendbx-devel mailing list
libopendbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
http://www.linuxnetworks.de/doc/index.php/OpenDBX

Reply via email to