Topic: linux ;)
hey ya GMan,
n e plans to launch a linux version of the mod?
i have got it to compile on linux by removing the #include <winsock.h> because as far as i can see its not used. however if i compile a program using the module i get:
Building main
Compiling:main.bmx
flat assembler version 1.64
3 passes, 9315 bytes.
Linking:main
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x57): In function `bmx_mysql_field_name':
mysql.cpp: undefined reference to `mysql_fetch_field_direct'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x93): In function `bmx_mysql_insert_id':
mysql.cpp: undefined reference to `mysql_insert_id'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0xab): In function `bmx_mysql_eof':
mysql.cpp: undefined reference to `mysql_eof'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x105): In function `bmx_mysql_field_length':
mysql.cpp: undefined reference to `mysql_fetch_lengths'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x136): In function `bmx_mysql_num_rows':
mysql.cpp: undefined reference to `mysql_num_rows'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x14a): In function `bmx_mysql_affected_rows':
mysql.cpp: undefined reference to `mysql_affected_rows'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x164): In function `bmx_mysql_real_query':
mysql.cpp: undefined reference to `mysql_real_query'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x187): In function `bmx_mysql_select_db':
mysql.cpp: undefined reference to `mysql_select_db'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x1bc): In function `bmx_mysql_real_connect':
mysql.cpp: undefined reference to `mysql_real_connect'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x216): In function `bmx_mysql_init':
mysql.cpp: undefined reference to `mysql_init'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x3c): In function `bmx_mysql_real_escape_string':
mysql.cpp: undefined reference to `mysql_real_escape_string'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x6c): In function `bmx_mysql_data_seek':
mysql.cpp: undefined reference to `mysql_data_seek'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x7e): In function `bmx_mysql_free_result':
mysql.cpp: undefined reference to `mysql_free_result'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0xc6): In function `bmx_mysql_fetch_row':
mysql.cpp: undefined reference to `mysql_fetch_row'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0xda): In function `bmx_mysql_use_result':
mysql.cpp: undefined reference to `mysql_use_result'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0xee): In function `bmx_mysql_store_result':
mysql.cpp: undefined reference to `mysql_store_result'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x11e): In function `bmx_mysql_num_fields':
mysql.cpp: undefined reference to `mysql_num_fields'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x1dc): In function `bmx_mysql_error':
mysql.cpp: undefined reference to `mysql_error'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x1f4): In function `bmx_mysql_errno':
mysql.cpp: undefined reference to `mysql_errno'
/home/gavin/bin/BlitzMax/mod/pub.mod/mysql.mod/mysql.release.linux.a(mysql.cpp.release.linux.o)(.text+0x20a): In function `bmx_mysql_close':
mysql.cpp: undefined reference to `mysql_close'
collect2: ld returned 1 exit status
Build Error: Failed to link /home/gavin/Desktop/game/main
Process complete
i have moved the lib file to the right location as well