[shell-coding] Re: Compiling LS modules with DEV-C++
- From: "A. Klingenstein" <klingens@xxxxxxxxxxxxxxxxxxxx>
- To: shell-coding@xxxxxxxxxxxxx
- Date: Tue, 18 Nov 2003 00:49:49 +0100
Brian Wolven wrote:
which generates errors like this:
[Linker error] undefined reference to `sndPlaySoundA@8'
-lwinmm in Project Options (alt-p), Parameters, Linker should do the
trick. The function is in libwinmm.a
void BangWinMove(HWND hCaller, LPCSTR pszArgs)
this line generates errors:
else if (strstr(strlwr(pszArgs),"centered"))
unless it is changed to this:
else if (strstr(strlwr((char *)pszArgs),"centered"))
Is there a set of string functions/typedefs that should be used now for
safety, consistency, and to conform to the current LS core code? Some of thi
s source code is kind of old...
strsafe.h is what the core itself uses. It compiles/works with mingw
just fine, but you can only get it from the platform sdk. just drop the
strsafe.h in your Dev-C++ include file directory and #include it. You
won't be able to use normal C functions like strcpy, strcat, etc
anymore. strsafe.h provides (different) alternatives. The main advantage
of them is that buffer overruns are (almost) impossible.
Ahhh - one last thing - anyone know how to minimize the size of the DLL's
created by dev-c++? Even with full optimization and no debugging they are
running 113 kBytes.
Not really :(
There are a few things you can do, but they will always be bigger than
MSVC generated ones, unfortunately. Using a newer mingw version usually
helps a bit. removing debugging symbols (use "strip.exe" on the DLL)
Alex
PS: no, vi doesn't work inside Dev-C++. But Dev-C++ creates standard
Makefiles: projectname.mak
You can always use vim + make to do compiling if you wish.
Alex
__________________________________________________
Subscription options and archive:
http://www.freelists.org/list/shell-coding
- Follow-Ups:
- [shell-coding] Re: Compiling LS modules with DEV-C++
- From: Brian Wolven
- [shell-coding] Re: Compiling LS modules with DEV-C++
- From: Brian Wolven
- References:
- [shell-coding] Compiling LS modules with DEV-C++
- From: Brian Wolven
- [shell-coding] Re: Compiling LS modules with DEV-C++
- From: Kevin Schaffer
- [shell-coding] Re: Compiling LS modules with DEV-C++
- From: ilmcuts
- [shell-coding] Re: Compiling LS modules with DEV-C++
- From: Brian Wolven
Other related posts:
- » [shell-coding] Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
- » [shell-coding] Re: Compiling LS modules with DEV-C++
[Linker error] undefined reference to `sndPlaySoundA@8'
this line generates errors:
else if (strstr(strlwr(pszArgs),"centered"))
unless it is changed to this:
else if (strstr(strlwr((char *)pszArgs),"centered"))
Is there a set of string functions/typedefs that should be used now for safety, consistency, and to conform to the current LS core code? Some of thi s source code is kind of old...
Ahhh - one last thing - anyone know how to minimize the size of the DLL's created by dev-c++? Even with full optimization and no debugging they are running 113 kBytes.
__________________________________________________ Subscription options and archive: http://www.freelists.org/list/shell-coding
- [shell-coding] Re: Compiling LS modules with DEV-C++
- From: Brian Wolven
- [shell-coding] Re: Compiling LS modules with DEV-C++
- From: Brian Wolven
- [shell-coding] Compiling LS modules with DEV-C++
- From: Brian Wolven
- [shell-coding] Re: Compiling LS modules with DEV-C++
- From: Kevin Schaffer
- [shell-coding] Re: Compiling LS modules with DEV-C++
- From: ilmcuts
- [shell-coding] Re: Compiling LS modules with DEV-C++
- From: Brian Wolven