Ok, I think I am a lot closer, only one error. The gslist.exe modified date hasn't changed, so pretty sure it didn't compile. Here is where I'm at:
- Removed occurences of -Wno-pointer-sign and gslist_icon.o from batch
- Added the file c:\mingw\lib\stristr.c, and updated the batch to match it's extension.
- Added the files from the zlib\include download to my c:\mingw\include directory
- Added the files from the zlib\lib download to my c:\mingw\lib directory
- Added the files from the zlib\manifest download to c:\mingw\manifest directory. (Not sure if I put this in the right directory. I didn't have a 'manifest' directory, but there was a 'man' directory, I wasn't sure if that was the same thing. So like I said I created a manifest directory).
- Removed c:\mingw\lib\libmysql.lib from the batch. (This might be related to error below. You are right, I don't need mySQL, and I didn't see this file in MinGW, so I removed the reference from the batch file).
At this point I tried running the batch, got errors, but they were basically the same as 'GeoIP.h: No such file or directory' above, so then I:
- Downloaded the geoip_145.zip and put the lib files and include files in their respective directories.
- Replaced -lGeoIP with c:\mingw\lib\libGeoIP.a c:\mingw\lib\libGeoIPUpdate.a in the batch.
Here what the batch currently looks like:
Code:
c:\mingw\bin\gcc -s -O2 -masm=intel -mtune=pentium -fexpensive-optimizations -Wall -Wunused-function -o gslist.exe gslist.c enctype1_decoder.c enctype2_decoder.c enctype_shared.c mydownlib.c c:\mingw\lib\stristr.c C:\mingw\lib\libGeoIP.a C:\mingw\lib\libGeoIPUpdate.a -DGSWEB c:\mingw\lib\libz.a c:\mingw\lib\libws2_32.a
c:\mingw\bin\gcc -s -O2 -masm=intel -mtune=pentium -fexpensive-optimizations -Wall -Wunused-function -o gslistweb.exe gslist.c enctype1_decoder.c enctype2_decoder.c enctype_shared.c mydownlib.c c:\mingw\lib\stristr.c C:\mingw\lib\libGeoIP.a C:\mingw\lib\libGeoIPUpdate.a -DGSWEB -DWINTRAY c:\mingw\lib\libz.a c:\mingw\lib\libws2_32.a
c:\mingw\bin\gcc -s -O2 -masm=intel -mtune=pentium -fexpensive-optimizations -Wall -Wunused-function -o gslistsql.exe gslist.c enctype1_decoder.c enctype2_decoder.c enctype_shared.c mydownlib.c c:\mingw\lib\stristr.c C:\mingw\lib\libGeoIP.a C:\mingw\lib\libGeoIPUpdate.a -DGSWEB -DSQL c:\mingw\lib\libz.a c:\mingw\lib\libws2_32.a
And here is the result:
Code:
C:\under\grams\gslist\src>c:\mingw\bin\gcc -s -O2 -masm=intel -mtune=pentium -fexpensive-optimizatio
ns -Wall -Wunused-function -o gslist.exe gslist.c enctype1_decoder.c enctype2_decoder.c enctype_shar
ed.c mydownlib.c c:\mingw\lib\stristr.c C:\mingw\lib\libGeoIP.a C:\mingw\lib\libGeoIPUpdate.a -DGSWE
B c:\mingw\lib\libz.a c:\mingw\lib\libws2_32.a
In file included from gslist.c:348:
gsmyfunc.h: In function `replace':
gsmyfunc.h:389: warning: implicit declaration of function `stristr'
mydownlib.c: In function `mydown_http2file':
mydownlib.c:666: warning: implicit declaration of function `stristr'
C:\under\grams\gslist\src>c:\mingw\bin\gcc -s -O2 -masm=intel -mtune=pentium -fexpensive-optimizatio
ns -Wall -Wunused-function -o gslistweb.exe gslist.c enctype1_decoder.c enctype2_decoder.c enctype_s
hared.c mydownlib.c c:\mingw\lib\stristr.c C:\mingw\lib\libGeoIP.a C:\mingw\lib\libGeoIPUpdate.a -DG
SWEB -DWINTRAY c:\mingw\lib\libz.a c:\mingw\lib\libws2_32.a
In file included from gslist.c:348:
gsmyfunc.h: In function `replace':
gsmyfunc.h:389: warning: implicit declaration of function `stristr'
mydownlib.c: In function `mydown_http2file':
mydownlib.c:666: warning: implicit declaration of function `stristr'
C:\under\grams\gslist\src>c:\mingw\bin\gcc -s -O2 -masm=intel -mtune=pentium -fexpensive-optimizatio
ns -Wall -Wunused-function -o gslistsql.exe gslist.c enctype1_decoder.c enctype2_decoder.c enctype_s
hared.c mydownlib.c c:\mingw\lib\stristr.c C:\mingw\lib\libGeoIP.a C:\mingw\lib\libGeoIPUpdate.a -DG
SWEB -DSQL c:\mingw\lib\libz.a c:\mingw\lib\libws2_32.a
In file included from gslist.c:348:
gsmyfunc.h: In function `replace':
gsmyfunc.h:389: warning: implicit declaration of function `stristr'
In file included from gslist.c:359:
gssql.h:21:25: mysql/mysql.h: No such file or directory
In file included from gslist.c:359:
gssql.h: At top level:
gssql.h:30: error: syntax error before "dbase"
gssql.h:30: warning: type defaults to `int' in declaration of `dbase'
gssql.h:30: warning: data definition has no type or storage class
gssql.h: In function `gssql_init':
gssql.h:121: warning: implicit declaration of function `mysql_init'
gssql.h:125: warning: implicit declaration of function `mysql_real_connect'
gssql.h:126: warning: implicit declaration of function `mysql_error'
gssql.h:126: warning: format argument is not a pointer (arg 3)
gssql.h: In function `gssql_later':
gssql.h:143: warning: implicit declaration of function `mysql_real_query'
gssql.h:144: warning: format argument is not a pointer (arg 3)
gssql.h:149: warning: implicit declaration of function `mysql_affected_rows'
gssql.h: In function `gssql_close':
gssql.h:161: warning: implicit declaration of function `mysql_close'
gssql.h: In function `gssql':
gssql.h:189: warning: format argument is not a pointer (arg 3)
gssql.h:204: warning: format argument is not a pointer (arg 3)
mydownlib.c: In function `mydown_http2file':
mydownlib.c:666: warning: implicit declaration of function `stristr'
Do I need to compile with mySQL even though I don't need it? If I do need it, could you post a link where I could download it?
Thankyou.