Hi Vadim- Here is my output. I tried to neaten up my include code and I put in very basic debugging. It never gets past the connect string with the service, username, and password. I can connect in isql.exe in windows 10 fine. I connect there with connect employee username sysdba password mypasswd; I also tried running it without the alias and used a full path and prepended it with localhost in both isql and my .cpp file. It works in isql but not in .cpp. I am at my wits end.
I am not sure what I did wrong! Thanks robo-loki :-) c:\upp\MyApps\socitest>cl.exe /EHsc socitest.cpp /Ic:\MYAPPS\firebird\firebird_3_0\include /IC:\soci-4.0.2\include\soci /IC:\soci-4.0.2\include\soci\firebird /IC:\soci-4.0.2\build\include\soci /Ic:\soci-4.0.2\include /IC:\soci-4.0.2\include\private\firebird /Ic:\soci-4.0.2\include\private @liblist.txt Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29914 for x64 Copyright (C) Microsoft Corporation. All rights reserved. cl soci_firebird_4_0.lib fbclient_ms.lib soci_core_4_0.lib socitest.cpp Microsoft (R) Incremental Linker Version 14.28.29914.0 Copyright (C) Microsoft Corporation. All rights reserved. /out:socitest.exe socitest.obj soci_firebird_4_0.lib fbclient_ms.lib soci_core_4_0.lib c:\upp\MyApps\socitest>socitest.exe 1 c:\upp\MyApps\socitest> #include "soci.h" #include "soci-firebird.h" #include "soci-backend.h" #include "common.h" #include "soci-compiler.h" #include "soci-config.h" #include "error-firebird.h" #include <iostream> #include <istream> #include <ostream> #include <string> #include <exception> using namespace soci; using namespace std; backend_factory const & backEnd = *factory_firebird(); int main() { int count2=0; try { cout << "1"; soci::session sql(backEnd,"service=c:/MYAPPS/firebird/firebird_3_0/examples/empbuild/EMPLOYEE.fdb user=sysdba password=mypasswd"); cout << "2"; sql << "select count(*) from employee", into(count2); } catch (soci_error const &e) { cerr << "Error: " << e.what() << '\n'; } return 0; }
_______________________________________________ soci-users mailing list soci-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/soci-users