In my Visual Studio solution, I have two different projects of which one is built as a static libraryand the other one as the executable. The ODB related code like creating the database and all are in the library. I linked this library to my executable. But when I debug the executable code, I get the error "unknown database schema" in the call create_schema().I am using SQLite as my database. What am I doing wrong?
ODB C++ - Unknown database schema error
860 views Asked by Jackzz At
1
There are 1 answers
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in DATABASE
- How to add the dynamic new rows from my registration form in my database?
- How to store a date/time in sqlite (or something similar to a date)
- Problem with add new attribute in table with BOTO3 on python
- When an E-R attribute should be perceived as a relationship attribute or as an entity set attribute?
- SQLAlchemy: efficient relationship loading in 3-way many-to-many relationship
- Cannot connect to Postgres Database when running Quarkus Tests with Gitlab ci
- Local or remote database with react-native?
- I want to edit a specific row in database
- How to enter data in mongodb array at specific position such that if there is only 2 data in array and I want to insert at 5, then rest data is null
- Open Web Library
- database login.py and register.py error showing 404 file not found and doesn't work
- SQL71561: SqlComputedColumn: When column selected
- Liquibase as SaaS To Configure Multiple Database as Dynamic
- Updated max input vars but table still shows error
- Spring does not map set of roles
Related Questions in SCHEMA
- Should Organization schema be on every page?
- How to save multiple string inside an array column in MongoDB
- How does Big Query differentiate between a day and month when we upload any CSV or text file?
- Does the language used in schema need to match the HTML lang attribute?
- graphql-java extension type redefine error from version 15
- In SilverStripe/GraphQL 4 how do I get the bulkLoader auto generated schemas to allow has_many and many_many updates?
- How to validate URL param with AJV in Fastify?
- AJV ignores 'required' rule for properties in nested, referenced object
- Form validation with yup - how to strip a field after validating it?
- JSON Schema draft v4 - additional Properties error with anyOf
- FME - Specify schema name in PostgreSQL database writer (ArcSde)
- JSONLD Issue: Works via IP but Fails with Domain/Sub-domain IN next JS 14
- How to drop all views in cascade manner from a schema in HSQL database
- Spark Not Null constrains in combination with badrecordspath for reading (delta) tables
- "Schema hasn't been registered for model" Error in mongoose only while populating
Related Questions in ODB
- Issues Generating ODB Schema and Query Files for C++ Project
- Why is the Identifier not valid? The column is in the corr synt. on the sour datab with the corr nam, Power Query Editor tool, Extended Editor tool
- Reading data from ODB while Abaqus calculation is running
- Initialize an oracle table of records in EF core
- ABAQUS script for a custom field output
- Is there an easy way to implement C++ queries like the ones from ODB?
- How can I extract the maximum Von Mises stress in Abaqus on my entire assembly using python?
- Bidirectional link odb failed
- How to convert from GDSII to Gerber or ODB++ for PCB printing?
- showing only one column in each row, Sqlplus
- Max stress from ODB
- OpenOffice access a table from an odb (HSQLDB) file
- Oracle DB / ODI / OBIEE installation on Google cloud platform
- Performance difference in C++ on Mac and Linux (Slower on Linux than Mac)
- I'm getting error when I'm mapping atomic value with odb
Related Questions in CODESYNTHESIS
- Does Picat support Program Synthesis?
- Codesys how to share local library repository
- CMake & CodeSynthesis Header-only library not compiling
- Parsing/validating xml not including information about xsd using codesynthesis-xsd
- xml modification using codesynthesis-xsd
- Codesynthesis - Compare string value with sequence in C++
- Why Xsd Cannot Load a Transcoding Service?
- odb with MySQL sql-mode NO_AUTO_VALUE_ON_ZERO
- ODB C++ - Unknown database schema error
- codesynthesis XSD generate C struct instead of C++ class
- VHDL Synthesis Error and Code Suggestions
- Defining and referencing XSD types in namespaces
- Compiling a valid XML Schema using CodeSynthesis XSD fails with Error MSB3721
- codesynthesis - DOMDocument ambigious error
- XML package that convert xml/schema file into classes representation with open license
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
This problem is likely related to the issues described here and here, and which can be briefly summarised as follows: the C/C++ linker will ignore symbols from the static libraries if these symbols are not directly used in the main binary. ODB's implementation can fall into this trap, depending on how exactly you are instantiating the generated code. For GCC/Clang the solution is to use
--whole-archiveand for MSVC, on Visual Studio 2015 Update 2 and above,/WHOLEARCHIVE.For more details see: