CrazyEngineers
  • Unable to connect c++ and sql(database) using codeblocks

    bns

    Member

    Updated: Oct 25, 2024
    Views: 1.2K
    we are unable to connect c++ and sql(database) using codeblocks....please guide
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Kaustubh Katdare

    AdministratorMay 21, 2013

    bns
    we 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.
    Are you sure? This action cannot be undone.
    Cancel
  • bns

    MemberMay 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 ===|
    Are you sure? This action cannot be undone.
    Cancel
  • rahul69

    MemberMay 22, 2013

    bns
    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|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.
    Are you sure? This action cannot be undone.
    Cancel
  • Vishal Sharma

    MemberMay 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!
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register