Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Kaustubh Katdare

    @thebigk • May 21, 2013

    bnswe are unable to connect c++ and sql(database) using codeblocks....please guide

    How about explaining the exact problem in detail? We don't know what your code is, what exactly is the problem and we'd end up wasting time asking questions only to understand your problem.

  • bns
    bns

    @bns-p6sPYh • May 21, 2013

    we have followed this link to download the necessary softwares .<a href="https://www.crazyengineers.com/threads/database-connectivity-using-c-c-tutorial.23155">Database connectivity using C/C++ Tutorial!!!</a>

    but we are encountering the following errors while debugging in codeblock.
    ||=== test, Debug ===|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|2|error: SQLAPI.H: No such file or directory|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp||In function 'int main(int, char**)'๐Ÿ˜
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|5|error: 'SAConnection' was not declared in this scope|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|5|error: expected ';' before 'con'|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|12|error: 'con' was not declared in this scope|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|16|error: 'SA_Oracle_Client' was not declared in this scope|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|23|error: expected type-specifier before 'SAException'|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|23|error: expected ')' before '&' token|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|23|error: expected '{' before '&' token|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|23|error: 'x' was not declared in this scope|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|23|error: expected ';' before ')' token|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|41|error: expected '}' at end of input|
    ||=== Build finished: 11 errors, 0 warnings ===|

  • rahul69

    @rahul69-97fAOs • May 22, 2013

    bnsbut we are encountering the following errors while debugging in codeblock.
    ||=== test, Debug ===|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|2|error: SQLAPI.H: No such file or directory|
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp||In function 'int main(int, char**)'๐Ÿ˜
    ...
    ...
    C:\TurboC++\Disk\TurboC3\BIN\test\main.cpp|41|error: expected '}' at end of input|
    ||=== Build finished: 11 errors, 0 warnings ===|

    Apart from some minor mistakes, it seems to me that the linking of the SQLAPI is not done properly, so follow the steps carefully in the link you mentioned, and see if it solves the problem.

  • Vishal Sharma

    @vishal-pysGmK • May 26, 2013

    You will have to download SQLAPI.H and link it to your project.
    But, there is problem. When I used SQLAPI.H, and created an app, that time whenever you start the app, you'll have a message saying "this program uses sqlapi.h register if you don't want to see this n bla bla bla... ๐Ÿ˜› "

    And the registration cost was around 250$
    So, I didn't find it useful!