Re: [sqlite] Compiling the linux package on windows using LCC ?

2007-03-11 Thread John Stanton
There is a source distribution which has been configured for Windows on 
the Sqlite website.  Try starting with that.


If you use the regular source distribution you need to have an 
environment where you can run the configure shell script to customize 
the distribution to your OS.


Gussimulator wrote:
I generated this make with LCC ide, thats why I dont understand the 
reason of my problem!


I tried using GCC but when I run the make with the included makefile I 
get "nothing to be done for..." . Im getting quite frustrated by now.





- Original Message - From: "John Stanton" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, March 10, 2007 10:52 PM
Subject: Re: [sqlite] Compiling the linux package on windows using LCC ?


From my recollection the lcc make is not syntax compatible with 
standard make.  I have always used the lcc make within its own IDE so 
that the make file is generated by the lcc IDE.


You could use a regular make and just subsitute the CC definition for 
the lcc compiler.  You might find the need to substitute link library 
definitions as well.


GCC holds is the solution to your problem.

Gussimulator wrote:


Thanks for the info.
Im trying with the LCC ide but I get odd errors while trying to compile:

"c:\lcc\bin\make.exe: Commands defined twice for target where.obj 
near line 87"
I was getting a similar error with another file, I remade the project 
and now Im getting the same error on a different file.


What could be causing it?

Thanks.




- Original Message - From: "John Stanton" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, March 10, 2007 4:02 PM
Subject: Re: [sqlite] Compiling the linux package on windows using LCC ?


GCC will compile you a library usable with a broad range of C 
compilers.


If you find the gcc library unusable use the makefile as the basis 
for compiling it using lcc.  I use lcc and gcc (mingw) 
interchangably.  GCC has optimization but if you write elegant and 
efficient C lcc will generate excellent code and compiles very fast.


If you get the options correct you can compile each module using lcc 
or use the lcc IDE to compile them all at once then use ar to build 
a link library.  The makefile generated by configure and gcc or the 
one in the Sqlite Windows zip file will give you a template to follow.


I recollect that compiling Sqlite under lcc was not a big deal, but 
it was a long time back for me and I cannot recall the precise 
details. Now I use gcc to build the static library and have a 
compiler which works identically on all flavors of Windows, Linux, 
AIX and Solaris.


If you want dynamic linking to a DLL you need to look at the lcc 
documentation to see precisely how it is done.


Gussimulator wrote:

GCC?, I need to use the resulting DLL on normal C under windows 
later on, without having strange dependencies, etc.


I'd like to know what am I doing wrong when I try to compile the 
sources... Do I have to output obj for each source and then somehow 
link this into the final library?





- Original Message - From: "John Stanton" 
<[EMAIL PROTECTED]>

To: 
Sent: Friday, March 09, 2007 2:10 PM
Subject: Re: [sqlite] Compiling the linux package on windows using 
LCC ?




Gussimulator wrote:

Hi, I would like to compile the tar version of the sources using 
LCC under Windows.


Since I'm not a *nix guy, I don't know where to start, because my 
little linux knowledge played against me. Heres the problem, I 
tried using the makefile with make.exe from LCC but that didnt 
work out (it said it couldn't open the makefile...) so I tried 
the config but I dont know which tool handles this, so I was back 
to square one...


So I began questioning myself... Would it even be possible to 
compile this package under windows with LCC?


I want to perform a static compilation, so I can statically link 
the library on my application. However I'd still be happy if I 
could compile as a dynamic lib.


Now that I'm at it, I would like to suggest for the windows 
build, that the required .exp or .lib be added on the package as 
well, since this allows for easier linking on applications - at 
least under my environment (I'm sure others would like this as 
well - However, being able to compile the source by myself would 
take care of this issue).


Thanks.




A simple way is to compile it under gcc then use LCC.

After you have compiled with gcc you may discover that to use LCC 
does not make a lot of sense since my experience with both 
compilers is that lcc is very well implemented but lacks the level 
of optimization available with gcc.  A static library created with 
gcc will work with your lcc programs if you are using lcc for your 
applications to take advantage of some of its clever extensions to 
regular C.


--

Re: [sqlite] Compiling the linux package on windows using LCC ?

2007-03-10 Thread Gussimulator
I generated this make with LCC ide, thats why I dont understand the reason 
of my problem!


I tried using GCC but when I run the make with the included makefile I get 
"nothing to be done for..." . Im getting quite frustrated by now.





- Original Message - 
From: "John Stanton" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, March 10, 2007 10:52 PM
Subject: Re: [sqlite] Compiling the linux package on windows using LCC ?


From my recollection the lcc make is not syntax compatible with standard 
make.  I have always used the lcc make within its own IDE so that the make 
file is generated by the lcc IDE.


You could use a regular make and just subsitute the CC definition for the 
lcc compiler.  You might find the need to substitute link library 
definitions as well.


GCC holds is the solution to your problem.

Gussimulator wrote:

Thanks for the info.
Im trying with the LCC ide but I get odd errors while trying to compile:

"c:\lcc\bin\make.exe: Commands defined twice for target where.obj near 
line 87"
I was getting a similar error with another file, I remade the project and 
now Im getting the same error on a different file.


What could be causing it?

Thanks.




- Original Message - From: "John Stanton" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, March 10, 2007 4:02 PM
Subject: Re: [sqlite] Compiling the linux package on windows using LCC ?



GCC will compile you a library usable with a broad range of C compilers.

If you find the gcc library unusable use the makefile as the basis for 
compiling it using lcc.  I use lcc and gcc (mingw) interchangably.  GCC 
has optimization but if you write elegant and efficient C lcc will 
generate excellent code and compiles very fast.


If you get the options correct you can compile each module using lcc or 
use the lcc IDE to compile them all at once then use ar to build a link 
library.  The makefile generated by configure and gcc or the one in the 
Sqlite Windows zip file will give you a template to follow.


I recollect that compiling Sqlite under lcc was not a big deal, but it 
was a long time back for me and I cannot recall the precise details. Now 
I use gcc to build the static library and have a compiler which works 
identically on all flavors of Windows, Linux, AIX and Solaris.


If you want dynamic linking to a DLL you need to look at the lcc 
documentation to see precisely how it is done.


Gussimulator wrote:

GCC?, I need to use the resulting DLL on normal C under windows later 
on, without having strange dependencies, etc.


I'd like to know what am I doing wrong when I try to compile the 
sources... Do I have to output obj for each source and then somehow 
link this into the final library?





- Original Message - From: "John Stanton" <[EMAIL PROTECTED]>
To: 
Sent: Friday, March 09, 2007 2:10 PM
Subject: Re: [sqlite] Compiling the linux package on windows using LCC 
?




Gussimulator wrote:

Hi, I would like to compile the tar version of the sources using LCC 
under Windows.


Since I'm not a *nix guy, I don't know where to start, because my 
little linux knowledge played against me. Heres the problem, I tried 
using the makefile with make.exe from LCC but that didnt work out (it 
said it couldn't open the makefile...) so I tried the config but I 
dont know which tool handles this, so I was back to square one...


So I began questioning myself... Would it even be possible to compile 
this package under windows with LCC?


I want to perform a static compilation, so I can statically link the 
library on my application. However I'd still be happy if I could 
compile as a dynamic lib.


Now that I'm at it, I would like to suggest for the windows build, 
that the required .exp or .lib be added on the package as well, since 
this allows for easier linking on applications - at least under my 
environment (I'm sure others would like this as well - However, being 
able to compile the source by myself would take care of this issue).


Thanks.



A simple way is to compile it under gcc then use LCC.

After you have compiled with gcc you may discover that to use LCC does 
not make a lot of sense since my experience with both compilers is 
that lcc is very well implemented but lacks the level of optimization 
available with gcc.  A static library created with gcc will work with 
your lcc programs if you are using lcc for your applications to take 
advantage of some of its clever extensions to regular C.


-


To unsubscribe, send email to [EMAIL PROTECTED]
-






-


To unsubscribe, send email to [EMAIL PROTECTED]
-







Re: [sqlite] Compiling the linux package on windows using LCC ?

2007-03-10 Thread John Stanton
From my recollection the lcc make is not syntax compatible with 
standard make.  I have always used the lcc make within its own IDE so 
that the make file is generated by the lcc IDE.


You could use a regular make and just subsitute the CC definition for 
the lcc compiler.  You might find the need to substitute link library 
definitions as well.


GCC holds is the solution to your problem.

Gussimulator wrote:

Thanks for the info.
Im trying with the LCC ide but I get odd errors while trying to compile:

"c:\lcc\bin\make.exe: Commands defined twice for target where.obj near 
line 87"
I was getting a similar error with another file, I remade the project 
and now Im getting the same error on a different file.


What could be causing it?

Thanks.




- Original Message - From: "John Stanton" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, March 10, 2007 4:02 PM
Subject: Re: [sqlite] Compiling the linux package on windows using LCC ?



GCC will compile you a library usable with a broad range of C compilers.

If you find the gcc library unusable use the makefile as the basis for 
compiling it using lcc.  I use lcc and gcc (mingw) interchangably.  
GCC has optimization but if you write elegant and efficient C lcc will 
generate excellent code and compiles very fast.


If you get the options correct you can compile each module using lcc 
or use the lcc IDE to compile them all at once then use ar to build a 
link library.  The makefile generated by configure and gcc or the one 
in the Sqlite Windows zip file will give you a template to follow.


I recollect that compiling Sqlite under lcc was not a big deal, but it 
was a long time back for me and I cannot recall the precise details. 
Now I use gcc to build the static library and have a compiler which 
works identically on all flavors of Windows, Linux, AIX and Solaris.


If you want dynamic linking to a DLL you need to look at the lcc 
documentation to see precisely how it is done.


Gussimulator wrote:

GCC?, I need to use the resulting DLL on normal C under windows later 
on, without having strange dependencies, etc.


I'd like to know what am I doing wrong when I try to compile the 
sources... Do I have to output obj for each source and then somehow 
link this into the final library?





- Original Message - From: "John Stanton" <[EMAIL PROTECTED]>
To: 
Sent: Friday, March 09, 2007 2:10 PM
Subject: Re: [sqlite] Compiling the linux package on windows using LCC ?



Gussimulator wrote:

Hi, I would like to compile the tar version of the sources using 
LCC under Windows.


Since I'm not a *nix guy, I don't know where to start, because my 
little linux knowledge played against me. Heres the problem, I 
tried using the makefile with make.exe from LCC but that didnt work 
out (it said it couldn't open the makefile...) so I tried the 
config but I dont know which tool handles this, so I was back to 
square one...


So I began questioning myself... Would it even be possible to 
compile this package under windows with LCC?


I want to perform a static compilation, so I can statically link 
the library on my application. However I'd still be happy if I 
could compile as a dynamic lib.


Now that I'm at it, I would like to suggest for the windows build, 
that the required .exp or .lib be added on the package as well, 
since this allows for easier linking on applications - at least 
under my environment (I'm sure others would like this as well - 
However, being able to compile the source by myself would take care 
of this issue).


Thanks.



A simple way is to compile it under gcc then use LCC.

After you have compiled with gcc you may discover that to use LCC 
does not make a lot of sense since my experience with both compilers 
is that lcc is very well implemented but lacks the level of 
optimization available with gcc.  A static library created with gcc 
will work with your lcc programs if you are using lcc for your 
applications to take advantage of some of its clever extensions to 
regular C.


- 



To unsubscribe, send email to [EMAIL PROTECTED]
- 







- 



To unsubscribe, send email to [EMAIL PROTECTED]
- 







- 


To unsubscribe, send email to [EMAIL PROTECTED]
- 






- 


To unsubscribe, send email to [EMAIL PROTECTED]
- 






-

Re: [sqlite] Compiling the linux package on windows using LCC ?

2007-03-10 Thread Gussimulator

Thanks for the info.
Im trying with the LCC ide but I get odd errors while trying to compile:

"c:\lcc\bin\make.exe: Commands defined twice for target where.obj near line 
87"
I was getting a similar error with another file, I remade the project and 
now Im getting the same error on a different file.


What could be causing it?

Thanks.




- Original Message - 
From: "John Stanton" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, March 10, 2007 4:02 PM
Subject: Re: [sqlite] Compiling the linux package on windows using LCC ?



GCC will compile you a library usable with a broad range of C compilers.

If you find the gcc library unusable use the makefile as the basis for 
compiling it using lcc.  I use lcc and gcc (mingw) interchangably.  GCC 
has optimization but if you write elegant and efficient C lcc will 
generate excellent code and compiles very fast.


If you get the options correct you can compile each module using lcc or 
use the lcc IDE to compile them all at once then use ar to build a link 
library.  The makefile generated by configure and gcc or the one in the 
Sqlite Windows zip file will give you a template to follow.


I recollect that compiling Sqlite under lcc was not a big deal, but it was 
a long time back for me and I cannot recall the precise details. Now I use 
gcc to build the static library and have a compiler which works 
identically on all flavors of Windows, Linux, AIX and Solaris.


If you want dynamic linking to a DLL you need to look at the lcc 
documentation to see precisely how it is done.


Gussimulator wrote:
GCC?, I need to use the resulting DLL on normal C under windows later on, 
without having strange dependencies, etc.


I'd like to know what am I doing wrong when I try to compile the 
sources... Do I have to output obj for each source and then somehow link 
this into the final library?





- Original Message - From: "John Stanton" <[EMAIL PROTECTED]>
To: 
Sent: Friday, March 09, 2007 2:10 PM
Subject: Re: [sqlite] Compiling the linux package on windows using LCC ?



Gussimulator wrote:

Hi, I would like to compile the tar version of the sources using LCC 
under Windows.


Since I'm not a *nix guy, I don't know where to start, because my 
little linux knowledge played against me. Heres the problem, I tried 
using the makefile with make.exe from LCC but that didnt work out (it 
said it couldn't open the makefile...) so I tried the config but I dont 
know which tool handles this, so I was back to square one...


So I began questioning myself... Would it even be possible to compile 
this package under windows with LCC?


I want to perform a static compilation, so I can statically link the 
library on my application. However I'd still be happy if I could 
compile as a dynamic lib.


Now that I'm at it, I would like to suggest for the windows build, that 
the required .exp or .lib be added on the package as well, since this 
allows for easier linking on applications - at least under my 
environment (I'm sure others would like this as well - However, being 
able to compile the source by myself would take care of this issue).


Thanks.


A simple way is to compile it under gcc then use LCC.

After you have compiled with gcc you may discover that to use LCC does 
not make a lot of sense since my experience with both compilers is that 
lcc is very well implemented but lacks the level of optimization 
available with gcc.  A static library created with gcc will work with 
your lcc programs if you are using lcc for your applications to take 
advantage of some of its clever extensions to regular C.


-

To unsubscribe, send email to [EMAIL PROTECTED]
-





-

To unsubscribe, send email to [EMAIL PROTECTED]
-





-
To unsubscribe, send email to [EMAIL PROTECTED]
-




-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] Compiling the linux package on windows using LCC ?

2007-03-10 Thread John Stanton

GCC will compile you a library usable with a broad range of C compilers.

If you find the gcc library unusable use the makefile as the basis for 
compiling it using lcc.  I use lcc and gcc (mingw) interchangably.  GCC 
has optimization but if you write elegant and efficient C lcc will 
generate excellent code and compiles very fast.


If you get the options correct you can compile each module using lcc or 
use the lcc IDE to compile them all at once then use ar to build a link 
library.  The makefile generated by configure and gcc or the one in the 
Sqlite Windows zip file will give you a template to follow.


I recollect that compiling Sqlite under lcc was not a big deal, but it 
was a long time back for me and I cannot recall the precise details. 
Now I use gcc to build the static library and have a compiler which 
works identically on all flavors of Windows, Linux, AIX and Solaris.


If you want dynamic linking to a DLL you need to look at the lcc 
documentation to see precisely how it is done.


Gussimulator wrote:
GCC?, I need to use the resulting DLL on normal C under windows later 
on, without having strange dependencies, etc.


I'd like to know what am I doing wrong when I try to compile the 
sources... Do I have to output obj for each source and then somehow link 
this into the final library?





- Original Message - From: "John Stanton" <[EMAIL PROTECTED]>
To: 
Sent: Friday, March 09, 2007 2:10 PM
Subject: Re: [sqlite] Compiling the linux package on windows using LCC ?



Gussimulator wrote:

Hi, I would like to compile the tar version of the sources using LCC 
under Windows.


Since I'm not a *nix guy, I don't know where to start, because my 
little linux knowledge played against me. Heres the problem, I tried 
using the makefile with make.exe from LCC but that didnt work out (it 
said it couldn't open the makefile...) so I tried the config but I 
dont know which tool handles this, so I was back to square one...


So I began questioning myself... Would it even be possible to compile 
this package under windows with LCC?


I want to perform a static compilation, so I can statically link the 
library on my application. However I'd still be happy if I could 
compile as a dynamic lib.


Now that I'm at it, I would like to suggest for the windows build, 
that the required .exp or .lib be added on the package as well, since 
this allows for easier linking on applications - at least under my 
environment (I'm sure others would like this as well - However, being 
able to compile the source by myself would take care of this issue).


Thanks.


A simple way is to compile it under gcc then use LCC.

After you have compiled with gcc you may discover that to use LCC does 
not make a lot of sense since my experience with both compilers is 
that lcc is very well implemented but lacks the level of optimization 
available with gcc.  A static library created with gcc will work with 
your lcc programs if you are using lcc for your applications to take 
advantage of some of its clever extensions to regular C.


- 


To unsubscribe, send email to [EMAIL PROTECTED]
- 






- 


To unsubscribe, send email to [EMAIL PROTECTED]
- 






-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] Compiling the linux package on windows using LCC ?

2007-03-10 Thread Gussimulator
GCC?, I need to use the resulting DLL on normal C under windows later on, 
without having strange dependencies, etc.


I'd like to know what am I doing wrong when I try to compile the sources... 
Do I have to output obj for each source and then somehow link this into the 
final library?





- Original Message - 
From: "John Stanton" <[EMAIL PROTECTED]>

To: 
Sent: Friday, March 09, 2007 2:10 PM
Subject: Re: [sqlite] Compiling the linux package on windows using LCC ?



Gussimulator wrote:
Hi, I would like to compile the tar version of the sources using LCC 
under Windows.


Since I'm not a *nix guy, I don't know where to start, because my little 
linux knowledge played against me. Heres the problem, I tried using the 
makefile with make.exe from LCC but that didnt work out (it said it 
couldn't open the makefile...) so I tried the config but I dont know 
which tool handles this, so I was back to square one...


So I began questioning myself... Would it even be possible to compile 
this package under windows with LCC?


I want to perform a static compilation, so I can statically link the 
library on my application. However I'd still be happy if I could compile 
as a dynamic lib.


Now that I'm at it, I would like to suggest for the windows build, that 
the required .exp or .lib be added on the package as well, since this 
allows for easier linking on applications - at least under my environment 
(I'm sure others would like this as well - However, being able to compile 
the source by myself would take care of this issue).


Thanks.

A simple way is to compile it under gcc then use LCC.

After you have compiled with gcc you may discover that to use LCC does not 
make a lot of sense since my experience with both compilers is that lcc is 
very well implemented but lacks the level of optimization available with 
gcc.  A static library created with gcc will work with your lcc programs 
if you are using lcc for your applications to take advantage of some of 
its clever extensions to regular C.


-
To unsubscribe, send email to [EMAIL PROTECTED]
-




-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] Compiling the linux package on windows using LCC ?

2007-03-09 Thread John Stanton

Gussimulator wrote:

Hi, I would like to compile the tar version of the sources using LCC under 
Windows.

Since I'm not a *nix guy, I don't know where to start, because my little linux knowledge played against me. 
Heres the problem, I tried using the makefile with make.exe from LCC but that didnt work out (it said it couldn't open the makefile...) so I tried the config but I dont know which tool handles this, so I was back to square one...


So I began questioning myself... 
Would it even be possible to compile this package under windows with LCC?


I want to perform a static compilation, so I can statically link the library on 
my application. However I'd still be happy if I could compile as a dynamic lib.

Now that I'm at it, I would like to suggest for the windows build, that the 
required .exp or .lib be added on the package as well, since this allows for 
easier linking on applications - at least under my environment (I'm sure others 
would like this as well - However, being able to compile the source by myself 
would take care of this issue).

Thanks.

A simple way is to compile it under gcc then use LCC.

After you have compiled with gcc you may discover that to use LCC does 
not make a lot of sense since my experience with both compilers is that 
lcc is very well implemented but lacks the level of optimization 
available with gcc.  A static library created with gcc will work with 
your lcc programs if you are using lcc for your applications to take 
advantage of some of its clever extensions to regular C.


-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] Compiling the linux package on windows using LCC ?

2007-03-09 Thread Gussimulator

I'd like to update on my current status regarding the subject.

After 3 and a half headaches, I managed to output an obj and link it with 
the definitions file.

However:

(using pseudo-paths for the sake of readability)

1) In LCC I'm using the following switches:

   /ansic /o "path-for\output.obj" "path-to\main.c"
   It produces 0 errors and 27 warnings.. I believe I can move on from 
here, despite warnings.


2) In LCCLNK I'm using the following:

   /dll "path-to\output.obj" "path-to\sqlite3.def"
   I'm getting a ton of "Specified export XX is not defined"
   ...And later on a "Missing exports. Aborting" message.


Why is this happening?, did I compiled it wrong or the exports file I've got 
is not the correct one? (from dll package - sqlite3 website).


Perhaps compiling just main.c is not how it should be done? if so, what 
should I do in order to properly compile all the sources? - This time I'm 
using the "pre-processed" version of the sources for windows, since I gave 
up on the other package...



Thanks again.




- Original Message ----- 
From: "Gussimulator" <[EMAIL PROTECTED]>

To: 
Sent: Friday, March 09, 2007 12:59 PM
Subject: [sqlite] Compiling the linux package on windows using LCC ?


Hi, I would like to compile the tar version of the sources using LCC under 
Windows.


Since I'm not a *nix guy, I don't know where to start, because my little 
linux knowledge played against me.
Heres the problem, I tried using the makefile with make.exe from LCC but 
that didnt work out (it said it couldn't open the makefile...) so I tried 
the config but I dont know which tool handles this, so I was back to square 
one...


So I began questioning myself...
Would it even be possible to compile this package under windows with LCC?

I want to perform a static compilation, so I can statically link the library 
on my application. However I'd still be happy if I could compile as a 
dynamic lib.


Now that I'm at it, I would like to suggest for the windows build, that the 
required .exp or .lib be added on the package as well, since this allows for 
easier linking on applications - at least under my environment (I'm sure 
others would like this as well - However, being able to compile the source 
by myself would take care of this issue).


Thanks. 



-
To unsubscribe, send email to [EMAIL PROTECTED]
-



[sqlite] Compiling the linux package on windows using LCC ?

2007-03-09 Thread Gussimulator
Hi, I would like to compile the tar version of the sources using LCC under 
Windows.

Since I'm not a *nix guy, I don't know where to start, because my little linux 
knowledge played against me. 
Heres the problem, I tried using the makefile with make.exe from LCC but that 
didnt work out (it said it couldn't open the makefile...) so I tried the config 
but I dont know which tool handles this, so I was back to square one...

So I began questioning myself... 
Would it even be possible to compile this package under windows with LCC?

I want to perform a static compilation, so I can statically link the library on 
my application. However I'd still be happy if I could compile as a dynamic lib.

Now that I'm at it, I would like to suggest for the windows build, that the 
required .exp or .lib be added on the package as well, since this allows for 
easier linking on applications - at least under my environment (I'm sure others 
would like this as well - However, being able to compile the source by myself 
would take care of this issue).

Thanks.