[AD] Compiling with VC

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hi!

After writing a replpy to one of X-G's "IDEs suck" posts on a.cc, I realized that we can make it more easy for the VC guys, if we use the #pragma (lib, "alleg.lib") format in the allegro.h headers.

I think we should be able to do something along the lines of:

#ifdef _MSCVER

 #ifdef ALLEGRO_STATICLINK

   #ifdef _DEBUG
#pragma (lib, "alld.lib") #else #pragma (lib, "alleg.lib") #endif /* _DEBUG */

 #else
   #ifdef _DEBUG
#pragma (lib, "alld_s.lib") #else #pragma (lib, "alleg_s.lib") #endif /* _DEBUG */

 #endif /* static link */
#endif

What do you think?
I don't have VC installed at home at I'm on vacation, so I can't test it. Maybe some of the guys with VC installed could test that?

/Lenny




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/