Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Installing DBI on Win32 with GCC 2.8.1

by jeorgen (Pilgrim)
on Aug 03, 2000 at 15:46 UTC ( #25950=note: print w/replies, xml ) Need Help??

in reply to Installing DBI on Win32 with GCC 2.8.1

Well, I'm not sure, but here are some observations. Anyone more knowledgeable feel free to correct and add info.

There is a file called "" in perl's lib. It contains information on what C compiler to use, and what flags to pass to it when compiling any C code for installing a perl module.

The data in about these things seem to be dependant on what compiler perl itself was compiled with in the first place, for your computer. ActivePerl is a binary distribution and hence precompiled. For ActivePerl 5.005 this is Microsofts C compiler (cl.exe). I guess this is true also for v 5.6 that you are using.

It should be possible to edit and tweak the settings so that you can use gcc instead, e.g. change:

... and then go on to change flags in a suitable way. You must also have gcc in your PATH. I tried doing this yesterday, with mingw's gcc and the help of a friend who knows C. It didn't work out,and we resorted to installing Microsoft C++ instead. Then it worked like a breeze, installing Text::CSV_XS for DBD::CSV.

In order to install a module with C code in it you then do the usual "make", "make test" and "make install". So you need a make program. There is one with gcc but I don't know if it works with perl on Win32, never tried it. There is however a make program from Microsoft called nmake freely available. It works well and you type "nmake", "nmake test" .. etcetera to use it.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://25950]
[Corion]: But people writing such code should document the objects they construct and why it makes sense for an object to be invisible as string while being true in a boolean context
[hippo]: That's equal parts clever and horrendous.
[Eily]: the overload version wouldn't return true with "$x" && !length $x though, I guess
[hippo]: The more I look at this code, the more $x is a plain old scalar and the more this condition will never be true. I'm calling it a bug at this point.
[hippo]: Thanks for your input which has soothed my sanity (a little)
[Corion]: Eily: Sure - if you force both things into stringy things, then you break that magic. But that would also mean that you changed the expression, as now $x = 0.00 will be true instead of false as it were before
[Corion]: Ah no, at least in my feeble experiments that doesn't change the meaning
[Corion]: We sell sanity in small packages ;)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-07-27 13:42 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (413 votes). Check out past polls.