askbook / csharp-sqlite

Automatically exported from code.google.com/p/csharp-sqlite
Other
0 stars 0 forks source link

Cannot compile Benchmark #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add Benchmark as Project into Visual Studio 2008
2. Compile

What is the expected output? What do you see instead?
I expected it to compile, but I have 19 errors: 

Error   1   'CS_SQLite3.csSQLite.SQLITE_INTEGER' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\src\Benchmark.cs  51
42  Benchmark
Error   2   'CS_SQLite3.csSQLite.SQLITE_TEXT' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\src\Benchmark.cs  52
42  Benchmark
Error   3   'CS_SQLite3.csSQLite.SQLITE_INTEGER' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\src\Benchmark.cs  119
42  Benchmark
Error   4   'CS_SQLite3.csSQLite.sqlite3_column_type(CS_SQLite3.csSQLite.Vdbe,
int)' is inaccessible due to its protection level
C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
141 37  Benchmark
Error   5   'CS_SQLite3.csSQLite.SQLITE_INTEGER' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
144 27  Benchmark
Error   6   'CS_SQLite3.csSQLite.sqlite3_column_int(CS_SQLite3.csSQLite.Vdbe,
int)' is inaccessible due to its protection level
C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
146 44  Benchmark
Error   7   'CS_SQLite3.csSQLite.SQLITE_FLOAT' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
149 27  Benchmark
Error   8
'CS_SQLite3.csSQLite.sqlite3_column_double(CS_SQLite3.csSQLite.Vdbe, int)'
is inaccessible due to its protection level C:\Users\Tim\Documents\Visual
Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
151 44  Benchmark
Error   9   'CS_SQLite3.csSQLite.SQLITE_TEXT' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
154 27  Benchmark
Error   10  'CS_SQLite3.csSQLite.SQLITE_BLOB' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
159 27  Benchmark
Error   11  'CS_SQLite3.csSQLite.sqlite3_column_blob(CS_SQLite3.csSQLite.Vdbe,
int)' is inaccessible due to its protection level
C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
161 44  Benchmark
Error   12  'CS_SQLite3.csSQLite.sqlite3_column_type(CS_SQLite3.csSQLite.Vdbe,
int)' is inaccessible due to its protection level
C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
193 33  Benchmark
Error   13  'CS_SQLite3.csSQLite.SQLITE_INTEGER' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
197 27  Benchmark
Error   14  'CS_SQLite3.csSQLite.SQLITE_FLOAT' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
203 27  Benchmark
Error   15  'CS_SQLite3.csSQLite.SQLITE_TEXT' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
208 27  Benchmark
Error   16  'CS_SQLite3.csSQLite.SQLITE_BLOB' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
213 27  Benchmark
Error   17  'CS_SQLite3.csSQLite.SQLITE_INTEGER' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
260 23  Benchmark
Error   18  'CS_SQLite3.csSQLite.SQLITE_TEXT' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
265 23  Benchmark
Error   19  'CS_SQLite3.csSQLite.SQLITE_NULL' is inaccessible due to its
protection level    C:\Users\Tim\Documents\Visual Studio 2008\Team
Projects\SimpleSample\Main\Source\csharp-sqlite\Benchmark\Classes\SQLiteDatabase
.cs
270 23  Benchmark

What version of the product are you using? On what operating system?

Please provide any additional information below.
This is probably an easy fix, or some configuration change I am missing.

Original issue reported on code.google.com by tor...@gmail.com on 6 Aug 2009 at 6:37

GoogleCodeExporter commented 8 years ago
In Ln 3168 of sqlite3_h.cs, I changed SQLITE_INTEGER, etc. to public const.
In Ln 866 of vdbeapi_c.cs I changed sqlite3_column_type to public static int as 
well
as column_int, blob, and double and was able to compile Benchmark.

Original comment by tor...@gmail.com on 6 Aug 2009 at 6:50

GoogleCodeExporter commented 8 years ago
Changed C#-SQLite constants to public, so that they can be seen by Benchmark

Original comment by noah.hart@gmail.com on 6 Aug 2009 at 7:49