Server Help

Bot Questions - Compiling with Dev-C++

Cheese - Tue Mar 20, 2007 5:16 am
Post subject: Compiling with Dev-C++
im going to be creating the next mervbot.
but 1st, i need to make a dll for it. xD

so i downloaded mervbot v46 and tutorial

i put bot in
desktop>mervbot

unzipped src to
desktop>mervbot>src

unzipped tutorial to
desktop>mervbot>src>tutorial

HOWEVER:
tutorial didnt have only command.cpp, spawn.h/.cpp, and a project file.
it has like 20 other files in 2 folders.
what are they for?

also:
i took those 3 down from
desktop>mervbot>src>tutorial>default
to
desktop>mervbot>src>tutorial

and compiled a dll successfully.

i got this though:
Code: Show/Hide

Compiler: Default compiler
Building Makefile: "\Desktop\MERVBot\src\Tutorial\Makefile.win"
Executing  make...
make.exe -f "\Desktop\MERVBot\src\Tutorial\Makefile.win" all
g++.exe -c spawn.cpp -o Debug/spawn.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -DBUILDING_DLL=1 

In file included from spawn.h:11,
                 from spawn.cpp:1:
..\clientprot.h:240: warning: malformed '#pragma pack(push[, id], <n>)' - ignored
..\clientprot.h:458: warning: #pragma pack (pop) encountered without matching #pragma pack (push, <n>)

In file included from spawn.h:11,
                 from spawn.cpp:1:
..\clientprot.h:467: warning: malformed '#pragma pack(push[, id], <n>)' - ignored

..\clientprot.h:524: warning: #pragma pack (pop) encountered without matching #pragma pack (push, <n>)

spawn.cpp:11:1: warning: "UNASSIGNED" redefined
In file included from spawn.h:11,
                 from spawn.cpp:1:
..\clientprot.h:14:1: warning: this is the location of the previous definition
spawn.cpp: In member function `void botInfo::gotEvent(BotEvent&)':
spawn.cpp:185: warning: cast from pointer to integer of different size

g++.exe -c command.cpp -o Debug/command.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -DBUILDING_DLL=1 

In file included from spawn.h:11,
                 from command.cpp:1:
..\clientprot.h:240: warning: malformed '#pragma pack(push[, id], <n>)' - ignored
..\clientprot.h:458: warning: #pragma pack (pop) encountered without matching #pragma pack (push, <n>)

In file included from spawn.h:11,
                 from command.cpp:1:
..\clientprot.h:467: warning: malformed '#pragma pack(push[, id], <n>)' - ignored

..\clientprot.h:524: warning: #pragma pack (pop) encountered without matching #pragma pack (push, <n>)

dllwrap.exe --output-def libDefault.def --driver-name c++ --implib libDefault.a Debug/spawn.o Debug/command.o  -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias   -o Default.dll

dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want

Execution terminated
Compilation successful


shall i start making my dll and ignore that? ^


so there are my 2 questions.
cReEmY - Wed Mar 21, 2007 4:34 pm
Post subject:
you know c++?
Cheese - Wed Mar 21, 2007 4:43 pm
Post subject:
well enough to make something, but not well enough to know what went wrong when it crashes...

: D
cReEmY - Wed Mar 21, 2007 6:33 pm
Post subject:
sry but cant help. I only know java icon_sad.gif
Bak - Wed Mar 21, 2007 9:10 pm
Post subject:
try using the .dll that it created with mervcore and see if you can load the plugin and use !about and such.
Anonymous - Tue May 08, 2007 3:02 am
Post subject:
Quote:
shall i start making my dll and ignore that? ^


YES, I didnt look threw it all, but these warnings are common.


Basicly if Dev-C++ compiled the dll, then its ok
Witchie NL - Tue May 08, 2007 3:18 am
Post subject:
Code: Show/Hide
Compilation successful


I dont see the problem? icon_surprised.gif
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group