Re: [sqlite] sqlite compile error

2010-03-25 Thread Magnus Torfason
On 3/25/2010 5:12 PM, Magnus Torfason wrote:
> On 3/5/2010 3:45 PM, Simon Slavin wrote:
>> On 5 Mar 2010, at 7:18pm, Gary Zigmann wrote:
>>
>>> [Linker error] undefined reference to `winm...@16'
>>>
>>> Can you help me?
>>
>> http://lmgtfy.com/?q=undefined+reference+to+%60WinMain%4016%27
>
> Searching "undefined reference to `winm...@16' sqlite" turns up Simon's
> email as the first link. That's an ironic recursion :-)
>
> My guess is that Gary asked this question because he downloaded the
> amalgamation and just typed "gcc sqlite3.c", hoping to end up with the
> command line shell (that is what I just did).
>
> http://www.sqlite.org/sqlite.html states that "The SQLite library
> *includes* a simple command-line utility named sqlite3" so this hope
> does not seem entirely unfounded. But of course now the question
> becomes, how should one compile the command line shell from the source.
> Any hints on how to do that, oriented towards intermediate users (who
> have compiled a program or two, and sometimes fixed a minor annoyance,
> but who are not in the business of developing software whole-cloth) ?
>
> Best,
> Magnus
>

Well, now I feel a tiny bit silly, because
http://www.sqlite.org/sqlite.html
does contain a link that eventually leads to the shell.c file that is 
needed to compile the command line client.

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


Re: [sqlite] sqlite compile error

2010-03-25 Thread Magnus Torfason
On 3/5/2010 3:45 PM, Simon Slavin wrote:
> On 5 Mar 2010, at 7:18pm, Gary Zigmann wrote:
>
>> [Linker error] undefined reference to `winm...@16'
>>
>> Can you help me?
>
> http://lmgtfy.com/?q=undefined+reference+to+%60WinMain%4016%27

Searching "undefined reference to `winm...@16' sqlite" turns up Simon's 
email as the first link. That's an ironic recursion :-)

My guess is that Gary asked this question because he downloaded the 
amalgamation and just typed "gcc sqlite3.c", hoping to end up with the 
command line shell (that is what I just did).

http://www.sqlite.org/sqlite.html states that "The SQLite library 
*includes* a simple command-line utility named sqlite3" so this hope 
does not seem entirely unfounded. But of course now the question 
becomes, how should one compile the command line shell from the source. 
Any hints on how to do that, oriented towards intermediate users (who 
have compiled a program or two, and sometimes fixed a minor annoyance, 
but who are not in the business of developing software whole-cloth) ?

Best,
Magnus



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


Re: [sqlite] sqlite compile error

2010-03-07 Thread noel frankinet
Gary Zigmann a écrit :

Hello,

Since sqlite is a library, could you show us your main program, in order 
to help you ?
Best wishes

Noël Frankinet
>  Good Afternoon,
>
>  Today I downloaded sqlite-amalgamation-3_6_22.zip from the  
>  sqlite.org website because I was looking for a SQL database to  
>  replace MS Access on my machine. I compiled sqlite3.c using a c  
>  compiler and came up with this error:
>
> [Linker error] undefined reference to `winm...@16'
>
>  Can you help me?
>
> Thanks,
>
>   
>> Gary Zigmann, MBA
>> Clinical Data Analyst
>> Gifford Medical Center
>> gzigm...@giffordmed.org
>>
>> This information is confidential. If you are not the intended recipient, 
>> delete this e-mail and any attachments without forwarding it or retaining a 
>> copy. To try to obtain permission to use this transmission or to notify the 
>> sender of the error, call (802) 728-2135 or e-mail gzigm...@giffordmed.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] sqlite compile error

2010-03-05 Thread Igor Tandetnik
Gary Zigmann  wrote:
> Today I downloaded sqlite-amalgamation-3_6_22.zip from the
> sqlite.org website because I was looking for a SQL database to
> replace MS Access on my machine. I compiled sqlite3.c using a c
> compiler and came up with this error:
> 
>[Linker error] undefined reference to `winm...@16'

SQLite is not a standalone application on its own. You are supposed to add 
sqlite3.c to your project, which presumably would also contain WinMain function 
(WinMain being the main entry point for a Windows application).

Igor Tandetnik


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


Re: [sqlite] sqlite compile error

2010-03-05 Thread Neville Franks
Hi Gary,
It sounds like there is no application code containing either main()
or standard Windows app startup code. SQLite is just a library and
needs to be linked with your application or test code.

You also need to provide some specific information on the compiler you
are using.

Saturday, March 6, 2010, 6:18:18 AM, you wrote:

GZ>  Good Afternoon,

GZ>  Today I downloaded sqlite-amalgamation-3_6_22.zip from the  
GZ>  sqlite.org website because I was looking for a SQL database to  
GZ>  replace MS Access on my machine. I compiled sqlite3.c using a c  
GZ>  compiler and came up with this error:

GZ> [Linker error] undefined reference to `winm...@16'

GZ>  Can you help me?

GZ> Thanks,

>> Gary Zigmann, MBA
>> Clinical Data Analyst
>> Gifford Medical Center
>> gzigm...@giffordmed.org

---
Best regards,
  Neville Franks, http://www.surfulater.com http://blog.surfulater.com
 

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


Re: [sqlite] sqlite compile error

2010-03-05 Thread A.
On Fri, 2010-03-05 at 14:18 -0500, Gary Zigmann wrote:
> Good Afternoon,
> 
>  Today I downloaded sqlite-amalgamation-3_6_22.zip from the  
>  sqlite.org website because I was looking for a SQL database to  
>  replace MS Access on my machine. I compiled sqlite3.c using a c  
>  compiler and came up with this error:
> 
> [Linker error] undefined reference to `winm...@16'
> 
>  Can you help me?

What linker are you using? What compiler?

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


Re: [sqlite] sqlite compile error

2010-03-05 Thread Simon Slavin

On 5 Mar 2010, at 7:18pm, Gary Zigmann wrote:

>[Linker error] undefined reference to `winm...@16'
> 
> Can you help me?

http://lmgtfy.com/?q=undefined+reference+to+%60WinMain%4016%27

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


[sqlite] sqlite compile error

2010-03-05 Thread Gary Zigmann
 Good Afternoon,

 Today I downloaded sqlite-amalgamation-3_6_22.zip from the  
 sqlite.org website because I was looking for a SQL database to  
 replace MS Access on my machine. I compiled sqlite3.c using a c  
 compiler and came up with this error:

[Linker error] undefined reference to `winm...@16'

 Can you help me?

Thanks,

> Gary Zigmann, MBA
> Clinical Data Analyst
> Gifford Medical Center
> gzigm...@giffordmed.org
> 
> This information is confidential. If you are not the intended recipient, 
> delete this e-mail and any attachments without forwarding it or retaining a 
> copy. To try to obtain permission to use this transmission or to notify the 
> sender of the error, call (802) 728-2135 or e-mail gzigm...@giffordmed.org.
> 
> 
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users