I got the follwing error....while I build my program...I am using dev c++ v 4.9.9.2..console application.....
Compiler: Defa..lt compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe start.o -o "Connection.exe" -L"C:/Dev-Cpp/lib" ../SQLAPI/lib/libsqlapi.a ../SQLAPI/lib/libsqlapid.a ../SQLAPI/lib/libsqlapiddll.a ../SQLAPI/lib/libsqlapidll.a ../SQLAPI/lib/libsqlapiu.a ../SQLAPI/lib/libsqlapiud.a ../SQLAPI/lib/libsqlapiuddll.a ../SQLAPI/lib/libsqlapiudll.a ../SQLAPI/lib/sqlapi.lib ../SQLAPI/lib/sqlapib.lib ../SQLAPI/lib/sqlapibd.lib ../SQLAPI/lib/sqlapibs.lib ../SQLAPI/lib/sqlapibsd.lib ../SQLAPI/lib/sqlapibu.lib ../SQLAPI/lib/sqlapibud.lib ../SQLAPI/lib/sqlapibus.lib ../SQLAPI/lib/sqlapibusd.lib ../SQLAPI/lib/sqlapid.lib ../SQLAPI/lib/sqlapis.lib ../SQLAPI/lib/sqlapisd.lib ../SQLAPI/lib/sqlapiu.lib ../SQLAPI/lib/sqlapiud.lib ../SQLAPI/lib/sqlapius.lib ../SQLAPI/lib/sqlapiusd.lib
../SQLAPI/lib/sqlapib.lib: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make.exe: *** [Connection.exe] Error 1
Execution
This s my coding.....Pls give me the solution urgent..
#include <stdio.h> // for printf
#include <sqlapi.h>
// main SQLAPI++ header
//#import "C:\Program Files\Common Files\System\MSMAPI\1033\libsqlapi.a"
//void init();
//SAConnection()//Initialize SAConnection Class
//using namespace std;
//void SAConnection()
SAConnection con; // Creates the Object
void setClient(SAClient_t eSAClient);
void Connect( const SAString &sDBString , const SAString &sUserID , const SAString &sPassword )
throw (SAException);
// using namespace std;
int main(int argc, char* argv[])
{
try
{
// con.setOption( "UseAPI" ) = "DB-Library";
con.setClient(SA_SQLServer_Client);
con.Connect("sample","sa","frontal1*");
// con.setOption("SQLDialect")="1";
printf("We are connected!\n");
con.Disconnect();
printf("We are not connected!\n");
}
catch(SAException &x)
{
try
{
con.Rollback();
}
catch(SAException &)
{
}
printf("%s\n", (const char*)x.ErrText());
}
return 0;
}