In fact, according to section 2.5 of the documentation, the Microsoft lib
tool has to be used to do this.

I don't know if this information is current or not.

Bill.

On 19 June 2015 at 12:57, Bill Hart <goodwillh...@googlemail.com> wrote:

>
>
> On 19 June 2015 at 12:06, <highcalcula...@gmail.com> wrote:
>
>> Dear All,
>>
>> Now the doc mpir-2.7.0.pdf is loading (Firefox); turning off the virus
>> scanner was not changing anything.
>>
>> One further question: As I wrote, the gcc compilation now works fine for
>> me; however, I would like to call it from Matlab using mex files, and
>> there, the compiler complains that it does not see any ".lib" files (when
>> compiling with "mex ... -lmpir" it looks for a file "libmpir.lib") .
>> Neither do I see any in the MPIR directories.
>>
>> Should such files be there after a successful installation? Or do I have
>> to set build options differently? Thank you.
>>
>
> No, the MPIR GCC build doesn't create these as they are not needed for
> MPIR when used with GCC. But there are third party tools available to
> create lib files if you need this.
>
> Bill.
>
>
>>
>> Details and settings:
>> Mex compile command (in Matlab command line):
>> "mex -IC:/MPIR/mpir-2.7.0/ -LC:/MPIR/mpir-2.7.0/.libs/
>> -LC:/MPIR/mpir-2.7.0/mpf/.libs -LC:/MPIR/mpir-2.7.0/printf/.libs mexlib.cpp
>> myfile.cpp",
>> where mexlib.cpp is the mex-file (interface to c code) and myfile.cpp
>> uses some basic mpir commands (init, set, clear). Both files are in 
>> C:/MPIR/mpir-2.7.0.
>>
>> Compiler answer:
>> "myfile.obj : error LNK2019: unresolved external symbol __imp___gmpf_init
>> referenced in function "void __cdecl myfile(double)" "
>>
>>
>>
>> On Sunday, June 14, 2015 at 4:13:29 PM UTC+2, Bill Hart wrote:
>>>
>>> I believe I found the cause of the mpir-2.7.0.pdf not loading. I just
>>> experienced this. I was only having the problem in Google Chrome, and only
>>> with my virus scanner (Avast) turned on.
>>>
>>> I imagine the problem will eventually go away once they fix the virus
>>> scanner. But turning it off for 10 minutes and restarting Chrome fixed the
>>> problem for me.
>>>
>>> Bill.
>>>
>>> On 3 June 2015 at 20:27, <highcal...@gmail.com> wrote:
>>>
>>>> Comments regarding also the other (remaining) issues:
>>>>
>>>> Yes, the 2.7.0 documentation failed to load from here (Germany), now
>>>> again.
>>>>
>>>> I did not use "sudo" - it did not recognize this command ("not found")
>>>> - what is it? For administrators? (One of my machines is administrated by a
>>>> super user.) I just used "make install".
>>>> I tried also
>>>>
>>>> gcc mytest.c -o mytest -lmpir -IC:/MPIR/mpir-2.7.0/ -LC:/MPIR/mpir-2.7.0
>>>>
>>>> but still no improvement ("cannot find -lmpir").
>>>> In my top MPIR directory MPIR/mpir-2.7.0, there is an "mpir.h" file, a "
>>>> libmpir.la" file, and in the .lib subdirectory various similarly named
>>>> files, in particular, again "libmpir.la", then "libmpir.lai",
>>>> "libmpir.dll.a" and more - but nowhere a file called "libmpir.a" . Is
>>>> this the system as it should be?
>>>>
>>>> I did, in any case, perform "make check" and "make install" without any
>>>> errors... how do I check if the installation was successful?
>>>> Thank you.
>>>>
>>>>
>>>> On Wednesday, June 3, 2015 at 2:26:11 PM UTC+2, highcal...@gmail.com
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have been trying to run a simple calculation with MPIR on my Windows
>>>>> 7 machines for several days now. My only sources so far are the manual 
>>>>> from
>>>>> version 2.6.0 (since 2.7.0 would not load from the mpir site) and some
>>>>> Google search results. I managed to do the following via MinGW:
>>>>>
>>>>> - run ./configure --disable-static --enable-shared
>>>>> - make
>>>>> - make c
>>>>>
>>>>
>>>>
>>>>> heck
>>>>>
>>>>> On one of my machines, everything went through, on the other, almost,
>>>>> there was one error during "make check": "FAIL: t-io_raw.exe", but it then
>>>>> went on.
>>>>> (Is this all and now I can start using it or is a step missing?...)
>>>>> Now I want to compile the following program called "mytest.cpp" with
>>>>> gcc; I tried typing "g++ mytest.cpp -o mytest" :
>>>>>
>>>>> //-----------------------------------------------
>>>>> #include "mpir.h"
>>>>> #include "gmp.h"
>>>>> #include "gmp-impl.h"
>>>>>
>>>>> using namespace std;
>>>>>
>>>>> int main ()
>>>>> {
>>>>>     mpz_t z;
>>>>>
>>>>>     mpz_init(z);
>>>>>
>>>>>     return (0);
>>>>> }
>>>>> //-----------------------------------------------
>>>>>
>>>>> The answer from the MinGW command line was
>>>>>
>>>>> "C:\Users\....\...\Local\Temp\ccD1pbG8.o:mytest.cpp:(.text+0x20):
>>>>> undefined reference to '_imp____gmpz_init' "
>>>>>
>>>>> and some further lines with similar content.
>>>>>
>>>>> The program sits in the top folder of MPIR (C:/MPIR/mpir-2.7.0/), I
>>>>> have added this folder to the Windows PATH environment variable.
>>>>> I can see the mpir.h file in this folder...(?...)
>>>>> What is missing? I read in the MPIR documentation chapter 3.1 that
>>>>> "All programs using MPIR must link against the 'libmpir' library..." I 
>>>>> then
>>>>> tried to compile via
>>>>>
>>>>> g++ mytest.cpp -lmpir -o mytest
>>>>>
>>>>> which resulted in
>>>>>
>>>>> "C:/mingw/bin/ld.exe: cannot find -lmpir"
>>>>>
>>>>> Are the links to the mpz libraries missing (if so, do I have to use
>>>>> some -I flag? Or - where are they)?
>>>>>
>>>>> My next question (once this works) would be how (if) I can use MPIR in
>>>>> C code being called by Matlab (via mex-files).
>>>>> I am relatively new to C Programming and would appreciate any hints.
>>>>> Thanks.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "mpir-devel" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to mpir-devel+...@googlegroups.com.
>>>> To post to this group, send email to mpir-...@googlegroups.com.
>>>> Visit this group at http://groups.google.com/group/mpir-devel.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  --
>> You received this message because you are subscribed to the Google Groups
>> "mpir-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to mpir-devel+unsubscr...@googlegroups.com.
>> To post to this group, send email to mpir-devel@googlegroups.com.
>> Visit this group at http://groups.google.com/group/mpir-devel.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mpir-devel+unsubscr...@googlegroups.com.
To post to this group, send email to mpir-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to