Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Compiling with Dev-C++

 
Post new topic   Reply to topic Printable version
 View previous topic  C++ Linker error... I don't get it Post :: Post Squad match plugins  View next topic  
Author Message
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Tue Mar 20, 2007 5:16 am    Post subject: Compiling with Dev-C++ Reply to topic Reply with quote

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.
_________________
SSC Distension Owner
SSCU Trench Wars Developer
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
cReEmY
Novice


Age:40
Gender:Gender:Male
Joined: Sep 07 2006
Posts: 48
Location: New York
Offline

PostPosted: Wed Mar 21, 2007 4:34 pm    Post subject: Reply to topic Reply with quote

you know c++?
Back to top
View users profile Send private message Add User to Ignore List Send email
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Wed Mar 21, 2007 4:43 pm    Post subject: Reply to topic Reply with quote

well enough to make something, but not well enough to know what went wrong when it crashes...

: D
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
cReEmY
Novice


Age:40
Gender:Gender:Male
Joined: Sep 07 2006
Posts: 48
Location: New York
Offline

PostPosted: Wed Mar 21, 2007 6:33 pm    Post subject: Reply to topic Reply with quote

sry but cant help. I only know java icon_sad.gif
Back to top
View users profile Send private message Add User to Ignore List Send email
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Wed Mar 21, 2007 9:10 pm    Post subject: Reply to topic Reply with quote

try using the .dll that it created with mervcore and see if you can load the plugin and use !about and such.
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
BugZapper
Guest


Offline

PostPosted: Tue May 08, 2007 3:02 am    Post subject: Reply to topic Reply with quote

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:Gender:Male
Joined: Jul 24 2005
Posts: 112
Location: Veere, Zeeland, Netherlands
Offline

PostPosted: Tue May 08, 2007 3:18 am    Post subject: Reply to topic Reply with quote

Code: Show/Hide
Compilation successful


I dont see the problem? icon_surprised.gif
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 281 page(s) served in previous 5 minutes.

phpBB Created this page in 0.538606 seconds : 31 queries executed (89.6%): GZIP compression disabled