Re: [fpc-devel] Math and numlib

2017-03-14 Thread Werner Pamler
Thanks - unfortunately I've just uploaded a patch for unit typ implementing IsNaN and IsInfinity according to Michael's suggestion. But I think I'll withdraw the patch and replace it with one for a cleaned up typ unit. How about cleaning up also spe? It contains a large number of functions

Re: [fpc-devel] Math and numlib

2017-03-14 Thread Michael Van Canneyt
On Tue, 14 Mar 2017, Werner Pamler wrote: Thanks - unfortunately I've just uploaded a patch for unit typ implementing IsNaN and IsInfinity according to Michael's suggestion. But I think I'll withdraw the patch and replace it with one for a cleaned up typ unit. How about cleaning up also

[fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread LacaK
Hi, I have C/C++ librarby (".lib" for Windows and ".a" for Linux) from Intel IPP package (they distribute ".lib" and also ".dll" for Windows and ".a" for Linux) Can I link in FPC (on Windows) at compile time to this ".lib" versions ? Or only possible way is link at runtime using ".dll" (and

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread Sven Barth via fpc-devel
Am 14.03.2017 13:30 schrieb "LacaK" : > > Hi, > > I have C/C++ librarby (".lib" for Windows and ".a" for Linux) from Intel IPP package (they distribute ".lib" and also ".dll" for Windows and ".a" for Linux) > > Can I link in FPC (on Windows) at compile time to this ".lib" versions

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread Tomas Hajny
On Tue, March 14, 2017 14:36, Sven Barth via fpc-devel wrote: > Am 14.03.2017 14:33 schrieb "Sven Barth" : >> Am 14.03.2017 13:30 schrieb "LacaK" : >> > >> > Hi, >> > >> > I have C/C++ librarby (".lib" for Windows and ".a" for Linux) from > Intel IPP

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread Sven Barth via fpc-devel
Am 14.03.2017 14:33 schrieb "Sven Barth" : > > Am 14.03.2017 13:30 schrieb "LacaK" : > > > > Hi, > > > > I have C/C++ librarby (".lib" for Windows and ".a" for Linux) from Intel IPP package (they distribute ".lib" and also ".dll" for Windows and ".a"

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread Pierre Free Pascal
> -Message d'origine- > De : fpc-devel [mailto:fpc-devel-boun...@lists.freepascal.org] De la > part de LacaK > Envoyé : mardi 14 mars 2017 13:30 > À : fpc-devel@lists.freepascal.org > Objet : [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal > on Windows > > Hi, > > I

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread silvioprog
On Tue, Mar 14, 2017 at 9:30 AM, LacaK wrote: > Hi, > > I have C/C++ librarby (".lib" for Windows and ".a" for Linux) from Intel > IPP package (they distribute ".lib" and also ".dll" for Windows and ".a" > for Linux) > > Can I link in FPC (on Windows) at compile time to this

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread silvioprog
On Tue, Mar 14, 2017 at 10:36 AM, Sven Barth via fpc-devel < fpc-devel@lists.freepascal.org> wrote: [...] > Small correction: I meant "static COFF libraries", not "COFF import > libraries" (the later can be considered a special case of the former > though). > Is there any plan to support COFF

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread silvioprog
On Tue, Mar 14, 2017 at 11:57 AM, silvioprog wrote: [...] > Anyway I've tried to use COFF objects on Windows, but I'm not sure if FPC > supports that because it returns a "illegal COFF magic while reading some > lib". :-/ (on Linux it works like a charm) > Oh, sorry. It

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread silvioprog
On Tue, Mar 14, 2017 at 11:29 AM, silvioprog wrote: > On Tue, Mar 14, 2017 at 10:36 AM, Sven Barth via fpc-devel < > fpc-devel@lists.freepascal.org> wrote: > [...] > >> Small correction: I meant "static COFF libraries", not "COFF import >> libraries" (the later can be

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread Adriaan van Os
LacaK wrote: Hi, I have C/C++ librarby (".lib" for Windows and ".a" for Linux) from Intel IPP package (they distribute ".lib" and also ".dll" for Windows and ".a" for Linux) Note that you can download my ipp FPC interfaces here . I do link with

[fpc-devel] Math and numlib

2017-03-14 Thread Werner Pamler
Hi everybody - my first post here... At the moment I am spending some time with fpc's numlib and writing a wrapper for a more versatile fitting procedure. Are there any problems to add the unit math to the uses clause of some numlib units? I want to use the value NaN (not-a-number) which is

Re: [fpc-devel] Math and numlib

2017-03-14 Thread Michael Van Canneyt
On Mon, 13 Mar 2017, Werner Pamler wrote: Hi everybody - my first post here... At the moment I am spending some time with fpc's numlib and writing a wrapper for a more versatile fitting procedure. Are there any problems to add the unit math to the uses clause of some numlib units? I want

Re: [fpc-devel] Math and numlib

2017-03-14 Thread Marco van de Voort
In our previous episode, Werner Pamler said: > > is no way to check whether a value is "equal" to NaN. In math, however, > there is a function IsNaN(). And my feeling is that these special > numbers NaN and Infinity are implemented in math in a more general way > than in numlib. An idea would

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread silvioprog
On Tue, Mar 14, 2017 at 12:39 PM, silvioprog wrote: > On Tue, Mar 14, 2017 at 12:26 PM, LacaK wrote: > >> Dňa 14.3.2017 o 15:57 silvioprog napísal(a): > > [...] > >> here I get (without {$linklib}): >> Error: Undefined symbol:

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread LacaK
Dňa 14.3.2017 o 15:57 silvioprog napísal(a): On Tue, Mar 14, 2017 at 9:30 AM, LacaK > wrote: Hi, I have C/C++ librarby (".lib" for Windows and ".a" for Linux) from Intel IPP package (they distribute ".lib" and also ".dll" for Windows

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread silvioprog
On Tue, Mar 14, 2017 at 12:26 PM, LacaK wrote: > Dňa 14.3.2017 o 15:57 silvioprog napísal(a): [...] > here I get (without {$linklib}): > Error: Undefined symbol: IPP__IPPITHRESHOLD_LTVAL_8U_C1 > IR$PIPP8U$LONGINT$IPPISIZE$BYTE$BYTE$$IPPSTATUS > > test 2: put the library