#186 reimp now quotes library names

closed-accepted
None
2004-02-20
2004-02-19
Daan Leijen
No

The "reimp" utility generates (among others) an export
file that start with the line:

LIBRARY name

Unfortunately, when the name contains characters like
digits (for version numbers for example), the "dlltool"
does not accept the file. The name should be quoted
to alleviate this problem, as in:

LIBRARY "name"

The fix is very easy, just replace line 238 of the
file "reimp/reimp.c"

> fprintf (df->f, "LIBRARY %s\nEXPORTS\n", dll);

to

> fprintf (df->f, "LIBRARY \"%s\"\nEXPORTS\n", dll);

For convenience, I have attached the
new "reimp/reimp.c" that has been modified from
the mingw-utils-0.2 distribution.

All the best,
-- Daan Leijen.

Discussion

  • Earnie Boyd

    Earnie Boyd - 2004-02-19
    • assigned_to: nobody --> jrfonseca
     
  • Jose Fonseca

    Jose Fonseca - 2004-02-20
    • status: open --> closed-accepted
     
  • Jose Fonseca

    Jose Fonseca - 2004-02-20

    Logged In: YES
    user_id=80087

    Applied in CVS. Thanks.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks