Saarland University
Lehrstuhl für Automatisierungstechnik

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> CLapack external Libraries
f.perrone
post Oct 21 2011, 06:07 AM
Post #1


Newbie
*

Group: Members
Posts: 9
Joined: 14-March 11
Member No.: 266,812



Hello everybody,

I'm trying to implement the lapack function spptrf into Dymola,but so far my efforts have been completely useless.

Enclosed you might find these files:

- spptrf_.mo, the modelica wrapper;
- test.mo, an easy test for the above function spptrf_;
- f2c.h/clapack.h,the two headers I need;

You will need to download the prebuilt libraries blas.lib,lapack.lib and libf2c.lib from the website

http://icl.cs.utk.edu/lapack-for-windows/clapack/index.html

When I try to traslate the function the below error commands, within the simulation tab, appear:

[/code]Compiling and linking the model (Visual C++).

Setting environment for using Microsoft Visual Studio 2010 x86 tools.
dsmodel.c
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(130) : warning C4028: formal parameter 1 different from declaration
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(130) : warning C4028: formal parameter 4 different from declaration
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(130) : warning C4028: formal parameter 6 different from declaration
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(152) : warning C4030: first formal parameter list longer than the second list
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(152) : warning C4028: formal parameter 1 different from declaration
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(152) : warning C4028: formal parameter 2 different from declaration
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(152) : warning C4028: formal parameter 3 different from declaration
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(152) : warning C4028: formal parameter 4 different from declaration
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(152) : warning C4028: formal parameter 6 different from declaration
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(152) : warning C4028: formal parameter 8 different from declaration
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(152) : warning C4028: formal parameter 9 different from declaration
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(152) : warning C4028: formal parameter 11 different from declaration
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(598) : error C2146: syntax error : missing ')' before identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(598) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(598) : error C2061: syntax error : identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(598) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(598) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(601) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(603) : error C2146: syntax error : missing ')' before identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(603) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(603) : error C2061: syntax error : identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(603) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(603) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(606) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(758) : error C2146: syntax error : missing ')' before identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(758) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(758) : error C2061: syntax error : identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(758) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(758) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(761) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(764) : error C2146: syntax error : missing ')' before identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(764) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(764) : error C2061: syntax error : identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(764) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(764) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(768) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2157) : error C2146: syntax error : missing ')' before identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2157) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2157) : error C2061: syntax error : identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2157) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2157) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2160) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2162) : error C2146: syntax error : missing ')' before identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2162) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2162) : error C2061: syntax error : identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2162) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2162) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2166) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2338) : error C2146: syntax error : missing ')' before identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2338) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2338) : error C2061: syntax error : identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2338) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2338) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2342) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2345) : error C2146: syntax error : missing ')' before identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2345) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2345) : error C2061: syntax error : identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2345) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2345) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(2350) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(3984) : error C2146: syntax error : missing ')' before identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(3984) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(3984) : error C2061: syntax error : identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(3984) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(3984) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(3987) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(3989) : error C2146: syntax error : missing ')' before identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(3989) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(3989) : error C2061: syntax error : identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(3989) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(3989) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(3993) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(4143) : error C2146: syntax error : missing ')' before identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(4143) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(4143) : error C2061: syntax error : identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(4143) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(4143) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(4146) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(4149) : error C2146: syntax error : missing ')' before identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(4149) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(4149) : error C2061: syntax error : identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(4149) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(4149) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(4153) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5590) : error C2146: syntax error : missing ')' before identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5590) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5590) : error C2061: syntax error : identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5590) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5590) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5593) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5595) : error C2146: syntax error : missing ')' before identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5595) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5595) : error C2061: syntax error : identifier 'select'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5595) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5595) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5599) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5766) : error C2146: syntax error : missing ')' before identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5766) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5766) : error C2061: syntax error : identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5766) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5766) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5770) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5773) : error C2146: syntax error : missing ')' before identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5773) : error C2081: 'L_fp' : name in formal parameter list illegal
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5773) : error C2061: syntax error : identifier 'selctg'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5773) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5773) : error C2059: syntax error : ','
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\clapack.h(5778) : error C2059: syntax error : ')'
dsmodel.c(48) : warning C4090: 'function' : different 'const' qualifiers
dsmodel.c(48) : warning C4047: 'function' : 'integer *' differs in levels of indirection from 'int'
dsmodel.c(48) : warning C4024: 'spptrf_' : different types for formal and actual parameter 2
dsmodel.c(48) : warning C4133: 'function' : incompatible types - from 'Real *' to 'real *'

Error generating Dymosim. [code]

the headers are within the visual studios include folder whereas the libraries within the lib folder.

I hope somebody can help me,cause I really need to make use of this external function.

I please you to answer me,giving some hints.

Best regards,
Francesco



Attached File(s)
Attached File  test.mo ( 231bytes ) Number of downloads: 431
Attached File  spptrf_.mo ( 578bytes ) Number of downloads: 427
Attached File  clapack.h ( 335.33k ) Number of downloads: 450
Attached File  f2c.h ( 4.58k ) Number of downloads: 431
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 21st January 2019 - 06:09 PM