• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling [Linker error] undefined reference to `luaopen_luasql_mysql'

zeruel_angel

New Member
Joined
Apr 19, 2008
Messages
26
Reaction score
0
Location
M.I.A.
HI, I am trying to compile the last "TAG" SVN

I use:

- Win XP SP 2
- TFSdev-c++ 1.5
- libmysql 5.0.5 (I downloaded it myself)
- Lua 5.1.2 (I downloaded it myself)

But when I compile I get this error message:
Code:
  [Linker error] undefined reference to `luaopen_luasql_mysql'
I have already tryed using LUA 5.0 and 5.2.1 and even using "luaopen_luasqlmysql" as suggested in "Kepler project" mail list.

Actually I have all this package:


All of them are the lastest one found in AUTOUPDATE option of the dev-c++.

Am I missing something? please help me.

See you later!
 
I fixed it..
Use this in linkers
Code:
-lxml2.dll
-lmysql
-lsqlite3
-lluasql_mysql
-lluasql_sqlite
-llua5.1
-lboost_system
-lboost_regex
-lws2_32
-lgmp
-lmswsock
-O1
-s

Ps: if it doesnt work download lastest boost
;)
 
THANK YOU A LOT!

But It didn't worked up for me...

I'm using:
[/code]
-D__USE_MYSQL__
[/code]
Code:
-lxml2.dll
-lmysql
-lluasql_mysql
-llua5.1
-lboost_system
-lboost_regex
-lws2_32
-lgmp
-lmswsock
-O1
-s
And I tried to download the lastest things too! Its seems that i'm lacking something somewhere....

Don't worry I managed to get a compiled file so I'm not in a rush now, but still in a need of solution...

This is so weird I even installed those LUA package manually...

Well I will try to do some more research.

Again, THANK YOU VERY MUCH FOR TRYING TO HELP!!!!!!!!!!!!!

See you later!
 
Back
Top