[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling octave with MSVC

From: Michael Goffioul
Subject: Re: Compiling octave with MSVC
Date: Fri, 13 Oct 2006 07:47:24 +0200
User-agent: Thunderbird (Windows/20060909)

John W. Eaton a écrit :
Your diffs have

  -libcruft.$(LIBEXT): $(CRUFT_OBJ)
  +$(LIBPRE)cruft.$(LIBEXT): $(CRUFT_OBJ)

Is it necessary to do things like this?  What problem does it solve?
Does the MS linker fail if the library name starts with lib?

MSVC linker does not fail, but this is for uniformity and to make it work easily with cccl when linking against libraries: if I leave the "lib" prefix in octave libraries, then
1) "-loctave" should be expanded into "liboctave.lib"
2) Win32 libraries does not have the "lib" prefix such that "-lkernel32" should be expanded
into "kernel32.lib"
To solve this problem and because MSVC libraries are usually not prefixed with "lib" like in the UNIX world, I made the library prefix configurable in the configure script. Hence my link commands can contain "-loctave -lkernel32" without any special handling.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]