Reini Urban (rur...@x-ray.at) writes:
> You are not allowed to overrride CCFLAGS and LIBS with simplier settings.

Not allowed? You mean that I could be caught by the police? That's scary!

> You are compiling a perl extension, with perl headers so you have to
> use perl cflags and libs.

OK, I can see the point with using the same CCFLAGS; I might have been
lucky with things working anyway. I realised that since I did not have
the default flags, I did not have /W3. Using /W3 resulted in quite a few
warnings for the 64-bit version. Need to look into that...

Anyway, I'm beginning to suspect that the crucial define is -DWIN32, which 
I guess I get for free with windows.h, and this is why it works with this
file. For the example I posted, windows.h as such is not needed, but with
Win32::SqlServer I believe I need it anwway.

But LIBS? I need the libraries that DLL has references to, but not the rest. 
(The full list of libraries make the command-line very verbose, and 
which easily hides warnings generated during the build.
 
> The usual practrice is to add defines to CCFLAGS (but never -MT) and
> libs to LIBS, but never replace it.

What's wrong with -MT?
 

-- 
Erland Sommarskog, Stockholm, esq...@sommarskog.se

Reply via email to