Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 12:31

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Compiling ventrcon tool.
PostPosted: 05 Sep 2010 19:25 

Joined: 05 Sep 2010 19:21
Posts: 4
I've been trying to convert the ventrcon tool into C# for a couple days now.
Running into a couple snags, i decided to see if i could build and debug
the original source code to the exe i received.

so i downloaded and installed Code::Blocks, and mingw(thinking this would be easy)

I've had nothing but issues.

my build log is below.


Code:
-------------- Build: Debug in ventrcon ---------------

Compiling: ventrilo3_handshake.cpp
C:\ventrcon\ventrilo3_handshake.cpp:60:5: error: 'u8' does not name a type
C:\ventrcon\ventrilo3_handshake.cpp:61:5: error: 'u16' does not name a type
C:\ventrcon\ventrilo3_handshake.cpp:74:11: error: 'NULL' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:75:1: error: too many initializers for 'ventrilo3_auth_t'
C:\ventrcon\ventrilo3_handshake.cpp:75:1: error: too many initializers for 'ventrilo3_auth_t'
C:\ventrcon\ventrilo3_handshake.cpp:75:1: error: too many initializers for 'ventrilo3_auth_t'
C:\ventrcon\ventrilo3_handshake.cpp:75:1: error: too many initializers for 'ventrilo3_auth_t'
C:\ventrcon\ventrilo3_handshake.cpp:75:1: error: too many initializers for 'ventrilo3_auth_t'
C:\ventrcon\ventrilo3_handshake.cpp:79:33: error: 'u8' has not been declared
C:\ventrcon\ventrilo3_handshake.cpp:79:43: error: 'u8' has not been declared
C:\ventrcon\ventrilo3_handshake.cpp:80:42: error: 'u32' has not been declared
C:\ventrcon\ventrilo3_handshake.cpp:80:50: error: 'u16' has not been declared
C:\ventrcon\ventrilo3_handshake.cpp:80:60: error: 'u8' has not been declared
C:\ventrcon\ventrilo3_handshake.cpp:81:57: error: 'u8' has not been declared
C:\ventrcon\ventrilo3_handshake.cpp:82:11: error: 'u8' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:82:15: error: 'data' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:82:21: error: 'u32' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:82:26: error: 'ret' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:82:31: error: expected primary-expression before 'int'
C:\ventrcon\ventrilo3_handshake.cpp:82:39: error: initializer expression list treated as compound expression
C:\ventrcon\ventrilo3_handshake.cpp:83:11: error: 'u8' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:83:15: error: 'data' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:83:21: error: 'u32' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:83:30: error: expected primary-expression before 'int'
C:\ventrcon\ventrilo3_handshake.cpp:83:38: error: initializer expression list treated as compound expression
C:\ventrcon\ventrilo3_handshake.cpp:88:30: error: variable or field 'ventrilo3_algo_scramble' declared void
C:\ventrcon\ventrilo3_handshake.cpp:88:30: error: 'ventrilo_key_ctx' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:88:48: error: 'ctx' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:88:53: error: 'u8' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:88:57: error: 'v3key' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:69:40: warning: 'ventrilo3_auth' defined but not used
Process terminated with status 1 (0 minutes, 0 seconds)
30 errors, 1 warnings



Keep in mind, that i've touched nothing on my end, fearing that i
just have something misconfigured in code::blocks. i've tried
uncommenting the code block at the top of
ventrilo3_handshake.cpp.


Code:
-------------- Build: Debug in ventrcon ---------------

Compiling: ventrilo3_handshake.cpp
C:\ventrcon\ventrilo3_handshake.cpp:26:19: fatal error: types.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings



This is what i get when it is uncommented.(i'm using windows 7 fyi).

what confuses me is that this must have compiled or the exe that came with it wouldn't exist


Top
 Profile  
 
 
 Post subject: Re: Compiling ventrcon tool.
PostPosted: 05 Sep 2010 20:29 

Joined: 05 Sep 2010 19:21
Posts: 4
http://aluigi.org/about.htm#howuse

didn't notice the comp guild located here.(http://aluigi.org/about.htm#howuse)
will try it now, and see if it works.


Top
 Profile  
 
 Post subject: Re: Compiling ventrcon tool.
PostPosted: 05 Sep 2010 21:25 

Joined: 05 Sep 2010 19:21
Posts: 4
allows me to compile, but Code::Blocks still won't compile using those options.


Top
 Profile  
 
 Post subject: Re: Compiling ventrcon tool.
PostPosted: 08 Sep 2010 09:41 

Joined: 24 Jun 2010 10:04
Posts: 70
Location: aluigi not @ home
the problem is that you are trying to compile ventrilo3_handshake.cpp separately while instead I have used it internally in ventrcon.c as it would be a header file.

the following gcc command should do the job:
gcc -o ventrcon ventrcon.c -lws2_32


Top
 Profile  
 
 Post subject: Re: Compiling ventrcon tool.
PostPosted: 25 Sep 2010 22:40 

Joined: 05 Sep 2010 19:21
Posts: 4
that worked, thanks !!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron