Yes, WordPad works, but I definitely prefer Notepad for .txt files and I think Notepad is the standard windows application for .txt files ...
Anyway, this was just a little cosmetic issue I wanted you to know ...
Very strange! As far as I see, these source files do not contain multi-line #defines at all...

Ah, now I see, these files are "inline" files to extend the image_config[] array ...

My fault, sorry ...
WIN32 is defined.
Meanwhile I found
SDL_image.h,
SDL_mixer.h and
SDL_net.h ...
My problem is, that I don't know, what to do with the MAKEFILE, I have no experience with makefiles.
I just created a new project with all source files ...
And I don't just want to compile it in Windows, I'd like to let it run inside Visual Studio, to debug it, set breakpoints, step through the code to understand it ...
Is there a way to compile it without the makefile? I think I need at least a #define for TARGET_SDL ...
Now I added
to
main.c.
But I get stuck in
hash.h:
Code: Select all
extern inline void *
hashtable_iterator_key(struct hashtable_itr *i)
{
return i->e->k;
}
error C2054: Nach 'inline' muss '(' folgen
error C2085: 'hashtable_iterator_key': Nicht in der formalen Parameterliste enthalten
error C2143: Syntaxfehler: Es fehlt ';' vor '{'
One stupid question: Am I right that C code should work in Visual C
++?
Edit: Google gave me a hint: I renamed main.c to main.cpp and the problems with hash.c are gone.
Weiß der Geier warum ...
Later, there's still the problem with missing files:
In
main.c there's a
and in
main.h
Code: Select all
#include <sys/time.h>
#include <unistd.h>
which I can't find. I don't see any platform specific conditions around ...