OpenLayer and MSVC 8
ixilom

So, I've reinstalled windows, with MSVC8 ... skipped 7.1 .NET which I used before.
Now I need to rebuild OpenLayer for MSVC8.
I've built all the deps without any problems, ran cmakesetup to generate a sollution.
But when I try to compile the OpenLayer project, I get a bunch of errors like this:

Quote:

C:\temp\build\openlayer\include\OpenLayer\Transforms.hpp(85) : error C2487: 'y' : member of dll interface class may not be declared with dll interface

WTF does that mean?
I've tried to build a static version and a DLL version with the same error.

@£$!%!!!

[edit]
Remade the solution with cmakesetup, AFAIK exactly the same way I did before but now it compiled ... go figure.
Lets see if it actually made me a working .lib ::)

[edit]
Ok, I got it working... but that error message is still weird >:(

av0k23

glad i am not alone in this

ixilom

I posted this a bit before your post about MSVC and OpenLayer.
It seems in my OP here that I got it all working, but the truth is that my debug builds crash just like you describe it in the other thread

Neil Walker

I've never used the new cmake version, but all I have done is created a new lib project, dumped in all the files and compiled. When I did that many moons ago I found a few bugs which I passed back to Flad and the others and assume they are in the new build (mainly faults with min/max in the standard template library).

Why not just try that?

ixilom

I guess that would work aswell.
The reason I've been using cmake is that I got the intructions on how to build OL for MSVC over IRC and I'm guessing the person who taught me thought it would be easier this way.

The neat thing about cmake is that you can "point and click" customize OpenLayer for your liking, rather than reading the sources, figuring out which directives you need to change in order to disable/enable some features.

Of course, you can do the same by hand but it takes more time. I'm one of those who would rather get stuff working ASAP and get working on my game.
On that note, it would be neat if someone made precompiled versions of OL for MSVC 7.1 and 8. I know there are a few precompiled versions out there, but AFAIK, they are somewhat outdated :-/
Perhaps I should try to contribute with that myself, lets see if I can make the time to build both release and debug versions :)

Thread #593353. Printed from Allegro.cc