<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic compile errors when trying to call imsl fortran functions from vc++ project in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-errors-when-trying-to-call-imsl-fortran-functions-from/m-p/844354#M62323</link>
    <description>Sir/Madam&lt;BR /&gt;
I am using intel fortran compiler and MS .NET .I tried to call imsl fortran function(LSGRR) from a vc++ project and there are many compile errors.The code is as follows&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
#include &lt;BR /&gt;
#include &lt;BR /&gt;
#include &lt;BR /&gt;
//#include "avlib.h"&lt;BR /&gt;
#include "avcrt.h"&lt;BR /&gt;
#include "link_f90_static.h"&lt;BR /&gt;
//#include "link_f90_dll.h"&lt;BR /&gt;
extern void __stdcall LSGRR(double a,double GINV,int TOL,int IRANK);&lt;BR /&gt;
&lt;BR /&gt;
main ()&lt;BR /&gt;
{&lt;BR /&gt;
int NRA=3, NCA=2, LDA=3,LDGINV=2,IRANK;&lt;BR /&gt;
double A[3][2],GINV[2][3],**TOL;&lt;BR /&gt;
for (int i=1;i=3;i++)&lt;BR /&gt;
{&lt;BR /&gt;
for(int j=1;j=2;j++)&lt;BR /&gt;
A&lt;I&gt;&lt;J&gt;=i+1;&lt;BR /&gt;
}&lt;BR /&gt;
TOL = AMACH(4);&lt;BR /&gt;
TOL = 10 * TOL;&lt;BR /&gt;
LSGRR_(A, GINV,TOL=TOL, IRANK=IRANK);&lt;BR /&gt;
WRRRN_('GINV', GINV);&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
and the errors are as follows&lt;BR /&gt;
&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h(2): error C2015: too many characters in constant&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h(3): error C2015: too many characters in constant&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h(4): error C2015: too many characters in constant&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h error C2059: syntax error : '!'&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h error C2059: syntax error : 'constant'&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h(2): error C2059: syntax error : 'constant'&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h(3): error C2059: syntax error : 'constant'&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h(4): error C2059: syntax error : 'constant'&lt;BR /&gt;
c:ProgrammeIlogswaroop_examplesc_fortranc_fortran1.cpp(24): error C2297: '*' : illegal, right operand has type 'double ** '&lt;BR /&gt;
c:ProgrammeIlogswaroop_examplesc_fortranc_fortran1.cpp(23): error C3861: 'AMACH': identifier not found, even with argument-dependent lookup&lt;BR /&gt;
c:ProgrammeIlogswaroop_examplesc_fortranc_fortran1.cpp(25): error C3861: 'LSGRR_': identifier not found, even with argument-dependent lookup&lt;BR /&gt;
c:ProgrammeIlogswaroop_examplesc_fortranc_fortran1.cpp(26): error C3861: 'WRRRN_': identifier not found, even with argument-dependent lookup&lt;BR /&gt;
c_fortran Command line warning D4007 : '/Gm' requires '/Zi or /ZI'; option ignored&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Please help me in this regard&lt;BR /&gt;
&lt;BR /&gt;
Swaroop&lt;/J&gt;&lt;/I&gt;</description>
    <pubDate>Tue, 06 Dec 2005 17:16:28 GMT</pubDate>
    <dc:creator>swarup_1981</dc:creator>
    <dc:date>2005-12-06T17:16:28Z</dc:date>
    <item>
      <title>compile errors when trying to call imsl fortran functions from vc++ project</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-errors-when-trying-to-call-imsl-fortran-functions-from/m-p/844354#M62323</link>
      <description>Sir/Madam&lt;BR /&gt;
I am using intel fortran compiler and MS .NET .I tried to call imsl fortran function(LSGRR) from a vc++ project and there are many compile errors.The code is as follows&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
#include &lt;BR /&gt;
#include &lt;BR /&gt;
#include &lt;BR /&gt;
//#include "avlib.h"&lt;BR /&gt;
#include "avcrt.h"&lt;BR /&gt;
#include "link_f90_static.h"&lt;BR /&gt;
//#include "link_f90_dll.h"&lt;BR /&gt;
extern void __stdcall LSGRR(double a,double GINV,int TOL,int IRANK);&lt;BR /&gt;
&lt;BR /&gt;
main ()&lt;BR /&gt;
{&lt;BR /&gt;
int NRA=3, NCA=2, LDA=3,LDGINV=2,IRANK;&lt;BR /&gt;
double A[3][2],GINV[2][3],**TOL;&lt;BR /&gt;
for (int i=1;i=3;i++)&lt;BR /&gt;
{&lt;BR /&gt;
for(int j=1;j=2;j++)&lt;BR /&gt;
A&lt;I&gt;&lt;J&gt;=i+1;&lt;BR /&gt;
}&lt;BR /&gt;
TOL = AMACH(4);&lt;BR /&gt;
TOL = 10 * TOL;&lt;BR /&gt;
LSGRR_(A, GINV,TOL=TOL, IRANK=IRANK);&lt;BR /&gt;
WRRRN_('GINV', GINV);&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
and the errors are as follows&lt;BR /&gt;
&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h(2): error C2015: too many characters in constant&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h(3): error C2015: too many characters in constant&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h(4): error C2015: too many characters in constant&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h error C2059: syntax error : '!'&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h error C2059: syntax error : 'constant'&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h(2): error C2059: syntax error : 'constant'&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h(3): error C2059: syntax error : 'constant'&lt;BR /&gt;
C:ProgrammeVNICTT5.0includeIntel32link_f90_static.h(4): error C2059: syntax error : 'constant'&lt;BR /&gt;
c:ProgrammeIlogswaroop_examplesc_fortranc_fortran1.cpp(24): error C2297: '*' : illegal, right operand has type 'double ** '&lt;BR /&gt;
c:ProgrammeIlogswaroop_examplesc_fortranc_fortran1.cpp(23): error C3861: 'AMACH': identifier not found, even with argument-dependent lookup&lt;BR /&gt;
c:ProgrammeIlogswaroop_examplesc_fortranc_fortran1.cpp(25): error C3861: 'LSGRR_': identifier not found, even with argument-dependent lookup&lt;BR /&gt;
c:ProgrammeIlogswaroop_examplesc_fortranc_fortran1.cpp(26): error C3861: 'WRRRN_': identifier not found, even with argument-dependent lookup&lt;BR /&gt;
c_fortran Command line warning D4007 : '/Gm' requires '/Zi or /ZI'; option ignored&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Please help me in this regard&lt;BR /&gt;
&lt;BR /&gt;
Swaroop&lt;/J&gt;&lt;/I&gt;</description>
      <pubDate>Tue, 06 Dec 2005 17:16:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-errors-when-trying-to-call-imsl-fortran-functions-from/m-p/844354#M62323</guid>
      <dc:creator>swarup_1981</dc:creator>
      <dc:date>2005-12-06T17:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: compile errors when trying to call imsl fortran functions f</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-errors-when-trying-to-call-imsl-fortran-functions-from/m-p/844355#M62324</link>
      <description>The link_xxx.h files are not C include files.  They are Fortran files, despite the .h file type.  You will need to explicitly name the IMSL libraries you wish to link against in the Linker property page.</description>
      <pubDate>Wed, 07 Dec 2005 01:08:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-errors-when-trying-to-call-imsl-fortran-functions-from/m-p/844355#M62324</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-12-07T01:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: compile errors when trying to call imsl fortran functions f</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-errors-when-trying-to-call-imsl-fortran-functions-from/m-p/844356#M62325</link>
      <description>I specified the libraries in the project properties--linker--input--additional dependencies.I specified the path in the project properties--linker--general--library directories.I even specified the paths in tools--options--projects--vc++ direcories.but even then the same errors persist.Can you help me in this regard.&lt;BR /&gt;swaroop</description>
      <pubDate>Wed, 21 Dec 2005 23:46:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-errors-when-trying-to-call-imsl-fortran-functions-from/m-p/844356#M62325</guid>
      <dc:creator>swarup_1981</dc:creator>
      <dc:date>2005-12-21T23:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: compile errors when trying to call imsl fortran functions f</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-errors-when-trying-to-call-imsl-fortran-functions-from/m-p/844357#M62326</link>
      <description>See my reply in your other thread.</description>
      <pubDate>Thu, 22 Dec 2005 00:29:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-errors-when-trying-to-call-imsl-fortran-functions-from/m-p/844357#M62326</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-12-22T00:29:13Z</dc:date>
    </item>
  </channel>
</rss>

