SQLite Forum

V3.35.0 Math Functions with Pre-Compiled Binaries
Login
I managed to compile [this version](https://sqlite.org/2021/sqlite-amalgamation-3350100.zip) using Visual Studio 2019 Enterprise.

My session looks as follows:

```
SQLite version 3.35.1 2021-03-15 16:53:57
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> select cos(7) /* math function in 3.35 available? */;
Error: no such function: cos
sqlite>
```

If possible, I'd appreciate some help in specifying <b>DYNAMIC_SHELL=1</b> within Visual Studio 2019. 

<b>1. How Do I do that?</b>

Also, the 32-bit version is failing to build with this error:

```
Rebuild started...
------ Rebuild All started: Project: SQLite3, Configuration: Release Win32 ------
shell.c
sqlite3.c
Generating Code...
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
MSVCRT.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)
E:\Ajay\C#\VS2019\SQLite3\Release\SQLite3.exe : fatal error LNK1120: 1 unresolved externals
Done building project "SQLite3.vcxproj" -- FAILED.
------ Rebuild All started: Project: SQLite3, Configuration: Release x64 ------
shell.c
sqlite3.c
Generating Code...
SQLite3.vcxproj -> E:\Ajay\C#\VS2019\SQLite3\x64\Release\SQLite3.exe
------ Rebuild All started: Project: SQLite3, Configuration: Debug Win32 ------
shell.c
sqlite3.c
Generating Code...
MSVCRTD.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)
E:\Ajay\C#\VS2019\SQLite3\Debug\SQLite3.exe : fatal error LNK1120: 1 unresolved externals
Done building project "SQLite3.vcxproj" -- FAILED.
------ Rebuild All started: Project: SQLite3, Configuration: Debug x64 ------
shell.c
sqlite3.c
Generating Code...
SQLite3.vcxproj -> E:\Ajay\C#\VS2019\SQLite3\x64\Debug\SQLite3.exe
========== Rebuild All: 2 succeeded, 2 failed, 0 skipped ==========
```

For the reported error, please refer to the lines [6] & [7] in the block immediately above this.

<b>2. I'd appreciate some help in overcoming this, please.</b> Or have I got the wrong end of the stick here? That is, is the SQLite CLI executable ALWAYS 64 bit?