求助 VC6sp6+Intel9.1+Openmp编译程序出错
程序如下:
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char* argv[])
{
#pragma omp parallel num_threads(3)
{
int myID,numthreads;
myID=omp_get_thread_num();
numthreads=omp_get_num_threads();
printf("Hello world from thread %d of %d!\n",myID,numthreads);
}
system("pause");
}
在Release版下基本正常,在Debug版下编译出现下列信息:
Compiling...
icl mul.cpp
icl: warning: problem with Microsoft compilation of 'C:\Documents and Settings\fumin\桌面\mul\mul.cpp'
C:\Documents and Settings\fumin\桌面\mul\mul.cpp(8) : (col. 2) remark: OpenMP DEFINED REGION WAS PARALLELIZED.
Linking...
xilink6: executing 'C:\PROGRA~1\MICROS~4\VC98\Bin\link.exe'
LINK : fatal error LNK1000: unknown error; consult documentation for technical support options
Error executing xilink6.exe.
mul.exe - 1 error(s), 1 warning(s)
不知道怎么回事,谁能帮忙看看 谢啦!