15,667,904 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View Python questions
View C++ questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13244531 (Top 30 by date)
Member 13244531
22-Nov-18 4:32am
View
Typical
Member 13244531
22-Nov-18 4:09am
View
Deleted
I understand what compressed files are but you are assuming for example if you wanted to open a .n64 rom file you could just use the same "ZipFileclass" for extracting the files out of the ".n64 rom file that is compressed"? if so then correct me.
Member 13244531
22-Nov-18 3:42am
View
I looked into your link provided but These classes are for ".zip && .gzip", So what if you want to extract files from other compressed file formats besides ".zip && gzip" so do I need to de_compile the compressed file first with "ollydbg or a hex editor" and look for the signature and find the offset for how many files are inside of the compressed file and find the header or ? , Can someone give me a small tutorial it would help a lot okay your help is gratefully appreciated.
Member 13244531
17-Feb-18 4:48am
View
Here is my console compiling issue on visual studio 2010 but I don't have this issue on visual studio 2008 with the malloc.h so how do I fix this...
1>------ Build started: Project: idlib, Configuration: Release Win32 ------
1> Base64.cpp
1>e:\doom 3 source 2010\src\idlib\precompiled.h(47): fatal error C1083: Cannot open include file: 'malloc.h': No such file or directory
2>------ Build started: Project: Game, Configuration: Release Win32 ------
2> AF.cpp
2>e:\doom 3 source 2010\src\game\../idlib/precompiled.h(47): fatal error C1083: Cannot open include file: 'malloc.h': No such file or directory
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
Member 13244531
14-Feb-18 21:47pm
View
No I see the drive but on the computer but not in the disk management
Member 13244531
14-Feb-18 20:27pm
View
All I wanted to learn was how to make my own 3d game engine in c++ but I cant seem to get the data off the floppy disk it had the ast3d c++ library and the executables with it but without them Its pointless because the book cant teach you much without those librarys I wish they was a download that somebody made for those librarys on that floppy disk
Member 13244531
14-Feb-18 20:00pm
View
Well this is the book and the floppy disk was a little damaged at the top of the drive so it kinda broken but not that bad the top right side of the floppy and the top left side of the floppy is almost broken the plastic is about to break bit not a very big break very small https://www.amazon.com/Building-3D-Game-Engine-C/dp/0471123269/ref=sr_1_1?ie=UTF8&qid=1518656365&sr=8-1&keywords=building+a+3d+game+engine+in+c%2B%2B The floppy was still sealed in the sleeve at the back of the book... so its kinda hard to believe that the floppy could be bad even if it was still sealed....
Member 13244531
14-Feb-18 19:57pm
View
fdd connection its a old floppy drive
Member 13244531
14-Feb-18 19:56pm
View
Im using windows xp 64bit
Member 13244531
3-Feb-18 23:15pm
View
I managed to get it to configure and create a makfile but know I have ran into this error can anybody tell me what this error is and how to fix it.....
C:\Users\Relican\Desktop\sdl doom source code>make
makefile:163: warning: overriding commands for target `.s.o'
makefile:160: warning: ignoring old commands for target `.s.o'
gcc -DPACKAGE=\"sdldoom\" -DVERSION=\"1.10\" -I. -I. -g -O2 -I/usr/local/cross-tools/i386-mingw32/include -I{prefix}/include/SDL-Dmain=SDL_main -c i_net.c
In file included from d_ticcmd.h:26:0,
from i_system.h:26,
from i_net.c:59:
doomtype.h:41:28: error: conflicting types for 'boolean'
typedef enum {false, true} boolean;
^
In file included from ./wtypes.h:8:0,
from ./winscard.h:10,
from ./windows.h:97,
from i_net.c:52:
./rpcndr.h:65:25: note: previous declaration of 'boolean' was here
typedef unsigned char boolean;
^
i_net.c:110:17: error: 'IPPORT_USERRESERVED' undeclared here (not in a function)
int DOOMPORT = (IPPORT_USERRESERVED +0x1d );
^
i_net.c: In function 'PacketSend':
i_net.c:183:30: warning: passing argument 2 of 'sendto' from incompatible pointer type [-Wincompatible-pointer-types]
c = sendto (sendsocket , &sw, doomcom->datalength
^
In file included from ./windows.h:92:0,
from i_net.c:52:
./winsock.h:302:34: note: expected 'const char *' but argument is of type 'doomdata_t * {aka struct <anonymous> *}'
WINSOCK_API_LINKAGE int WSAAPI sendto(SOCKET s,const char *buf,int len,int flags,const struct sockaddr *to,int tolen);
^
i_net.c: In function 'PacketGet':
i_net.c:204:29: warning: passing argument 2 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types]
c = recvfrom (insocket, &sw, sizeof(sw), 0
^
In file included from ./windows.h:92:0,
from i_net.c:52:
./winsock.h:297:34: note: expected 'char *' but argument is of type 'doomdata_t * {aka struct <anonymous> *}'
WINSOCK_API_LINKAGE int WSAAPI recvfrom(SOCKET s,char *buf,int len,int flags,struct sockaddr *from,int *fromlen);
^
make: *** [i_net.o] Error 1
Member 13244531
3-Feb-18 18:56pm
View
Hey look can you please just tell me which line on this configure script I need to change and mabe an example it would help me out alot more with something I can see i'm sorry but i've tried my best I need some guidence. Here is my configure script I used pastebin to let you look at my script..... for many sakes please just help me out....
https://pastebin.com/QjjiJvSj
Member 13244531
3-Feb-18 10:42am
View
Its in my c drive
C:\Program Files (x86)\SDL_MINGW32\SDL-1.0.1
like this what am I doing wrong any advice.....
Member 13244531
2-Feb-18 12:44pm
View
Here is the configure file mabe this will help you more to understand
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.13
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
ac_help="$ac_help
--with-sdl-prefix=PFX Prefix where SDL is installed (optional)"
ac_help="$ac_help
--with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
ac_help="$ac_help
--disable-sdltest Do not try to compile and run a test SDL program"
# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
ac_prev=
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
ac_prev=
continue
fi
case "$ac_option" in
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) ac_optarg= ;;
esac
# Accept the important Cygnus configure options, so we can diagnose typos.
case "$ac_option" in
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bindir="$ac_optarg" ;;
-build | --build | --buil | --bui | --bu)
ac_prev=build ;;
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
build="$ac_optarg" ;;
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cache_file="$ac_optarg" ;;
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ac_prev=datadir ;;
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
| --da=*)
datadir="$ac_optarg" ;;
-disable-* | --disable-*)
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
fi
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
eval "enable_${ac_feature}=no" ;;
-enable-* | --enable-*)
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
fi
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
case "$ac_option" in
*=*) ;;
*) ac_optarg=yes ;;
esac
eval "enable_${ac_feature}='$ac_optarg'" ;;
-exec-prefix | --exec_prefix | --exec-pre
Member 13244531
2-Feb-18 12:10pm
View
This is whats in my configure.in file mabe this will help more
dnl Process this file with autoconf to produce a configure script.
AC_INIT(README.b)
dnl Setup for automake
AM_INIT_AUTOMAKE(sdldoom, 1.10)
dnl Check for tools
AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_INSTALL
dnl Check for SDL
SDL_VERSION=1.0.1
AM_PATH_SDL($SDL_VERSION,
:,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
)
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
# Finally create all the generated files
AC_OUTPUT([
Makefile
])
Member 13244531
2-Feb-18 12:08pm
View
How do I do the configure.sh method because its not the enviroment varible section.. sorry to bother you so much but its kinda hard for me but i'm almost there.....please help
Member 13244531
2-Feb-18 11:34am
View
This is what my config.log mabe this will help you further to understand what i'm doing wrong
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:563: checking for a BSD compatible install
configure:616: checking whether build environment is sane
configure:673: checking whether make sets ${MAKE}
configure:719: checking for working aclocal
configure:732: checking for working autoconf
configure:745: checking for working automake
configure:758: checking for working autoheader
configure:771: checking for working makeinfo
configure:787: checking whether make sets ${MAKE}
configure:816: checking for gcc
configure:929: checking whether the C compiler (gcc ) works
configure:945: gcc -o conftest conftest.c 1>&5
configure:942:1: warning: return type defaults to 'int' [-Wimplicit-int]
main(){return(0);}
^
configure:971: checking whether the C compiler (gcc ) is a cross-compiler
configure:976: checking whether we are using GNU C
configure:985: gcc -E conftest.c
configure:1004: checking whether gcc accepts -g
configure:1047: checking for a BSD compatible install
configure:1142: checking for sdl-config
configure:1177: checking for SDL - version >= 1.0.1
configure:1259: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1206:21: fatal error: SDL/SDL.h: No such file or directory
compilation terminated.
configure: failed program was:
#line 1201 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sdl sdl.h="">
char*
my_strdup (char *str)
{
char *new_str;
if (str)
{
new_str = malloc ((strlen (str) + 1) * sizeof(char));
strcpy (new_str, str);
}
else
new_str = NULL;
return new_str;
}
int main ()
{
int major, minor, micro;
char *tmp_version;
system ("touch conf.sdltest");
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = my_strdup("1.0.1");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string\n", "1.0.1");
exit(1);
}
if (( > major) ||
(( == major) && ( > minor)) ||
(( == major) && ( == minor) && ( >= micro)))
{
return 0;
}
else
{
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", , , );
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
printf("*** best to upgrade to the required version.\n");
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
printf("*** config.cache before re-running configure\n");
return 1;
}
}
configure:1303: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1296:21: fatal error: SDL/SDL.h: No such file or directory
compilation terminated.
configure: failed program was:
#line 1293 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sdl sdl.h="">
int main() {
return 0;
; return 0; }
Member 13244531
2-Feb-18 11:31am
View
in the sdl-config file which line of code am i looking for to add the path with double quotes
#!/bin/sh
prefix=/usr/local/cross-tools/i386-mingw32
exec_prefix=${prefix}
exec_prefix_set=no
usage="\
Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*)
prefix=$optarg
if test $exec_prefix_set = no ; then
exec_prefix=$optarg
fi
;;
--prefix)
echo $prefix
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo $exec_prefix
;;
--version)
echo 1.0.0
;;
--cflags)
if test ${prefix}/include != /usr/include ; then
includes=-I${prefix}/include
fi
echo $includes -I{prefix}/include/SDL -Dmain=SDL_main
;;
--libs)
libdirs=-L${exec_prefix}/lib
echo $libdirs -lmingw32 -lSDLmain -lSDL -luser32 -lgdi32 -lwinmm -ldxguid -mwindows
;;
*)
echo "${usage}" 1>&2
exit 1
;;
esac
shift
done
Member 13244531
2-Feb-18 11:09am
View
Do I need to quote it in the enviroment varibles path or in the sdl-config file or nether Please help....
Member 13244531
2-Feb-18 10:58am
View
Can you give me an example Please
Member 13244531
2-Feb-18 10:47am
View
Okay I got the mingw 1.0.1 version of sdl but whats odd I get this issue now I went to my advance system settings and went to the enviroment varibles and set the path to the sdl-config file but when I configure I get this issue my log below
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for sdl-config... /c/Program Files (x86)/SDL_MINGW32/SDL-1.0.1/bin/sdl-config
checking for SDL - version >= 1.0.1... configure: line 1181: /c/Program: No such file or directory
configure: line 1182: /c/Program: No such file or directory
configure: line 1185: /c/Program: No such file or directory
configure: line 1187: /c/Program: No such file or directory
configure: line 1189: /c/Program: No such file or directory
no
*** Could not run SDL test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /c/Program Files (x86)/SDL_MINGW32/SDL-1.0.1/bin/sdl-config
configure: error: *** SDL version 1.0.1 not found!
Member 13244531
2-Feb-18 9:53am
View
Hey this is what i get when i configure it now
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for sdl-config... no
checking for SDL - version >= 1.0.1... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: *** SDL version 1.0.1 not found!
So how do I do this sdl thing...
Member 13244531
2-Feb-18 9:10am
View
Alright i will try it and let you know
Member 13244531
2-Feb-18 7:17am
View
All I have to do is use call the source directory and use the dir to unpack the files so my question is there is no makefile just makefile.in or makefile.am so gnumake can not target those makefiles so what do I need to do here....
Member 13244531
2-Feb-18 7:10am
View
I've got make installed and ready to execute the makefile but make cannot find any targets so the makefile.in and the makefile.am is not a makefile I think but what command do I need to put in i'm ready i've got all the hard stuff installed and ready.... Please somebody help me with this please...
Member 13244531
2-Feb-18 6:23am
View
I'm using mingw on windows so what steps in mingw that I need to do because you made since above but tar is not a command in mingw commmand line so whats the commands that I need to know step by step please give them to me thanks... It would answer my question easier if you would supply the step by step commands in mingw for windows for executing the source...
Member 13244531
2-Feb-18 6:09am
View
Alright my question still is what is the command for executing the make file.... I mean I cant go further without knowing the command......
Member 13244531
2-Feb-18 5:11am
View
Thank you that helped me out but can you list the mingw commands that I need to know in order to execute these files for example to compile a source .c file in mingw I do it like this
g++ hello.c -o hello.exe
So whats the commands that I need to do for the files and the order steps listed above thanks for your answer almost figured this out long time so thank you your awesome....
Member 13244531
2-Feb-18 0:44am
View
Yes But How do you build it do you use mingw if so how.... i'm confused any advice come on anything
Member 13244531
9-Nov-17 12:20pm
View
Thank you for the help!
Member 13244531
8-Nov-17 19:45pm
View
I am using this source code https://github.com/id-Software/DOOM Hope this helps
Show More