sqlite_orm icon indicating copy to clipboard operation
sqlite_orm copied to clipboard

MSVC 2019 Compile error

Open masoudr opened this issue 2 years ago • 8 comments

Hi, I'm trying to build the project (dev branch) against MSVC 2019, but after I generate the CMAKE and open the solution, at the build time I get the following error for sqlite_orm.h.

Severity	Code	Description	Project	File	Line	Suppression State
Error	C3493	'ss' cannot be implicitly captured because no default capture mode has been specified (compiling source file C:\Users\Masoud\Desktop\sqlite_orm-dev\tests\storage_tests.cpp)	unit_tests	C:\Users\Masoud\Desktop\sqlite_orm-dev\include\sqlite_orm\sqlite_orm.h	18458	
Error	C3481	'ss': lambda capture variable not found (compiling source file C:\Users\Masoud\Desktop\sqlite_orm-dev\tests\storage_tests.cpp)	unit_tests	C:\Users\Masoud\Desktop\sqlite_orm-dev\include\sqlite_orm\sqlite_orm.h	18458	

masoudr avatar Aug 06 '22 12:08 masoudr

Hi. This is a phantom error which must be fixed but cannot be repro by me. Please show me IDE screenshot to provide more information

fnc12 avatar Aug 06 '22 13:08 fnc12

If you need more information let me know: Capture

masoudr avatar Aug 06 '22 13:08 masoudr

nice. Please show me sources with error highlight.

fnc12 avatar Aug 06 '22 13:08 fnc12

Capture

masoudr avatar Aug 06 '22 13:08 masoudr

please try msvc-fix branch and tell me whether error is appearing

fnc12 avatar Aug 07 '22 11:08 fnc12

Unfortunately, still have the issue. Capture

masoudr avatar Aug 08 '22 14:08 masoudr

@masoudr please pull and try again

fnc12 avatar Aug 08 '22 17:08 fnc12

Capture

masoudr avatar Aug 09 '22 10:08 masoudr

@masoudr please pull the branch and try again

fnc12 avatar Aug 16 '22 04:08 fnc12

@fnc12 I tried to build the solution, and it was built without any errors, but the output folder is empty. It seems that it only builds the test solution. Which solution do I need to build to access header and linker files?

masoudr avatar Aug 16 '22 05:08 masoudr

you don't need to build anything cause it is header only library. If you want to use sqlite_orm in your project just add include folder from the repo in the path where you store project 3rd party libs or just add path to include folder to header search path in your project settings

fnc12 avatar Aug 16 '22 05:08 fnc12