Click here to Skip to main content
15,917,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionImageList_DrawIndirect Problem! Pin
r3dqu33n10-Jan-07 6:15
r3dqu33n10-Jan-07 6:15 
QuestionRe: ImageList_DrawIndirect Problem! Pin
Mark Salsbery10-Jan-07 7:33
Mark Salsbery10-Jan-07 7:33 
AnswerRe: ImageList_DrawIndirect Problem! Pin
r3dqu33n10-Jan-07 8:36
r3dqu33n10-Jan-07 8:36 
GeneralRe: ImageList_DrawIndirect Problem! Pin
Mark Salsbery10-Jan-07 8:42
Mark Salsbery10-Jan-07 8:42 
QuestionProblem with CMap GetStartPosition() Pin
vipin_nvk10-Jan-07 5:22
vipin_nvk10-Jan-07 5:22 
AnswerRe: Problem with CMap GetStartPosition() Pin
PJ Arends10-Jan-07 5:56
professionalPJ Arends10-Jan-07 5:56 
QuestionRe: Problem with CMap GetStartPosition() Pin
David Crow10-Jan-07 5:59
David Crow10-Jan-07 5:59 
QuestionWhat's the problem of my program? Pin
Ming Luo10-Jan-07 5:15
Ming Luo10-Jan-07 5:15 
Hi all:
The following is my program.
<br />
#define WIN32_LEAN_AND_MEAN<br />
#include <math.h><br />
#include <windows.h><br />
#include <stdio.h><br />
#include <stdlib.h><br />
#include "lapack\matrix_clapack.h"<br />
<br />
<br />
#define NDIM 2 <br />
#define M_PI 3.14<br />
<br />
int main (){<br />
<br />
integer i, j, info2;<br />
integer N, NRHS, LDA, LDB;<br />
doublecomplex *A;<br />
doublecomplex *B;<br />
static integer IPIV[NDIM], INFO;<br />
<br />
A = (doublecomplex*) malloc(NDIM*NDIM*sizeof(doublecomplex));<br />
B = (doublecomplex*) malloc(NDIM*sizeof(doublecomplex));<br />
<br />
N=NDIM; NRHS=1; LDA=NDIM; LDB=NDIM;<br />
<br />
    for (i=0;i<N;i++){<br />
       for (j=0;j<N;j++) {<br />
          A[i+N*j].r = cos(M_PI*(i+1)*3.0/4.0);  <br />
          A[i+N*j].i = sin(M_PI*(j+1)/5.0);  <br />
          printf("   %f + %fi \n",A[i+N*j].r, A[i+N*j].i);<br />
       }<br />
    }<br />
<br />
   B[0].r = 1.0; <br />
   B[0].i = 1.0; <br />
   B[1].r = 2.0;<br />
   B[1].i = 3.0;<br />
<br />
<br />
   info2 = zgesv_(&N, &NRHS, A, &LDA, IPIV, B, &LDB, &INFO);<br />
<br />
   printf("info %d \n",INFO);<br />
 <br />
   for (i=0;i<N;i++)<br />
      printf("   %f + %fi \n",B[i].r, B[i].i);<br />
}<br />


And here is the compiler message:
<br />
1>------ Build started: Project: test, Configuration: Debug Win32 ------<br />
1>Compiling...<br />
1>test.cpp<br />
1>Linking...<br />
1>test.obj : error LNK2019: unresolved external symbol _zgesv_ referenced in function _main<br />
1>D:\Project\test\Debug\test.exe : fatal error LNK1120: 1 unresolved externals<br />
1>Build log was saved at "file://d:\Project\test\test\Debug\BuildLog.htm"<br />
1>test - 2 error(s), 0 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<br />
<br />


I just want to try to test the LAPACK library. But what's the problem with this program please?
Thanks


Asura

AnswerRe: What's the problem of my program? Pin
Roger Stoltz10-Jan-07 5:36
Roger Stoltz10-Jan-07 5:36 
GeneralRe: What's the problem of my program? Pin
PJ Arends10-Jan-07 6:02
professionalPJ Arends10-Jan-07 6:02 
GeneralRe: What's the problem of my program? Pin
Roger Stoltz10-Jan-07 6:11
Roger Stoltz10-Jan-07 6:11 
QuestionSending File Through UDP Pin
Girish60110-Jan-07 4:14
Girish60110-Jan-07 4:14 
AnswerRe: Sending File Through UDP Pin
Roger Stoltz10-Jan-07 4:36
Roger Stoltz10-Jan-07 4:36 
AnswerRe: Sending File Through UDP Pin
James R. Twine10-Jan-07 4:50
James R. Twine10-Jan-07 4:50 
GeneralRe: Sending File Through UDP Pin
Tim Paaschen10-Jan-07 19:42
Tim Paaschen10-Jan-07 19:42 
GeneralRe: Sending File Through UDP Pin
James R. Twine11-Jan-07 13:38
James R. Twine11-Jan-07 13:38 
AnswerRe: Sending File Through UDP Pin
Eytukan10-Jan-07 4:56
Eytukan10-Jan-07 4:56 
QuestionWhat happens when I open a file with its "default" program? Pin
KellyR10-Jan-07 3:18
KellyR10-Jan-07 3:18 
AnswerRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 3:38
Roger Stoltz10-Jan-07 3:38 
QuestionRe: What happens when I open a file with its "default" program? Pin
KellyR10-Jan-07 4:01
KellyR10-Jan-07 4:01 
GeneralRe: What happens when I open a file with its "default" program? Pin
CPallini10-Jan-07 4:12
mveCPallini10-Jan-07 4:12 
GeneralRe: What happens when I open a file with its "default" program? Pin
KellyR10-Jan-07 4:18
KellyR10-Jan-07 4:18 
GeneralRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 4:15
Roger Stoltz10-Jan-07 4:15 
GeneralRe: What happens when I open a file with its "default" program? Pin
CPallini10-Jan-07 4:21
mveCPallini10-Jan-07 4:21 
GeneralRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 4:30
Roger Stoltz10-Jan-07 4:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.