Jump to content
Eternal Lands Official Forums
Sign in to follow this  
LazerKitty

Compiling on windows (almost there)

Recommended Posts

Hey,

So I DLed the source, and got to work. (sorry in a hurry so being concise)

I created a folder: c:\include

I moved there the .h and dll files for: SDL, SDL_Image, SDL_net, libxml, zlib, openal (I think thats all of them)

Told VS to look there for headers.

Compile no longer complains about missing .h files!

Edit: added #define ELC in global.h and it gets further...

 

Now I get this:

zuh9L30B.jpeg

 

In short, the compiler complains about undefined types and values, which I can clearly see in the reletive .h file. :icon4:

Any help?

 

Biff

 

P.S. if you get a 403forbiden on the image just highlight the address and hit enter.

Edited by BiffBafflemore

Share this post


Link to post
Share on other sites

Well, void* arithmetics is not defined in C because the size of void is not defined. Visual Studio does not support this and you have to change every single occurence of NULL + number to ((void*)number)

 

There are a few other spots I had problems to compile with VS like the int maxlen=32; char foo[maxlen]; in console.c.

I keep my VC build fixes in a repository on github: . I hope I can find the time to wrap them into patches to get them included one day ;)

 

But the regular windows build uses the GNU C Compiler from the Dev-Cpp suite anyway.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×