|
You last visited: Today at 02:37
Advertisement
[HELP]Creating a Lib
Discussion on [HELP]Creating a Lib within the Metin2 Private Server forum part of the Metin2 category.
09/01/2013, 17:02
|
#1
|
elite*gold: 0
Join Date: Dec 2009
Posts: 113
Received Thanks: 44
|
[HELP]Creating a Lib
I'm trying to create a lib to add functions to the game
But when I run the core, on the autorun.log it shows
Code:
./libgame2.so: unsupported file layout
If anyone could send me a shell script or something to compile it, I would appreciate
I'm using vrunner to add the LD_32_PRELOAD
Thanks
|
|
|
09/01/2013, 18:18
|
#2
|
elite*gold: 0
Join Date: Oct 2008
Posts: 1,637
Received Thanks: 1,119
|
How do you compile (and link) your lib?
|
|
|
09/01/2013, 19:30
|
#3
|
elite*gold: 0
Join Date: Dec 2009
Posts: 113
Received Thanks: 44
|
I type the g++ commands in the putty
Compiling Command ( example ):
Code:
g++48 -fexceptions -std=c++11 -Wall -fPIC -I/home/lib -c /home/lib/main.cpp -o /home/lib/obj/Release/main.o
Linking Command:
Code:
g++48 -o /home/lib/bin/libgame.so /home/lib/obj/Release/main.o -shared -lpthread -Wl,-soname=libgame.so -pthread -lz -lm -I/usr/local/include -L/usr/local/lib
|
|
|
09/01/2013, 21:58
|
#4
|
elite*gold: 0
Join Date: Oct 2008
Posts: 1,637
Received Thanks: 1,119
|
Try this:
Code:
g++48 -fexceptions -std=c++11 -Wall -fPIC -I/home/lib -c /home/lib/main.cpp -o /home/lib/obj/Release/main.o -m32
and
Code:
g++48 -o /home/lib/bin/libgame.so /home/lib/obj/Release/main.o -shared -lpthread -Wl,-soname=libgame.so -pthread -lz -lm -I/usr/local/include -L/usr/local/lib -m32
|
|
|
09/01/2013, 23:04
|
#5
|
elite*gold: 0
Join Date: Dec 2009
Posts: 113
Received Thanks: 44
|
I get this error when it reaches the part of #include <algorithm>
Code:
/usr/local/lib/gcc48/include/c++/bits/random.h:106:26: error: expected unqualified-id before '__int128'
{ typedef unsigned __int128 type; };
|
|
|
09/01/2013, 23:22
|
#6
|
elite*gold: 0
Join Date: Oct 2008
Posts: 1,637
Received Thanks: 1,119
|
Code:
typedef struct { int64_t[2] m; } int128_t, _int128_t, __int128_t, int128, _int128, __int128;
|
|
|
09/01/2013, 23:31
|
#7
|
elite*gold: 0
Join Date: Dec 2009
Posts: 113
Received Thanks: 44
|
Code:
error: expected unqualified-id before '__int128'
typedef struct { int64_t[2] m; } int128_t, _int128_t, __int128_t, int128, _int128, __int128;
|
|
|
09/01/2013, 23:32
|
#8
|
elite*gold: 0
Join Date: Oct 2008
Posts: 1,637
Received Thanks: 1,119
|
Just include the libs you need. Why do you need 128bit integers?
|
|
|
09/01/2013, 23:36
|
#9
|
elite*gold: 0
Join Date: Dec 2009
Posts: 113
Received Thanks: 44
|
I don't, it's included by boost/unordered_set. I'm using LibM2 by iMer
EDIT: Shouldn't I use the LD_PRELOAD and/or m64 because it's a amd x86-64 architeture
|
|
|
 |
Similar Threads
|
Creating my first npc.
07/12/2013 - CO2 Private Server - 9 Replies
I'm going to keep this brief and short just because it's already 12 am... ._.
I've been trying to implement my first Npc on Impulses base but I can't seem to make it happen. And for some reason the Npcs that spawn in-game are the ones I saw on the Albetros source which I use to mess around with before I realized I couldn't really do anything in terms of progress on it.
I did create a npcs table following the information given in the NpcSpawn packet but that however did not make a...
|
.c3 creating
08/18/2010 - CO2 Weapon, Armor, Effects & Interface edits - 1 Replies
First sorry if i can`t post questions here .
I wanna know how to create a new weap for example
i already have 3ds max 7 and dbc editor but i wanna know how do i import or create one in 3dsmax 7. anyone knows?
|
Creating a C++ GUI
06/30/2006 - Conquer Online 2 - 4 Replies
First of all, sorry to bother putting up a wasteful post. I have searched google for creating a C++ GUI but everything ends up going to creating multi-threading for a process. Maybe I just am not using the correct search terms but I have run out of narrowing keywords and anything too specific gives me no results. Through reading most articles a few articles in the MSDN library, I found nothing useful that could help me. I did learn that I could use C# for this task, but I really want to...
|
Creating Lag
02/27/2006 - Conquer Online 2 - 6 Replies
I wanna know how do you create lag for yourself in conquer, besides downloading some programme? LAg can be used in TG to leevel yourself hella crazy. Help please?
|
new bot creating by me
08/09/2005 - Conquer Online 2 - 58 Replies
this bot will hunt items, and wen the inventry is full, it will go threw each item and check it for +1 and supers elites etc, and drop any crap items, u have options like,exit on good item, keep on hunting, teleport with scroll etc.
BUT
its still under development :)
|
All times are GMT +1. The time now is 02:37.
|
|