Thanks Matthew, but I don't think I'm making much progress here. The idea was to make a 32 bit executable for Fernando, but if you can't do it on Linux, I suppose I don't have much chance making it with Windows... On top of that, the compiler I have is C++ and I think your program is C?
I just run into the same error, so I guess I must be doing something completely wrong...
Can your time.c work without having resource.h available for instance?
Dorpsgek Bloody Mary
Moderator: Ras
-
Eelco de Groot
- Posts: 4720
- Joined: Sun Mar 12, 2006 2:40 am
- Full name: Eelco de Groot
Re: Dorpsgek Bloody Mary
Debugging is twice as hard as writing the code in the first
place. Therefore, if you write the code as cleverly as possible, you
are, by definition, not smart enough to debug it.
-- Brian W. Kernighan
place. Therefore, if you write the code as cleverly as possible, you
are, by definition, not smart enough to debug it.
-- Brian W. Kernighan
-
ZirconiumX
- Posts: 1362
- Joined: Sun Jul 17, 2011 11:14 am
- Full name: Hannah Ravensloft
Re: Dorpsgek Bloody Mary
Yes, it can, but you need to add -DWINDOWS to the GCC command line.
As for C++ vs C, the makefile invokes GCC not G++, so you don't have to worry about that.
I might break out MSVC to get Fernando a compile.
As for C++ vs C, the makefile invokes GCC not G++, so you don't have to worry about that.
I might break out MSVC to get Fernando a compile.
tu ne cede malis, sed contra audentior ito
-
fern
- Posts: 8755
- Joined: Sun Feb 26, 2006 4:07 pm
Re: Dorpsgek Bloody Mary
You are very kind, but do not bother just for me.......
Fern
Fern
-
tmokonen
- Posts: 1367
- Joined: Sun Mar 12, 2006 6:46 pm
- Location: Kelowna
- Full name: Tony Mokonen
Re: Dorpsgek Bloody Mary
I made a 32 bit Windows compile and placed it here:
http://tmokonen.net84.net/Dorpsgek%20Bl ... %20w32.rar
Matthew, I did have to make one change in the code. The compiler (GCC 5.2.0) didn't like your
#define FILE(x) ((x)&7)
I am guessing because FILE is already defined in stdio.h for file handling functions. I renamed it to COL.
The PV display is also different than the 64 bit compile, not sure why, maybe because of a difference in the size of ints. It does seem to run fine though.
http://tmokonen.net84.net/Dorpsgek%20Bl ... %20w32.rar
Matthew, I did have to make one change in the code. The compiler (GCC 5.2.0) didn't like your
#define FILE(x) ((x)&7)
I am guessing because FILE is already defined in stdio.h for file handling functions. I renamed it to COL.
The PV display is also different than the 64 bit compile, not sure why, maybe because of a difference in the size of ints. It does seem to run fine though.