- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi,
I am new in Blas and Lapack and have probably a very simple question. I installed the MKL library 10 and tried to run the example from the User Guide for C++ but I got the error:
g++ -o tmp testblas2.cc -L$MKLPATH -I$MKLINCLUDE -lmkl
testblas2.cc:4: error: declaration of C function `void zdotc(complex16*, int*, complex16*, int*, complex16*, int*)' conflicts with
/opt/intel/mkl/10.0/include/mkl_blas.h:297: error: previous declaration `void zdotc(MKL_Complex16*, int*, MKL_Complex16*, int*, MKL_Complex16*, int*)' here
testblas2.cc:9: error: `main' must return `int'
testblas2.cc: In function `int main(...)':
what is wrong?
Jojo
I am new in Blas and Lapack and have probably a very simple question. I installed the MKL library 10 and tried to run the example from the User Guide for C++ but I got the error:
g++ -o tmp testblas2.cc -L$MKLPATH -I$MKLINCLUDE -lmkl
testblas2.cc:4: error: declaration of C function `void zdotc(complex16*, int*, complex16*, int*, complex16*, int*)' conflicts with
/opt/intel/mkl/10.0/include/mkl_blas.h:297: error: previous declaration `void zdotc(MKL_Complex16*, int*, MKL_Complex16*, int*, MKL_Complex16*, int*)' here
testblas2.cc:9: error: `main' must return `int'
testblas2.cc: In function `int main(...)':
what is wrong?
Jojo
Link kopiert
4 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
You may have a more recent version of g++ than what testblas2 was written for, or the example may not be updated for consistency with MKL 10. It's better to rely entirely on the header file, and remove the conflicting declaration from the example source.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Sorry, its not clear to me what to do?
May icc work for this example?
May icc work for this example?
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
icc may not be as strict in comparing syntax as the latest g++ is, so it may work.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Forall bloody beginners (like me)having the same problem:
#include "mkl_typse.h"
MKL_Complex16* a
compile with:
g++ -o tmp testblas.cc -L$MKLPATH -I$MKLINCLUDE -lmkl -lguide -lpthread
then its fine...

Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite