Luigi Auriemma

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

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Compiling this tool
PostPosted: 04 May 2009 05:27 

Joined: 28 Jan 2009 03:30
Posts: 17
Greetings all
i require some assistance compiling the fake player bug tool. mainly because i am adding a few features to it. simple rudimentary, yet useful features. Any who, i do not use command line compiler so i am lost :-(

This is the Batch file i am using to compile
Code:
@echo off

set FILE_PATH=c:\Documents" "and" "Settings\Owner\Desktop\swbfp\
set GSLIST_MINGW_OPT=-s -O2 -Wall -Wextra -Wunused -Wshadow -Wno-sign-compare -Wno-unused-parameter
set GSLIST_MINGW_PATH=c:\mingy
set GSLIST_MINGW_LIBS=gslist_icon.o "%GSLIST_MINGW_PATH%\lib\stristr.c" %GSLIST_MINGW_PATH%\lib\libz.a" "%GSLIST_MINGW_PATH%\lib\libws2_32.a"
set GSLIST_FILES= %FILE_PATH%show_dump.h %FILE_PATH%rwbits.h %FILE_PATH%swbcrc.h %FILE_PATH%swbfp.c %FILE_PATH%winerr.h


"%GSLIST_MINGW_PATH%\bin\windres" gslist_icon.rc gslist_icon.o

echo ----------
echo - attack! -
echo ----------
"%GSLIST_MINGW_PATH%\bin\gcc" %GSLIST_MINGW_OPT% -o %FILE_PATH%bugz.exe  %GSLIST_FILES% %GSLIST_MINGW_LIBS%



i have just scavenged this off of the gslist batch compiler.

And this is what the compiler is spitting out at me.
Code:
C:\Documents and Settings\Owner\Desktop\swbfp>compa
gcc: gslist_icon.rc: No such file or directory
gcc: warning: `-x c' after last input file has no effect
gcc: no input files
c:\mingy\bin\windres: no resources
----------
- attack! -
----------
gcc: c:\mingy\lib\libz.a c:\mingy\lib\libws2_32.a: Invalid argument
c:\Documents and Settings\Owner\Desktop\swbfp\show_dump.h:35: error: syntax error before
"FILE"
c:\Documents and Settings\Owner\Desktop\swbfp\show_dump.h: In function `show_dump':
c:\Documents and Settings\Owner\Desktop\swbfp\show_dump.h:36: warning: `static' is not
at beginning of declaration
c:\Documents and Settings\Owner\Desktop\swbfp\show_dump.h:42: error: `data' undeclared
(first use in this function)
c:\Documents and Settings\Owner\Desktop\swbfp\show_dump.h:42: error: (Each undeclared id
entifier is reported only once
c:\Documents and Settings\Owner\Desktop\swbfp\show_dump.h:42: error: for each function
it appears in.)
c:\Documents and Settings\Owner\Desktop\swbfp\show_dump.h:42: error: `len' undeclared
(first use in this function)
c:\Documents and Settings\Owner\Desktop\swbfp\show_dump.h:65: warning: implicit declarat
ion of function `fwrite'
c:\Documents and Settings\Owner\Desktop\swbfp\show_dump.h:65: error: `stream' undeclared
(first use in this function)
c:\Documents and Settings\Owner\Desktop\swbfp\swbcrc.h: In function `swbcrc':
c:\Documents and Settings\Owner\Desktop\swbfp\swbcrc.h:43: warning: `static' is not at
beginning of declaration
In file included from c:\Documents and Settings\Owner\Desktop\swbfp\swbfp.c:25:
c:\Documents and Settings\Owner\Desktop\swbfp\show_dump.h: In function `show_dump':
c:\Documents and Settings\Owner\Desktop\swbfp\show_dump.h:36: warning: `static' is not
at beginning of declaration
In file included from c:\Documents and Settings\Owner\Desktop\swbfp\swbfp.c:26:
c:\Documents and Settings\Owner\Desktop\swbfp\swbcrc.h: In function `swbcrc':
c:\Documents and Settings\Owner\Desktop\swbfp\swbcrc.h:43: warning: `static' is not at
beginning of declaration
c:\Documents and Settings\Owner\Desktop\swbfp\winerr.h: In function `std_err':
c:\Documents and Settings\Owner\Desktop\swbfp\winerr.h:15: warning: implicit declaration
of function `WSAGetLastError'
c:\Documents and Settings\Owner\Desktop\swbfp\winerr.h:68: warning: implicit declaration
of function `fprintf'
c:\Documents and Settings\Owner\Desktop\swbfp\winerr.h:68: error: `stderr' undeclared
(first use in this function)
c:\Documents and Settings\Owner\Desktop\swbfp\winerr.h:68: error: (Each undeclared ident
ifier is reported only once
c:\Documents and Settings\Owner\Desktop\swbfp\winerr.h:68: error: for each function it
appears in.)
c:\Documents and Settings\Owner\Desktop\swbfp\winerr.h:69: warning: implicit declaration
of function `exit'

Any thoughts or suggestions?
Thanks


Top
 Profile  
 
 
 Post subject: Re: Compiling this tool
PostPosted: 04 May 2009 10:39 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
gcc -o swbfp swbfp.c -lws2_32


Top
 Profile  
 
 Post subject: Re: Compiling this tool
PostPosted: 05 May 2009 06:09 

Joined: 28 Jan 2009 03:30
Posts: 17
well wouldn't compile without winerr.h. but it says this:

Code:
c:\Documents and Settings\Owner\Desktop\swbfp\winerr.h: In function `std_err':
c:\Documents and Settings\Owner\Desktop\swbfp\winerr.h:67: error: `stderr' undec
lared (first use in this function)
c:\Documents and Settings\Owner\Desktop\swbfp\winerr.h:67: error: (Each undeclar
ed identifier is reported only once
c:\Documents and Settings\Owner\Desktop\swbfp\winerr.h:67: error: for each funct
ion it appears in.)


Top
 Profile  
 
 Post subject: Re: Compiling this tool
PostPosted: 05 May 2009 10:18 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
how wouldn't compile without winerr.h???
unzip swbfp.zip in a folder
go in that folder and type gcc -o swbfp swbfp.c -lws2_32
the "stderr" there is part of stdio.h (the basis of C) so it's impossible that is not recognized


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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: