Author |
Message |
Cheese Wow Cheese is so helpful!

Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: 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:
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. _________________ SSC Distension Owner
SSCU Trench Wars Developer |
|
Back to top |
|
 |
cReEmY Novice

Age:40 Gender: Joined: Sep 07 2006 Posts: 48 Location: New York Offline
|
Posted: Wed Mar 21, 2007 4:34 pm Post subject: |
 |
|
|
|
you know c++? |
|
Back to top |
|
 |
Cheese Wow Cheese is so helpful!

Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: 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 |
|
Back to top |
|
 |
cReEmY Novice

Age:40 Gender: Joined: Sep 07 2006 Posts: 48 Location: New York Offline
|
Posted: Wed Mar 21, 2007 6:33 pm Post subject: |
 |
|
|
|
sry but cant help. I only know java  |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
 |
BugZapper Guest
Offline
|
Posted: 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 |
|
Back to top |
|
 |
Witchie NL Seasoned Helper
Age:35 Gender: Joined: Jul 24 2005 Posts: 112 Location: Veere, Zeeland, Netherlands Offline
|
Posted: Tue May 08, 2007 3:18 am Post subject: |
 |
|
|
|
I dont see the problem?  |
|
Back to top |
|
 |
|