Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Must use release-debug, or debug mode #46

Open
wilsonjord opened this issue Jul 31, 2018 · 1 comment
Open

Must use release-debug, or debug mode #46

wilsonjord opened this issue Jul 31, 2018 · 1 comment
Labels
Unsure Needs confirmation or more info

Comments

@wilsonjord
Copy link

If I want to compile my program in debug mode, d2sqlite3 must also have been compiled in debug mode (e.g. dub - b "debug" or dub -b "release-dubug").

If I build d2sqlite3.lib without the -debug flag, and I compile my program in debug mode, I get:

dmd -m64 main.d -Id2sqlite\source -Ld2sqlite3.lib sqlite3.lib -debug
lld-link.exe: warning: obj\debug\main.obj: undefined symbol: _D9d2sqlite38database8Database7Payload9__xtoHashFNbNeKxSQCcQBvQBpQBjZm
lld-link.exe: warning: obj\debug\main.obj: undefined symbol: _D9d2sqlite38database8Database7Payload11__xopEqualsFKxSQCbQBuQBoQBiKxQpZb

If I compile my program without -debug (and d2sqlite.lib is also without -debug), everything is fine.

@biozic
Copy link
Collaborator

biozic commented Sep 6, 2018

You should build your program and the library in the same mode, probably using dub for both.

@biozic biozic added the Unsure Needs confirmation or more info label Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unsure Needs confirmation or more info
Projects
None yet
Development

No branches or pull requests

2 participants