<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Programming for multicore: An introduction to OpenMP using GCC-4.4</title>
	<atom:link href="http://rajorshi.net/blog/2009/05/programming-for-multicore-introduction-openmp-gcc/feed/" rel="self" type="application/rss+xml" />
	<link>http://rajorshi.net/blog/2009/05/programming-for-multicore-introduction-openmp-gcc/</link>
	<description>My musings on life, movies and technology</description>
	<lastBuildDate>Sat, 19 May 2012 14:05:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: agencja interaktywna krakow</title>
		<link>http://rajorshi.net/blog/2009/05/programming-for-multicore-introduction-openmp-gcc/comment-page-1/#comment-63110</link>
		<dc:creator>agencja interaktywna krakow</dc:creator>
		<pubDate>Thu, 17 May 2012 13:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://rajorshi.net/blog/?p=52#comment-63110</guid>
		<description>It&#039;s a shame you don&#039;t have a donate button! I&#039;d definitely donate to this superb blog! I suppose for now i&#039;ll settle for bookmarking and adding your RSS feed to my Google account. I look forward to fresh updates and will share this website with my Facebook group. Chat soon!</description>
		<content:encoded><![CDATA[<p>It&#8217;s a shame you don&#8217;t have a donate button! I&#8217;d definitely donate to this superb blog! I suppose for now i&#8217;ll settle for bookmarking and adding your RSS feed to my Google account. I look forward to fresh updates and will share this website with my Facebook group. Chat soon!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodzicielstwo</title>
		<link>http://rajorshi.net/blog/2009/05/programming-for-multicore-introduction-openmp-gcc/comment-page-1/#comment-62714</link>
		<dc:creator>Rodzicielstwo</dc:creator>
		<pubDate>Wed, 16 May 2012 20:02:04 +0000</pubDate>
		<guid isPermaLink="false">http://rajorshi.net/blog/?p=52#comment-62714</guid>
		<description>Study it, liked it, thanks for it</description>
		<content:encoded><![CDATA[<p>Study it, liked it, thanks for it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: organic gardening</title>
		<link>http://rajorshi.net/blog/2009/05/programming-for-multicore-introduction-openmp-gcc/comment-page-1/#comment-61381</link>
		<dc:creator>organic gardening</dc:creator>
		<pubDate>Tue, 15 May 2012 05:01:48 +0000</pubDate>
		<guid isPermaLink="false">http://rajorshi.net/blog/?p=52#comment-61381</guid>
		<description>I&#039;m not sure why but this website is loading incredibly slow for me. Is anyone else having this issue or is it a issue on my end? I&#039;ll check back later on and see if the problem still exists.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure why but this website is loading incredibly slow for me. Is anyone else having this issue or is it a issue on my end? I&#8217;ll check back later on and see if the problem still exists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: machine a affranchir</title>
		<link>http://rajorshi.net/blog/2009/05/programming-for-multicore-introduction-openmp-gcc/comment-page-1/#comment-60641</link>
		<dc:creator>machine a affranchir</dc:creator>
		<pubDate>Mon, 14 May 2012 02:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://rajorshi.net/blog/?p=52#comment-60641</guid>
		<description>Hi there! Someone in my Facebook group shared this website with us so I came to take a look. I&#039;m definitely enjoying the information. I&#039;m book-marking and will be tweeting this to my followers! Wonderful blog and excellent design.</description>
		<content:encoded><![CDATA[<p>Hi there! Someone in my Facebook group shared this website with us so I came to take a look. I&#8217;m definitely enjoying the information. I&#8217;m book-marking and will be tweeting this to my followers! Wonderful blog and excellent design.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond Huddleston</title>
		<link>http://rajorshi.net/blog/2009/05/programming-for-multicore-introduction-openmp-gcc/comment-page-1/#comment-60310</link>
		<dc:creator>Raymond Huddleston</dc:creator>
		<pubDate>Sun, 13 May 2012 12:54:21 +0000</pubDate>
		<guid isPermaLink="false">http://rajorshi.net/blog/?p=52#comment-60310</guid>
		<description>The facts on your website is good. Finding transmit for more postings.</description>
		<content:encoded><![CDATA[<p>The facts on your website is good. Finding transmit for more postings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vada Lippold</title>
		<link>http://rajorshi.net/blog/2009/05/programming-for-multicore-introduction-openmp-gcc/comment-page-1/#comment-59298</link>
		<dc:creator>Vada Lippold</dc:creator>
		<pubDate>Fri, 11 May 2012 21:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://rajorshi.net/blog/?p=52#comment-59298</guid>
		<description>Sorry to the huge evaluate, but I am just really loving the new Zune, and desire this, as well because the excellent reviews a few other people have got written, will assist you to decide whether it&#039;s the right choice for anyone.</description>
		<content:encoded><![CDATA[<p>Sorry to the huge evaluate, but I am just really loving the new Zune, and desire this, as well because the excellent reviews a few other people have got written, will assist you to decide whether it&#8217;s the right choice for anyone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Google Places Optimization Service</title>
		<link>http://rajorshi.net/blog/2009/05/programming-for-multicore-introduction-openmp-gcc/comment-page-1/#comment-58890</link>
		<dc:creator>Google Places Optimization Service</dc:creator>
		<pubDate>Fri, 11 May 2012 10:28:31 +0000</pubDate>
		<guid isPermaLink="false">http://rajorshi.net/blog/?p=52#comment-58890</guid>
		<description>Hello there Nice blog. Do you want to invitee publish on my very own someday? If that&#039;s the case you should let me know by way of e mail or simply answer this kind of comment since My partner and my spouse and i actually subscribed to notifications and can understand should you choose.</description>
		<content:encoded><![CDATA[<p>Hello there Nice blog. Do you want to invitee publish on my very own someday? If that&#8217;s the case you should let me know by way of e mail or simply answer this kind of comment since My partner and my spouse and i actually subscribed to notifications and can understand should you choose.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad Faisal</title>
		<link>http://rajorshi.net/blog/2009/05/programming-for-multicore-introduction-openmp-gcc/comment-page-1/#comment-22711</link>
		<dc:creator>Muhammad Faisal</dc:creator>
		<pubDate>Mon, 19 Mar 2012 22:56:36 +0000</pubDate>
		<guid isPermaLink="false">http://rajorshi.net/blog/?p=52#comment-22711</guid>
		<description>Excellent Post Mr.RAJ..........Felt that I learnt something</description>
		<content:encoded><![CDATA[<p>Excellent Post Mr.RAJ&#8230;&#8230;&#8230;.Felt that I learnt something</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dragoon</title>
		<link>http://rajorshi.net/blog/2009/05/programming-for-multicore-introduction-openmp-gcc/comment-page-1/#comment-18547</link>
		<dc:creator>Dragoon</dc:creator>
		<pubDate>Fri, 09 Mar 2012 07:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://rajorshi.net/blog/?p=52#comment-18547</guid>
		<description>m suing header files as omp.h stdio.h time.h...and sm more it didnt pasted in abv post...Program is working file without omp_num_threads and all 
So,please tell me how can i use omp here.....
do i need to install threads or need to perform any other settings???</description>
		<content:encoded><![CDATA[<p>m suing header files as omp.h stdio.h time.h&#8230;and sm more it didnt pasted in abv post&#8230;Program is working file without omp_num_threads and all<br />
So,please tell me how can i use omp here&#8230;..<br />
do i need to install threads or need to perform any other settings???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dragoon</title>
		<link>http://rajorshi.net/blog/2009/05/programming-for-multicore-introduction-openmp-gcc/comment-page-1/#comment-18546</link>
		<dc:creator>Dragoon</dc:creator>
		<pubDate>Fri, 09 Mar 2012 07:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://rajorshi.net/blog/?p=52#comment-18546</guid>
		<description>when i am trying
gcc title.c
...its givng error like omp_set_num_threads undefiened.

when i gave the command as u told that is
gcc -fopenmp prog1.c
it was givng errors like

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Avi&gt;cd C:\

C:\&gt;gcc -fopenmp title.c
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `_mingw_CRTSt
artup&#039;:
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:193: undefined reference to `__dyn
_tls_init_callback&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:202: undefined reference to `SetUn
handledExceptionFilter@4&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:207: undefined reference to `__cpu
_features_init&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:208: undefined reference to `_fpre
set&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `mingw32_init
_mainargs&#039;:
C:\MinGW\msys\1.0\src\mingwrt/../mingw/init.c:60: undefined reference to `_CRT_g
lob&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/init.c:60: undefined reference to `__getm
ainargs&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `mingw32_init
_fmode&#039;:
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:70: undefined reference to `_CRT_f
mode&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:97: undefined reference to `__p__f
mode&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:97: undefined reference to `_fmode
&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `_mingw_CRTSt
artup&#039;:
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:224: undefined reference to `_pei3
86_runtime_relocator&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:236: undefined reference to `__mai
n&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:244: undefined reference to `__p__
environ&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:250: undefined reference to `_cexi
t&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:252: undefined reference to `ExitP
rocess@4&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `mingw32_init
_fmode&#039;:
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:72: undefined reference to `_fmode
&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:83: undefined reference to `_imp__
_iob&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:83: undefined reference to `_setmo
de&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:87: undefined reference to `_CRT_f
mode&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:87: undefined reference to `_setmo
de&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:91: undefined reference to `_CRT_f
mode&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:91: undefined reference to `_setmo
de&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `gnu_exceptio
n_handler&#039;:
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:162: undefined reference to `signa
l&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:135: undefined reference to `signa
l&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:116: undefined reference to `signa
l&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:140: undefined reference to `signa
l&#039;
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:121: undefined reference to `signa
l&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o:C:\MinGW\msys\1.0\src\ming
wrt/../mingw/crt1.c:165: more undefined references to `signal&#039; follow
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `gnu_exceptio
n_handler&#039;:
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:167: undefined reference to `_fpre
set&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `mainCRTStart
up&#039;:
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:262: undefined reference to `_imp_
___set_app_type&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `WinMainCRTSt
artup&#039;:
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:276: undefined reference to `_imp_
___set_app_type&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `atexit&#039;:
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:288: undefined reference to `_imp_
_atexit&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `onexit&#039;:
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:296: undefined reference to `_imp_
__onexit&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtbegin.o:cygming-crtbegin.c:(.text+0xe):
 undefined reference to `GetModuleHandleA@4&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtbegin.o:cygming-crtbegin.c:(.text+0x23)
: undefined reference to `GetProcAddress@8&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtbegin.o:cygming-crtbegin.c:(.text+0x51)
: undefined reference to `GetModuleHandleA@4&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtbegin.o:cygming-crtbegin.c:(.text+0x66)
: undefined reference to `GetProcAddress@8&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtbegin.o:cygming-crtbegin.c:(.text+0x9a)
: undefined reference to `GetModuleHandleA@4&#039;
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtbegin.o:cygming-crtbegin.c:(.text+0xaf)
: undefined reference to `GetProcAddress@8&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0xa): undefined referenc
e to `__main&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x3b): undefined referen
ce to `printf&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x47): undefined referen
ce to `puts&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x5b): undefined referen
ce to `scanf&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x6f): undefined referen
ce to `fopen&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x86): undefined referen
ce to `puts&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x92): undefined referen
ce to `exit&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0xb6): undefined referen
ce to `fscanf&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0xe4): undefined referen
ce to `fscanf&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0xfb): undefined referen
ce to `fclose&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x109): undefined refere
nce to `clock&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x12f): undefined refere
nce to `clock&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x160): undefined refere
nce to `printf&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x17c): undefined refere
nce to `printf&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x194): undefined refere
nce to `printf&#039;
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x1c2): undefined refere
nce to `printf&#039;
collect2: ld returned 1 exit status



morever i set my PATH variable to 
C:\MinGW\lib\gcc\4.6.2\

i am using MinGW gcc 4.6.2 
please give any useful suggestion to me.
my program is like this 


#include

#include
#include
#include
#include
#define MAX 10000000

void mergesort(float a[],int,int);
void merge(float a[],int,int,int);

float a[MAX],b[MAX];
char ar[MAX];

int main()
{
  FILE *fp;

  int i,n=0,j;
  float time;
  clock_t start,stop;
  double startTime,endTime,wt;
  int iCPU=omp_get_num_procs();

omp_set_num_threads(iCPU);
printf(&quot;nNo of cpu&#039;s=%d\n&quot;,iCPU);

printf(&quot;Parallel version of Merge sort.\nEnter the data file name :\n&quot;);
scanf(&quot;%s&quot;,ar);
if((fp=fopen(ar,&quot;r&quot;))==NULL)
 {
  printf(&quot;Can&#039;t open file\n&quot;);
  exit(1);
 }
i=fscanf(fp,&quot;%f&quot;,&amp;a[n]);
while(i != EOF)
  {
    //printf(&quot;%d,&quot;,a[n]);
    n++;
    i=fscanf(fp,&quot;%f&quot;,&amp;a[n]);
  }
fclose(fp);

startTime=omp_get_wtime();

start=clock();
mergesort(a,0,n-1);
stop=clock();

endTime=omp_get_wtime();

printf(&quot;\nNo of elements=%d\nstart time=%10.9f&quot;,n,((float)(start)/ CLOCKS_PER_SEC));
printf(&quot;\nstop=%10.9f&quot;,((float)(stop)/CLOCKS_PER_SEC));
printf(&quot;\nElapsed time=%10.9f&quot;,(double)(endTime-startTime));
printf(&quot;\nTime taken :%10.9f secs\n&quot;,(((float)(stop-start))/CLOCKS_PER_SEC));

}

void mergesort(float a[],int low,int high)
{
 int mid;

 if (low&lt;high)
 {
  mid=(low+high)/2;
#pragma omp parallel
{
  #pragma omp sections nowait
  {
   #pragma omp section
      mergesort(a,low,mid);
      #pragma omp section
       mergesort(a,mid+1,high);
   }}
  merge(a,low,mid,high);
}
}
void merge(float a[],int low,int mid,int high)
{
  int i,h,j,k;
     h=i=low;
   j= mid + 1;

 while((h&lt;=mid) &amp;&amp; (j&lt;=high))
 if (a[h]&lt;a&gt;mid)
   for(k=j;k&lt;=high;k++)
      b[i++]=a[k];
  else
   for(k=h;k&lt;=mid;k++)
      b[i++]=a[k];

 for(k=low;k&lt;=high;k++)
      a[k]=b[k];
}


but its not geting executed using MInGW</description>
		<content:encoded><![CDATA[<p>when i am trying<br />
gcc title.c<br />
&#8230;its givng error like omp_set_num_threads undefiened.</p>
<p>when i gave the command as u told that is<br />
gcc -fopenmp prog1.c<br />
it was givng errors like</p>
<p>Microsoft Windows XP [Version 5.1.2600]<br />
(C) Copyright 1985-2001 Microsoft Corp.</p>
<p>C:\Documents and Settings\Avi&gt;cd C:\</p>
<p>C:\&gt;gcc -fopenmp title.c<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `_mingw_CRTSt<br />
artup&#8217;:<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:193: undefined reference to `__dyn<br />
_tls_init_callback&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:202: undefined reference to `SetUn<br />
handledExceptionFilter@4&#8242;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:207: undefined reference to `__cpu<br />
_features_init&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:208: undefined reference to `_fpre<br />
set&#8217;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `mingw32_init<br />
_mainargs&#8217;:<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/init.c:60: undefined reference to `_CRT_g<br />
lob&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/init.c:60: undefined reference to `__getm<br />
ainargs&#8217;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `mingw32_init<br />
_fmode&#8217;:<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:70: undefined reference to `_CRT_f<br />
mode&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:97: undefined reference to `__p__f<br />
mode&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:97: undefined reference to `_fmode<br />
&#8216;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `_mingw_CRTSt<br />
artup&#8217;:<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:224: undefined reference to `_pei3<br />
86_runtime_relocator&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:236: undefined reference to `__mai<br />
n&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:244: undefined reference to `__p__<br />
environ&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:250: undefined reference to `_cexi<br />
t&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:252: undefined reference to `ExitP<br />
rocess@4&#8242;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `mingw32_init<br />
_fmode&#8217;:<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:72: undefined reference to `_fmode<br />
&#8216;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:83: undefined reference to `_imp__<br />
_iob&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:83: undefined reference to `_setmo<br />
de&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:87: undefined reference to `_CRT_f<br />
mode&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:87: undefined reference to `_setmo<br />
de&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:91: undefined reference to `_CRT_f<br />
mode&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:91: undefined reference to `_setmo<br />
de&#8217;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `gnu_exceptio<br />
n_handler&#8217;:<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:162: undefined reference to `signa<br />
l&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:135: undefined reference to `signa<br />
l&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:116: undefined reference to `signa<br />
l&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:140: undefined reference to `signa<br />
l&#8217;<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:121: undefined reference to `signa<br />
l&#8217;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o:C:\MinGW\msys\1.0\src\ming<br />
wrt/../mingw/crt1.c:165: more undefined references to `signal&#8217; follow<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `gnu_exceptio<br />
n_handler&#8217;:<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:167: undefined reference to `_fpre<br />
set&#8217;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `mainCRTStart<br />
up&#8217;:<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:262: undefined reference to `_imp_<br />
___set_app_type&#8217;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `WinMainCRTSt<br />
artup&#8217;:<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:276: undefined reference to `_imp_<br />
___set_app_type&#8217;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `atexit&#8217;:<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:288: undefined reference to `_imp_<br />
_atexit&#8217;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../crt2.o: In function `onexit&#8217;:<br />
C:\MinGW\msys\1.0\src\mingwrt/../mingw/crt1.c:296: undefined reference to `_imp_<br />
__onexit&#8217;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtbegin.o:cygming-crtbegin.c:(.text+0xe):<br />
 undefined reference to `GetModuleHandleA@4&#8242;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtbegin.o:cygming-crtbegin.c:(.text+0&#215;23)<br />
: undefined reference to `GetProcAddress@8&#8242;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtbegin.o:cygming-crtbegin.c:(.text+0&#215;51)<br />
: undefined reference to `GetModuleHandleA@4&#8242;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtbegin.o:cygming-crtbegin.c:(.text+0&#215;66)<br />
: undefined reference to `GetProcAddress@8&#8242;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtbegin.o:cygming-crtbegin.c:(.text+0x9a)<br />
: undefined reference to `GetModuleHandleA@4&#8242;<br />
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtbegin.o:cygming-crtbegin.c:(.text+0xaf)<br />
: undefined reference to `GetProcAddress@8&#8242;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0xa): undefined referenc<br />
e to `__main&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x3b): undefined referen<br />
ce to `printf&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0&#215;47): undefined referen<br />
ce to `puts&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x5b): undefined referen<br />
ce to `scanf&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x6f): undefined referen<br />
ce to `fopen&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0&#215;86): undefined referen<br />
ce to `puts&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0&#215;92): undefined referen<br />
ce to `exit&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0xb6): undefined referen<br />
ce to `fscanf&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0xe4): undefined referen<br />
ce to `fscanf&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0xfb): undefined referen<br />
ce to `fclose&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0&#215;109): undefined refere<br />
nce to `clock&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x12f): undefined refere<br />
nce to `clock&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0&#215;160): undefined refere<br />
nce to `printf&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x17c): undefined refere<br />
nce to `printf&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0&#215;194): undefined refere<br />
nce to `printf&#8217;<br />
C:\DOCUME~1\Avi\LOCALS~1\Temp\ccYSWgNR.o:title.c:(.text+0x1c2): undefined refere<br />
nce to `printf&#8217;<br />
collect2: ld returned 1 exit status</p>
<p>morever i set my PATH variable to<br />
C:\MinGW\lib\gcc\4.6.2\</p>
<p>i am using MinGW gcc 4.6.2<br />
please give any useful suggestion to me.<br />
my program is like this </p>
<p>#include</p>
<p>#include<br />
#include<br />
#include<br />
#include<br />
#define MAX 10000000</p>
<p>void mergesort(float a[],int,int);<br />
void merge(float a[],int,int,int);</p>
<p>float a[MAX],b[MAX];<br />
char ar[MAX];</p>
<p>int main()<br />
{<br />
  FILE *fp;</p>
<p>  int i,n=0,j;<br />
  float time;<br />
  clock_t start,stop;<br />
  double startTime,endTime,wt;<br />
  int iCPU=omp_get_num_procs();</p>
<p>omp_set_num_threads(iCPU);<br />
printf(&#8220;nNo of cpu&#8217;s=%d\n&#8221;,iCPU);</p>
<p>printf(&#8220;Parallel version of Merge sort.\nEnter the data file name :\n&#8221;);<br />
scanf(&#8220;%s&#8221;,ar);<br />
if((fp=fopen(ar,&#8221;r&#8221;))==NULL)<br />
 {<br />
  printf(&#8220;Can&#8217;t open file\n&#8221;);<br />
  exit(1);<br />
 }<br />
i=fscanf(fp,&#8221;%f&#8221;,&amp;a[n]);<br />
while(i != EOF)<br />
  {<br />
    //printf(&#8220;%d,&#8221;,a[n]);<br />
    n++;<br />
    i=fscanf(fp,&#8221;%f&#8221;,&amp;a[n]);<br />
  }<br />
fclose(fp);</p>
<p>startTime=omp_get_wtime();</p>
<p>start=clock();<br />
mergesort(a,0,n-1);<br />
stop=clock();</p>
<p>endTime=omp_get_wtime();</p>
<p>printf(&#8220;\nNo of elements=%d\nstart time=%10.9f&#8221;,n,((float)(start)/ CLOCKS_PER_SEC));<br />
printf(&#8220;\nstop=%10.9f&#8221;,((float)(stop)/CLOCKS_PER_SEC));<br />
printf(&#8220;\nElapsed time=%10.9f&#8221;,(double)(endTime-startTime));<br />
printf(&#8220;\nTime taken :%10.9f secs\n&#8221;,(((float)(stop-start))/CLOCKS_PER_SEC));</p>
<p>}</p>
<p>void mergesort(float a[],int low,int high)<br />
{<br />
 int mid;</p>
<p> if (low&lt;high)<br />
 {<br />
  mid=(low+high)/2;<br />
#pragma omp parallel<br />
{<br />
  #pragma omp sections nowait<br />
  {<br />
   #pragma omp section<br />
      mergesort(a,low,mid);<br />
      #pragma omp section<br />
       mergesort(a,mid+1,high);<br />
   }}<br />
  merge(a,low,mid,high);<br />
}<br />
}<br />
void merge(float a[],int low,int mid,int high)<br />
{<br />
  int i,h,j,k;<br />
     h=i=low;<br />
   j= mid + 1;</p>
<p> while((h&lt;=mid) &amp;&amp; (j&lt;=high))<br />
 if (a[h]<a>mid)<br />
   for(k=j;k&lt;=high;k++)<br />
      b[i++]=a[k];<br />
  else<br />
   for(k=h;k&lt;=mid;k++)<br />
      b[i++]=a[k];</p>
<p> for(k=low;k&lt;=high;k++)<br />
      a[k]=b[k];<br />
}</p>
<p>but its not geting executed using MInGW</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

