SQLite Forum

Compiling 3.36 source code

Compiling 3.36 source code

(1) By anonymous on 2021-06-30 18:59:04 [source]

Using Visual Studio 2019 to compile the source code for v3.36.0 for Debug/Release 32- & 64-bit; one of the 4 compilations is failing with

MSVCRTD.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)

Any clues as to how I might overcome this? Thanks.

(2) By Larry Brasfield (larrybr) on 2021-06-30 20:12:48 in reply to 1 [link] [source]

The easiest way would be to follow the guidance here.

If you are truly eager to use the VS IDE, you will need to set the application type to "CONSOLE app". It is likely that other setting changes will prove necessary.