Re: [sqlite] Compiling on Xcode

2017-12-04 Thread Jens Alfke


> On Nov 24, 2017, at 10:14 AM, Lifepillar  wrote:
> 
> When building sqlite-amalgamation-321 using Xcode 9.1 in a newly
> created project, I get a few dozen warnings

Yup, and this is an FAQ. SQLite is very thoroughly tested but the developers do 
not use compiler warnings.

> To avoid missing potential problems in the rest of your code, I'd
> recommend suppressing the warnings only for the Release
> configuration and only for the specific target.

I recommend building SQLite as a separate static-library target, and linking 
the library into your app target. That way you can turn off warnings for SQLite 
without affecting your own code.

—Jens

___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling on Xcode

2017-11-25 Thread Lifepillar

>Hi, ALL,
>Right now my C Language option on the Xcode 5.1.1 is set to "GNU99".
>When using this option I am getting a lot of different warnings like:
>
>Value Conversion Issue
>Implicit conversion loses integer precision.
>
>I know its just a warning, but I prefer the code to be compiled clean.
>I would guess that I need a change the option to get a clean compile.
>
>Which one I should use?

Hi,
I am resurrecting this old thread, because I recently had a similar
issue and didn't find an answer in this list.

When building sqlite-amalgamation-321 using Xcode 9.1 in a newly
created project, I get a few dozen warnings, mostly about value
conversion issues as mentioned above, a few about ambiguous MIN/MAX
macro definitions, unreachable code, possible misuse of comma
operator, and one about a (not C99-compliant) over-length string.

Most warnings are easily seen to be harmless (e.g., unreachable code
depends on compile-time flags, and ambiguous macros likely depend on
merging multiple files into one—but the various macro definitions
are equivalent). Besides, I get the same warnings if I add suitable
-W flags to sqlite-autoconf-321's Makefile, which otherwise
builds cleanly. This gives me confidence that the warnings may
indeed be ignored—although I am a bit scared of ignoring “implicit
conversion loses integer precision” warnings: I'd like someone
familiar with the code to confirm that that is no cause of concern.

So, you may silence all the warnings by setting the following items
in the target's build settings:

Apple LLVM 9.0 - Warnings - All Languages
  - Implicit Conversion to 32 Bit Type: No
  - Suspicious Commas: No
  - Unreachable Code: No

Apple LLVM 9.0 - Custom Compiler Flags
  - Other Warning Flags: -Wno-ambiguous-macro -Wno-overlength-strings

To avoid missing potential problems in the rest of your code, I'd
recommend suppressing the warnings only for the Release
configuration and only for the specific target.

Hope this may be helpful to others as well,
Life.


___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling on Xcode

2016-07-23 Thread Igor Korot
Simon et al,

On Sat, Jul 23, 2016 at 2:20 AM, Simon Slavin  wrote:
>
> On 23 Jul 2016, at 4:26am, Igor Korot  wrote:
>
>> "Ambiguous expansion of macro MIN/MAX"
>
> Sorry, I don't recognise this problem.  I would try Googling it.

Trying to google I found this:
http://stackoverflow.com/questions/24950240/warnings-with-a-new-xcode-project-using-fmdb-sqlitecipher-and-cocoapods

So it does look like SQLite is trying to define the macro twice, but only
for the OSX..
Anybody else can comment?

Thank you.

>
> Simon.
> ___
> sqlite-users mailing list
> sqlite-users@mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling on Xcode

2016-07-23 Thread Simon Slavin

On 23 Jul 2016, at 4:26am, Igor Korot  wrote:

> "Ambiguous expansion of macro MIN/MAX"

Sorry, I don't recognise this problem.  I would try Googling it.

Simon.
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling on Xcode

2016-07-22 Thread Igor Korot
Simon,
Sorry for the long delay. I was trying to catch up on some other stuff.

On Thu, Jul 14, 2016 at 10:01 AM, Igor Korot  wrote:
> On Thu, Jul 14, 2016 at 9:38 AM, Simon Slavin  wrote:
>>
>> On 14 Jul 2016, at 12:44pm, Igor Korot  wrote:
>>
>>> Is there anything else to check?
>>
>> No.  Those look correct.  You looked at the right place and it had the right 
>> options selected.
>>
>> Although the SQLite team goes to some lengths to avoid errors which prevent 
>> compilation, trying to get rid of every warning generated under every 
>> combination of compiler/OS/hardware that SQLite is used for would be a 
>> never-ending task.
>>
>> I looked up the warning messages you're seeing.  They are all harmless to 
>> your particular way of working.  They're caused by the fact that different 
>> types are different between different compilers, even when running on the 
>> same OS and hardware.  For instance, as far as your compiler is concerned, 
>> under the 64-bit OS X "unsigned long" is a 64-bit unsigned integer but "int" 
>> is a 32-bit integer.
>>
>> There may be a set of compiler options which get rid of those messages but 
>> I'm not an expert on that level and I don't think it matters much anyway.  
>> So I think you can proceed with your setup and expect SQLite to perform 
>> without problems.
>
> OK, thx.
> There are also other warnings reported, however I'm currently at work
> and don't have access to my Mac.
>
> I will post them later to make sure that those are harmless as well.
>
> Thank you.

So the other warning I am seeing is:

"Ambiguous expansion of macro MIN/MAX"

Can those be safely ignored?

Thank you.

>
>>
>> Simon.
>> ___
>> sqlite-users mailing list
>> sqlite-users@mailinglists.sqlite.org
>> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling on Xcode

2016-07-14 Thread Igor Korot
On Thu, Jul 14, 2016 at 9:38 AM, Simon Slavin  wrote:
>
> On 14 Jul 2016, at 12:44pm, Igor Korot  wrote:
>
>> Is there anything else to check?
>
> No.  Those look correct.  You looked at the right place and it had the right 
> options selected.
>
> Although the SQLite team goes to some lengths to avoid errors which prevent 
> compilation, trying to get rid of every warning generated under every 
> combination of compiler/OS/hardware that SQLite is used for would be a 
> never-ending task.
>
> I looked up the warning messages you're seeing.  They are all harmless to 
> your particular way of working.  They're caused by the fact that different 
> types are different between different compilers, even when running on the 
> same OS and hardware.  For instance, as far as your compiler is concerned, 
> under the 64-bit OS X "unsigned long" is a 64-bit unsigned integer but "int" 
> is a 32-bit integer.
>
> There may be a set of compiler options which get rid of those messages but 
> I'm not an expert on that level and I don't think it matters much anyway.  So 
> I think you can proceed with your setup and expect SQLite to perform without 
> problems.

OK, thx.
There are also other warnings reported, however I'm currently at work
and don't have access to my Mac.

I will post them later to make sure that those are harmless as well.

Thank you.

>
> Simon.
> ___
> sqlite-users mailing list
> sqlite-users@mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling on Xcode

2016-07-14 Thread Simon Slavin

On 14 Jul 2016, at 12:44pm, Igor Korot  wrote:

> Is there anything else to check?

No.  Those look correct.  You looked at the right place and it had the right 
options selected.

Although the SQLite team goes to some lengths to avoid errors which prevent 
compilation, trying to get rid of every warning generated under every 
combination of compiler/OS/hardware that SQLite is used for would be a 
never-ending task.

I looked up the warning messages you're seeing.  They are all harmless to your 
particular way of working.  They're caused by the fact that different types are 
different between different compilers, even when running on the same OS and 
hardware.  For instance, as far as your compiler is concerned, under the 64-bit 
OS X "unsigned long" is a 64-bit unsigned integer but "int" is a 32-bit integer.

There may be a set of compiler options which get rid of those messages but I'm 
not an expert on that level and I don't think it matters much anyway.  So I 
think you can proceed with your setup and expect SQLite to perform without 
problems.

Simon.
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling on Xcode

2016-07-14 Thread Igor Korot
Simon,

On Wed, Jul 13, 2016 at 11:51 PM, Simon Slavin  wrote:
>
> On 14 Jul 2016, at 4:43am, Igor Korot  wrote:
>
>> Right now my C Language option on the Xcode 5.1.1 is set to "GNU99".
>> When using this option I am getting a lot of different warnings like:
>>
>> Value Conversion Issue
>> Implicit conversion loses integer precision.
>
> Check the properties for the sqlite3.h and sqlite3.c files and make sure 
> Xcode understands that they're C code.  It has a bad habit of assuming that 
> .c files are C++ or Objective-C files.

When I select sqlite3.c in the Xcode project pane on the left, on the
right in the "Identity and Type" I see:

[quote]
Name: sqlite3.c
Type: Default - C Source
[/quote

Doing the same for sqlite3.h I get:

[quote]
Name: sqlite3.h
Type: Default - C Header
[/quote]

Is there anything else to check?

Thank you.

>
> Simon.
> ___
> sqlite-users mailing list
> sqlite-users@mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling on Xcode

2016-07-13 Thread Simon Slavin

On 14 Jul 2016, at 4:43am, Igor Korot  wrote:

> Right now my C Language option on the Xcode 5.1.1 is set to "GNU99".
> When using this option I am getting a lot of different warnings like:
> 
> Value Conversion Issue
> Implicit conversion loses integer precision.

Check the properties for the sqlite3.h and sqlite3.c files and make sure Xcode 
understands that they're C code.  It has a bad habit of assuming that .c files 
are C++ or Objective-C files.

Simon.
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Compiling on Xcode

2016-07-13 Thread Igor Korot
Hi, ALL,
Right now my C Language option on the Xcode 5.1.1 is set to "GNU99".
When using this option I am getting a lot of different warnings like:

Value Conversion Issue
Implicit conversion loses integer precision.

I know its just a warning, but I prefer the code to be compiled clean.
I would guess that I need a change the option to get a clean compile.

Which one I should use?

Thank you.
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling in Xcode 3.1.3

2011-05-16 Thread Simon Slavin

On 16 May 2011, at 10:48pm, john darnell wrote:

> sourcecode.c
> sourcecode.c.c
> sourcecode.c.h
> sourcecode.c.objc
> sourcecode.cpp
> sourcecode.cpp.cpp
> sourcecode.cpp.h
> sourcecode.cpp.objcpp
> 
> The default filetype for SQLite3.c was sourcecode.c.c.  The default filetype 
> for SQLite3.h was sourcode.c.c

Well, they should be options 1 and 3 respectively.  2 and 3 will also be fine.  
Anything else may cause problems.

> For grins I looked at a .CPP file and its file type was sourcecode.cpp.cpp

I hadn't come across the '.c.c' convention before but now I understand it.  
They're using it to distinguish between C (.c.) and C++ (.cpp.).  The 
confusions between them is what caused your errors in the first place.

Somewhere in the Developer tools you can find at least one example file in 
every language Xcode can handle, up to and including AppleScript.  Or maybe 
they've moved them to the downloadable sample files now.

Simon.
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling in Xcode 3.1.3

2011-05-16 Thread john darnell
Thanks, Simon:

   In Xcode 3.1.3 when I highlight SQLite3.c, click the Info icon and look 
under the General Tab, and then click the File Type dropdown there are perhaps 
sixty to seventy choices I can make, but only a few make any sense, some more 
than others.  They are:

sourcecode.c
sourcecode.c.c
sourcecode.c.h
sourcecode.c.objc
sourcecode.cpp
sourcecode.cpp.cpp
sourcecode.cpp.h
sourcecode.cpp.objcpp

The default filetype for SQLite3.c was sourcecode.c.c.  The default filetype 
for SQLite3.h was sourcode.c.c

For grins I looked at a .CPP file and its file type was sourcecode.cpp.cpp

Any thoughts?

R,
John

.
> -Original Message-
> From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org]
> On Behalf Of Simon Slavin
> Sent: Monday, May 16, 2011 4:32 PM
> To: General Discussion of SQLite Database
> Subject: Re: [sqlite] Compiling in Xcode 3.1.3
> 
> 
> On 16 May 2011, at 10:09pm, john darnell wrote:
> 
> > I highlighted the file, clicked the information icon and then under the 
> > "General"
> category I changed the type of file from "sourcecode.c.c" to "sourcecode.c."
> When pressing Command-K I get no errors but one warning: "Warning, no rule to
> process sqlite3.c of type sourcecode.c for architecture i386"
> 
> I had no problems with compiling the Amalgamation source code under Xcode 3.x.
> I've since moved to Xcode 4.0 so I can no longer tell you what my settings 
> were
> but I never saw a '.c.c' extension, I just had to make sure the 'File Type' 
> for
> sqlite3.c was 'C source', not 'Objective-C++ source', and that similarly 
> 'File Type'
> for sqlite3.h was 'C header' not 'C++ header'.
> 
> The only thing I'm getting in Xcode 4.0 with LLVM GCC 4.2 is some 'Unused
> Entity' warnings and I have no problem with those: they're right, and they're 
> just
> warnings.
> 
> Simon.
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling in Xcode 3.1.3

2011-05-16 Thread Simon Slavin

On 16 May 2011, at 10:09pm, john darnell wrote:

> I highlighted the file, clicked the information icon and then under the 
> "General" category I changed the type of file from "sourcecode.c.c" to 
> "sourcecode.c."   When pressing Command-K I get no errors but one warning: 
> "Warning, no rule to process sqlite3.c of type sourcecode.c for architecture 
> i386"

I had no problems with compiling the Amalgamation source code under Xcode 3.x.  
I've since moved to Xcode 4.0 so I can no longer tell you what my settings were 
but I never saw a '.c.c' extension, I just had to make sure the 'File Type' for 
sqlite3.c was 'C source', not 'Objective-C++ source', and that similarly 'File 
Type' for sqlite3.h was 'C header' not 'C++ header'.

The only thing I'm getting in Xcode 4.0 with LLVM GCC 4.2 is some 'Unused 
Entity' warnings and I have no problem with those: they're right, and they're 
just warnings.

Simon.
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling in Xcode 3.1.3

2011-05-16 Thread john darnell
Okay,  I started looking at the code in SQLite3 and noticed that this is 
already done for me.  

Please have mercy on me,  I am on the road and do not have access to my usual 
resources.  What do I need to do to get Xcode to compile this code in 3.1.3?

R,
John

> -Original Message-
> From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org]
> On Behalf Of john darnell
> Sent: Monday, May 16, 2011 4:09 PM
> To: General Discussion of SQLite Database
> Subject: Re: [sqlite] Compiling in Xcode 3.1.3
> 
> Thanks again.
> 
> I highlighted the file, clicked the information icon and then under the 
> "General"
> category I changed the type of file from "sourcecode.c.c" to "sourcecode.c."
> When pressing Command-K I get no errors but one warning: "Warning, no rule to
> process sqlite3.c of type sourcecode.c for architecture i386"
> 
> I am going to try this next:
> 
> extern "C" {
>#include "sqlite3.h"
>  }
> 
> And see if that helps.
> > -Original Message-
> > From: sqlite-users-boun...@sqlite.org 
> > [mailto:sqlite-users-boun...@sqlite.org]
> > On Behalf Of Richard Hipp
> > Sent: Monday, May 16, 2011 3:45 PM
> > To: General Discussion of SQLite Database
> > Subject: Re: [sqlite] Compiling in Xcode 3.1.3
> >
> > On Mon, May 16, 2011 at 4:31 PM, john darnell
> > <john.darn...@walsworth.com>wrote:
> >
> > > Thanks for responding, Mr HIpp.
> > >
> > > There are 1265 errors in all, but most of them look very close to 
> > > something
> > > like this:
> > >
> > >Invalid conversion from void * to XXX *
> > >
> > > Or
> > >
> > >forward declaration of struct_ht
> > >
> > > I thought it might be a pathing error (I had not added the path to the
> > > directory where SQLite 3 is stored) but I did that and it didn't really
> > > resolve anything.
> > >
> >
> > SQLite is ANSI-C code.  Sounds to me like you are trying to compile it as
> > C++, or maybe Objective-C.
> >
> >
> > >
> > > R,
> > > John
> > >
> > > > -Original Message-
> > > > From: sqlite-users-boun...@sqlite.org [mailto:
> > > sqlite-users-boun...@sqlite.org]
> > > > On Behalf Of Richard Hipp
> > > > Sent: Monday, May 16, 2011 3:19 PM
> > > > To: General Discussion of SQLite Database
> > > > Subject: Re: [sqlite] Compiling in Xcode 3.1.3
> > > >
> > > > On Mon, May 16, 2011 at 4:01 PM, john darnell
> > > > <john.darn...@walsworth.com>wrote:
> > > >
> > > > > I have code that compiles just fine using Visual Studio 8 on Windows
> > > XP,
> > > > > but when I port SQLite over to a Mac OSX (Snow Leopard) platform
> > > using
> > > > > Xcode 3.1.3 I get roughly 1000 errors based upon SQLite.  Is there
> > > something
> > > > > I need to turn off/on when using SQLite on the Mac?
> > > > >
> > > >
> > > > No.  We compile SQLite on Macs with no problems.  What are the errors?
> > > >
> > > >
> > > > >
> > > > > R,
> > > > > John A.M. Darnell
> > > > > Senior Programmer
> > > > > Walsworth Publishing Company
> > > > > Brookfield, MO
> > > > > John may also be reached at johnamdarn...@gmail.com > > > > johnamdarn...@gmail.com>
> > > > >
> > > > > Trivia question Trivia question:  In The Lord of the Rings,Leglolas 
> > > > > was
> > > a
> > > > > prince among the Silvan Elves.  What was the name of his father the
> > > King?
> > > > >  For extra credit, what was his surname?
> > > > >
> > > > >
> > > > >
> > > > > ___
> > > > > sqlite-users mailing list
> > > > > sqlite-users@sqlite.org
> > > > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > D. Richard Hipp
> > > > d...@sqlite.org
> > > > ___
> > > > sqlite-users mailing list
> > > > sqlite-users@sqlite.org
> > > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> > > ___
> > > sqlite-users mailing list
> > > sqlite-users@sqlite.org
> > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> > >
> >
> >
> >
> > --
> > D. Richard Hipp
> > d...@sqlite.org
> > ___
> > sqlite-users mailing list
> > sqlite-users@sqlite.org
> > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling in Xcode 3.1.3

2011-05-16 Thread john darnell
Thanks again.

I highlighted the file, clicked the information icon and then under the 
"General" category I changed the type of file from "sourcecode.c.c" to 
"sourcecode.c."   When pressing Command-K I get no errors but one warning: 
"Warning, no rule to process sqlite3.c of type sourcecode.c for architecture 
i386"

I am going to try this next:

extern "C" {
   #include "sqlite3.h"
 } 

And see if that helps.
> -Original Message-
> From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org]
> On Behalf Of Richard Hipp
> Sent: Monday, May 16, 2011 3:45 PM
> To: General Discussion of SQLite Database
> Subject: Re: [sqlite] Compiling in Xcode 3.1.3
> 
> On Mon, May 16, 2011 at 4:31 PM, john darnell
> <john.darn...@walsworth.com>wrote:
> 
> > Thanks for responding, Mr HIpp.
> >
> > There are 1265 errors in all, but most of them look very close to something
> > like this:
> >
> >Invalid conversion from void * to XXX *
> >
> > Or
> >
> >forward declaration of struct_ht
> >
> > I thought it might be a pathing error (I had not added the path to the
> > directory where SQLite 3 is stored) but I did that and it didn't really
> > resolve anything.
> >
> 
> SQLite is ANSI-C code.  Sounds to me like you are trying to compile it as
> C++, or maybe Objective-C.
> 
> 
> >
> > R,
> > John
> >
> > > -Original Message-----
> > > From: sqlite-users-boun...@sqlite.org [mailto:
> > sqlite-users-boun...@sqlite.org]
> > > On Behalf Of Richard Hipp
> > > Sent: Monday, May 16, 2011 3:19 PM
> > > To: General Discussion of SQLite Database
> > > Subject: Re: [sqlite] Compiling in Xcode 3.1.3
> > >
> > > On Mon, May 16, 2011 at 4:01 PM, john darnell
> > > <john.darn...@walsworth.com>wrote:
> > >
> > > > I have code that compiles just fine using Visual Studio 8 on Windows
> > XP,
> > > > but when I port SQLite over to a Mac OSX (Snow Leopard) platform
> > using
> > > > Xcode 3.1.3 I get roughly 1000 errors based upon SQLite.  Is there
> > something
> > > > I need to turn off/on when using SQLite on the Mac?
> > > >
> > >
> > > No.  We compile SQLite on Macs with no problems.  What are the errors?
> > >
> > >
> > > >
> > > > R,
> > > > John A.M. Darnell
> > > > Senior Programmer
> > > > Walsworth Publishing Company
> > > > Brookfield, MO
> > > > John may also be reached at johnamdarn...@gmail.com > > > johnamdarn...@gmail.com>
> > > >
> > > > Trivia question Trivia question:  In The Lord of the Rings,Leglolas was
> > a
> > > > prince among the Silvan Elves.  What was the name of his father the
> > King?
> > > >  For extra credit, what was his surname?
> > > >
> > > >
> > > >
> > > > ___
> > > > sqlite-users mailing list
> > > > sqlite-users@sqlite.org
> > > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> > > >
> > >
> > >
> > >
> > > --
> > > D. Richard Hipp
> > > d...@sqlite.org
> > > ___
> > > sqlite-users mailing list
> > > sqlite-users@sqlite.org
> > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> > ___
> > sqlite-users mailing list
> > sqlite-users@sqlite.org
> > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> >
> 
> 
> 
> --
> D. Richard Hipp
> d...@sqlite.org
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling in Xcode 3.1.3

2011-05-16 Thread Richard Hipp
On Mon, May 16, 2011 at 4:31 PM, john darnell <john.darn...@walsworth.com>wrote:

> Thanks for responding, Mr HIpp.
>
> There are 1265 errors in all, but most of them look very close to something
> like this:
>
>Invalid conversion from void * to XXX *
>
> Or
>
>forward declaration of struct_ht
>
> I thought it might be a pathing error (I had not added the path to the
> directory where SQLite 3 is stored) but I did that and it didn't really
> resolve anything.
>

SQLite is ANSI-C code.  Sounds to me like you are trying to compile it as
C++, or maybe Objective-C.


>
> R,
> John
>
> > -Original Message-
> > From: sqlite-users-boun...@sqlite.org [mailto:
> sqlite-users-boun...@sqlite.org]
> > On Behalf Of Richard Hipp
> > Sent: Monday, May 16, 2011 3:19 PM
> > To: General Discussion of SQLite Database
> > Subject: Re: [sqlite] Compiling in Xcode 3.1.3
> >
> > On Mon, May 16, 2011 at 4:01 PM, john darnell
> > <john.darn...@walsworth.com>wrote:
> >
> > > I have code that compiles just fine using Visual Studio 8 on Windows
> XP,
> > > but when I port SQLite over to a Mac OSX (Snow Leopard) platform
> using
> > > Xcode 3.1.3 I get roughly 1000 errors based upon SQLite.  Is there
> something
> > > I need to turn off/on when using SQLite on the Mac?
> > >
> >
> > No.  We compile SQLite on Macs with no problems.  What are the errors?
> >
> >
> > >
> > > R,
> > > John A.M. Darnell
> > > Senior Programmer
> > > Walsworth Publishing Company
> > > Brookfield, MO
> > > John may also be reached at johnamdarn...@gmail.com > > johnamdarn...@gmail.com>
> > >
> > > Trivia question Trivia question:  In The Lord of the Rings,Leglolas was
> a
> > > prince among the Silvan Elves.  What was the name of his father the
> King?
> > >  For extra credit, what was his surname?
> > >
> > >
> > >
> > > ___
> > > sqlite-users mailing list
> > > sqlite-users@sqlite.org
> > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> > >
> >
> >
> >
> > --
> > D. Richard Hipp
> > d...@sqlite.org
> > ___
> > sqlite-users mailing list
> > sqlite-users@sqlite.org
> > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>



-- 
D. Richard Hipp
d...@sqlite.org
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling in Xcode 3.1.3

2011-05-16 Thread john darnell
Thanks for responding, Mr HIpp.

There are 1265 errors in all, but most of them look very close to something 
like this:

Invalid conversion from void * to XXX *

Or

forward declaration of struct_ht

I thought it might be a pathing error (I had not added the path to the 
directory where SQLite 3 is stored) but I did that and it didn't really resolve 
anything.

R,
John

> -Original Message-
> From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org]
> On Behalf Of Richard Hipp
> Sent: Monday, May 16, 2011 3:19 PM
> To: General Discussion of SQLite Database
> Subject: Re: [sqlite] Compiling in Xcode 3.1.3
> 
> On Mon, May 16, 2011 at 4:01 PM, john darnell
> <john.darn...@walsworth.com>wrote:
> 
> > I have code that compiles just fine using Visual Studio 8 on Windows XP,
> > but when I port SQLite over to a Mac OSX (Snow Leopard) platform   using
> > Xcode 3.1.3 I get roughly 1000 errors based upon SQLite.  Is there something
> > I need to turn off/on when using SQLite on the Mac?
> >
> 
> No.  We compile SQLite on Macs with no problems.  What are the errors?
> 
> 
> >
> > R,
> > John A.M. Darnell
> > Senior Programmer
> > Walsworth Publishing Company
> > Brookfield, MO
> > John may also be reached at johnamdarn...@gmail.com > johnamdarn...@gmail.com>
> >
> > Trivia question Trivia question:  In The Lord of the Rings,Leglolas was a
> > prince among the Silvan Elves.  What was the name of his father the King?
> >  For extra credit, what was his surname?
> >
> >
> >
> > ___
> > sqlite-users mailing list
> > sqlite-users@sqlite.org
> > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> >
> 
> 
> 
> --
> D. Richard Hipp
> d...@sqlite.org
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compiling in Xcode 3.1.3

2011-05-16 Thread Richard Hipp
On Mon, May 16, 2011 at 4:01 PM, john darnell wrote:

> I have code that compiles just fine using Visual Studio 8 on Windows XP,
> but when I port SQLite over to a Mac OSX (Snow Leopard) platform   using
> Xcode 3.1.3 I get roughly 1000 errors based upon SQLite.  Is there something
> I need to turn off/on when using SQLite on the Mac?
>

No.  We compile SQLite on Macs with no problems.  What are the errors?


>
> R,
> John A.M. Darnell
> Senior Programmer
> Walsworth Publishing Company
> Brookfield, MO
> John may also be reached at johnamdarn...@gmail.com johnamdarn...@gmail.com>
>
> Trivia question Trivia question:  In The Lord of the Rings,Leglolas was a
> prince among the Silvan Elves.  What was the name of his father the King?
>  For extra credit, what was his surname?
>
>
>
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>



-- 
D. Richard Hipp
d...@sqlite.org
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Compiling in Xcode 3.1.3

2011-05-16 Thread john darnell
I have code that compiles just fine using Visual Studio 8 on Windows XP, but 
when I port SQLite over to a Mac OSX (Snow Leopard) platform   using Xcode 
3.1.3 I get roughly 1000 errors based upon SQLite.  Is there something I need 
to turn off/on when using SQLite on the Mac?

R,
John A.M. Darnell
Senior Programmer
Walsworth Publishing Company
Brookfield, MO
John may also be reached at 
johnamdarn...@gmail.com

Trivia question Trivia question:  In The Lord of the Rings,Leglolas was a 
prince among the Silvan Elves.  What was the name of his father the King?  For 
extra credit, what was his surname?



___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users