[ADMB Users] Reporting a conflict between ADMB and Rtools on Windows systems

Weihai Liu liuweih at msu.edu
Thu Nov 17 06:00:53 PST 2011


When you install ADMB-IDE by default, it will add the MinGW C++ compiler on
your path, looking for some path like c:/gnu/gcc, so you will have two
compiler at that same time, and they may in different version, I would
suggest you remove the MinGW compiler from Rtools, such as
remove c:\Rtools\MinGW\bin from your path, and test to see if Rtools works,
I would not suggest to remove the one from ADMB-IDE, because that is the
one Arni build admb from.

weihai

On Thu, Nov 17, 2011 at 3:53 AM, Rubén Roa <rroa at azti.es> wrote:

> Hi,****
>
> ** **
>
> I have to work under Windows, it’s a company policy.****
>
> ** **
>
> I’ve just found that there is a conflict between tools used to build R
> packages (Rtools) and ADMB due to the need to put Rtools compiler’s
> location in the PATH environmental variable to make Rtools work.****
>
> ** **
>
> On a Windows 7 64bit  with Rtools installed I installed ADMB-IDE latest
> version and although I could translate ADMB code to cpp code I could not
> build the cpp code into an executable via ADMB-IDE’s compiler.****
>
> ** **
>
> On another Windows machine, a Windows Vista 32bits with Rtools installed I
> also installed the latest ADMB-IDE and this time it was not possible to
> create the .obj file on the way to build the executable when building with
> ADMB-IDE. On this machine I also have a previous ADMB version (6.0.1) that
> I used to run from the DOS shell. This ADMB also failed to build the .obj
> file.****
>
>  ****
>
> Now, going to PATH, the location info to make Rtools is:****
>
> c:\Rtools\bin;c:\Rtools\MinGW\bin;c:\Rtools\MinGW64\bin;C:\Program Files
> (x86)\MiKTeX 2.9\miktex\bin;****
>
> If from this list I remove the reference to the compiler ****
>
> c:\Rtools\MinGW\bin****
>
> then ADMB works again.****
>
> ** **
>
> So beware of this conflict. Suggestion of a solution will be appreciated.
> Meanwhile, I run ADMB code in one computer and build R packages with Rtools
> in another computer.****
>
> ** **
>
> Best****
>
> ** **
>
> Ruben****
>
> --****
>
> Dr. Ruben H. Roa-Ureta****
>
> Senior Researcher, AZTI Tecnalia,****
>
> Marine Research Division,****
>
> Txatxarramendi Ugartea z/g, 48395, Sukarrieta,****
>
> Bizkaia, Spain****
>
> ** **
>
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20111117/88007f54/attachment.html>


More information about the Users mailing list