#26 VC++ linker let the system stand still (Win2k) + Bugfix

closed-fixed
nobody
None
5
2004-04-22
2003-03-22
Sven Olufs
No

Hi,

i figured out a problem with the MSVC
Linker "Linker.exe"... I
got the problem that the "Linker.exe" blocks ANT when
the
system is "fetching" the Version of the Linker.. -> The
system stand still (but Control-C helps ;-)

I found out that the call "link.exe /bogus" let at stand
still
(fetching the Version); I guess there is no /version
command
in LINK.EXE; But i found out, if i change the the
LINKER.EXE /bogus to LINKER.EXE /DLL then it work
(/bogus is a unkown command, /DLL not -> it case a
error
and the ant run on)

Here is my correced code (CVS Checkout about 1 Hour)

file:DevStudioLinker.java
[...]

public final class DevStudioLinker extends
DevStudioCompatibleLinker
{

[..]
private DevStudioLinker(String outputSuffix)
{
super("link", "/DLL", outputSuffix);
}
[..]

I would be gald if you could check this in, and bring out
a
HOTFIX release...

System: Win2K, MSVC6, trying to build a DLL.... same
xml
File works fine on XP MSVC6

Discussion

  • Curt Arnold
    Curt Arnold
    2004-04-22

    Logged In: YES
    user_id=27193

    I haven't observed the lock, but the change appears to be
    unlikely to make things worse.

    Index: DevStudioLinker.java

    =====================
    RCS file: /cvsroot/ant-
    contrib/cpptasks/src/net/sf/antcontrib/cpptasks/devstudio/De
    vStudioLinker.java,v
    retrieving revision 1.26
    diff -u -r1.26 DevStudioLinker.java
    --- DevStudioLinker.java 28 Feb 2004 20:01:00 -0000 1.26
    +++ DevStudioLinker.java 22 Apr 2004 14:53:38 -0000
    @@ -30,7 +30,7 @@
    return instance;
    }
    private DevStudioLinker(String outputSuffix) {
    - super("link", "/bogus", outputSuffix);
    + super("link", "/DLL", outputSuffix);
    }
    public Linker getLinker(LinkType type) {
    if (type.isSharedLibrary()) {

     
  • Curt Arnold
    Curt Arnold
    2004-04-22

    • status: open --> closed-fixed