<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-658216900889963978</id><updated>2024-09-23T06:45:40.842+05:30</updated><category term="Compilation"/><category term="Compiler Flags"/><category term="Preprocessing"/><category term="Yacc/Lex"/><title type='text'>Solaris to Linux Porting</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-8072348312794839356</id><published>2011-03-18T17:06:00.002+05:30</published><updated>2011-03-18T17:08:12.933+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compilation"/><title type='text'>multiple definition of</title><content type='html'>You get an error such as &lt;br /&gt;multiple definition of `MyClass::MyVariable&#39;&lt;br /&gt;&lt;br /&gt;Most probably its a static variable which is declared as well as defined in the header file.&lt;br /&gt;&lt;br /&gt;Defining the static variable is not a good idea, you should always define your static variables in the corresponding source file.</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/8072348312794839356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/03/multiple-definition-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/8072348312794839356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/8072348312794839356'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/03/multiple-definition-of.html' title='multiple definition of'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-1270648384895226095</id><published>2011-03-18T16:47:00.003+05:30</published><updated>2011-03-18T16:59:16.006+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compilation"/><title type='text'>error: invalid conversion from void (*)(void*, void*) to void*</title><content type='html'>If you get an error like &quot;{error: invalid conversion from void (*)(void*, void*) to void*&quot;, you need to typedef your function pointer according the function being pointed to.&lt;br /&gt;&lt;br /&gt;Consequently, use this typedefed variable in the function call instead of &quot;void*&quot; or something else.&lt;br /&gt;&lt;br /&gt;In my case,&lt;br /&gt;I had to call my function having the signature as&lt;br /&gt;&lt;br /&gt;void fun(void*, void*)&lt;br /&gt;&lt;br /&gt;My typedef would look like&lt;br /&gt;&lt;br /&gt;typedef void (className::*Method) (void*, void*);&lt;br /&gt;OR&lt;br /&gt;typedef void (*Method) (void*, void*);&lt;br /&gt;whichever works for you. &lt;br /&gt;For the first usage you will need a forward decalartion of your class, like&lt;br /&gt;class className;&lt;br /&gt;&lt;br /&gt;In the function which takes this function pointer, use the Method variable instead of &quot;void *&quot; or anything else.&lt;br /&gt;&lt;br /&gt;void  callingFunc(Method function);&lt;br /&gt;&lt;br /&gt;Hope the clarifies to some extent</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/1270648384895226095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/03/error-invalid-conversion-from-void-void.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/1270648384895226095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/1270648384895226095'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/03/error-invalid-conversion-from-void-void.html' title='error: invalid conversion from void (*)(void*, void*) to void*'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-5054699003899698537</id><published>2011-02-18T15:41:00.003+05:30</published><updated>2011-02-18T15:47:24.602+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compilation"/><title type='text'>getting file descriptor from file stream in linux</title><content type='html'>#include &quot;iostream&quot;&lt;br /&gt;#include &quot;ext/stdio_filebuf.h&quot;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;ofstream  *stream = new ofstream;&lt;br /&gt;stream-&gt;open(&quot;test_file&quot;,ios::app);&lt;br /&gt;&lt;br /&gt;    typedef std::basic_filebuf&lt;char&gt; filebuf_t;&lt;br /&gt;    filebuf_t* bbuf = dynamic_cast&lt;filebuf_t*&gt;(stream-&gt;rdbuf());&lt;br /&gt;    if (bbuf != NULL) {&lt;br /&gt;        struct my_filebuf : public std::basic_filebuf&lt;char&gt; {&lt;br /&gt;            int fd() { return this-&gt;_M_file.fd(); }&lt;br /&gt;        };&lt;br /&gt;        &lt;br /&gt;        cout &lt;&lt; &quot;fd = &quot; &lt;&lt; static_cast&lt;my_filebuf*&gt;(bbuf)-&gt;fd()&lt;&lt; endl;&lt;br /&gt;    }&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/5054699003899698537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/02/getting-file-descriptor-from-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/5054699003899698537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/5054699003899698537'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/02/getting-file-descriptor-from-file.html' title='getting file descriptor from file stream in linux'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-6664676177032653330</id><published>2011-01-20T15:32:00.003+05:30</published><updated>2011-01-20T15:35:00.729+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compilation"/><title type='text'>error: invalid initialization of non-const reference of type &lt;&gt; from a temporary of type</title><content type='html'>Solution: Don’t ever pass temporary object by reference.&lt;br /&gt;Reason: C++ doesn&#39;t allow to bind the temporary object with non-const reference.&lt;br /&gt;&lt;br /&gt;This is not about performance, but about the fact that you do or may alter the original, which you are not allowed to if that original is a temporary. Passing by value instead of by reference, we wouldn&#39;t have the problem.</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/6664676177032653330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/01/error-invalid-initialization-of-non.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/6664676177032653330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/6664676177032653330'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/01/error-invalid-initialization-of-non.html' title='error: invalid initialization of non-const reference of type &lt;&gt; from a temporary of type'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-6214834685268524625</id><published>2011-01-18T17:34:00.004+05:30</published><updated>2011-01-20T15:35:23.832+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compilation"/><category scheme="http://www.blogger.com/atom/ns#" term="Preprocessing"/><title type='text'>error: pasting &quot;.&quot; and &quot;x&quot; does not give a valid preprocessing token</title><content type='html'>Make sure you are not doing the mistake of putting &quot;##&quot; before macro argument i.e VAR, &lt;br /&gt;it should be put only between macro argument and the string to be concatenated.&lt;br /&gt; &lt;br /&gt;Change something like this &lt;br /&gt;&lt;span style=&quot;font-style:italic;&quot;&gt;&quot;arg-&gt;VAR. ## VAR ## _val,&quot; &lt;br /&gt;to &quot;arg-&gt;VAR.VAR ## _val,&quot; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Also, no need of &quot;##&quot; for the line below for calling the function.&lt;br /&gt; &lt;br /&gt;&lt;span style=&quot;font-style:italic;&quot;&gt;&quot;G(win-&gt; ## FUNC,(c, win,&quot; &lt;br /&gt;to &quot;G(win-&gt;FUNC,(c, win,&quot;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/6214834685268524625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/01/error-pasting-and-x-does-not-give-valid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/6214834685268524625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/6214834685268524625'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/01/error-pasting-and-x-does-not-give-valid.html' title='error: pasting &quot;.&quot; and &quot;x&quot; does not give a valid preprocessing token'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-1777360369312333373</id><published>2011-01-18T13:54:00.004+05:30</published><updated>2011-01-18T14:04:57.569+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compilation"/><title type='text'>error: assignment of read-only location</title><content type='html'>This error/warning may come you are trying to assign value to a read-only, const variable. To overcome this issue, Always use conditional expression instead of if-else statement while assigning values to const variables.&lt;br /&gt;&lt;br /&gt;Please check sample program.&lt;br /&gt;&lt;br /&gt;#include &lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt; char *test_string = &quot;test&quot;;&lt;br /&gt; char *my_string = &quot;my&quot;;&lt;br /&gt;&lt;br /&gt; const char *string =&lt;br /&gt;    test_string?&lt;br /&gt;      test_string:&lt;br /&gt;      my_string;&lt;br /&gt;&lt;br /&gt;/* below code will give error, don&#39;t use if-else stmt&lt;br /&gt; &lt;br /&gt;   const char *string;&lt;br /&gt;    if (test_string)&lt;br /&gt;         *string = test_string;&lt;br /&gt;    else&lt;br /&gt;         *string = my_string;&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;  printf(&quot;test_string = %s\n&quot;,test_string);&lt;br /&gt;  printf(&quot;my_string = %s\n&quot;,my_string);&lt;br /&gt;  printf(&quot;string = %s\n&quot;,string);&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/1777360369312333373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/01/error-assignment-of-read-only-location.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/1777360369312333373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/1777360369312333373'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/01/error-assignment-of-read-only-location.html' title='error: assignment of read-only location'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-8226482813084898368</id><published>2011-01-12T16:08:00.003+05:30</published><updated>2011-01-12T16:12:07.139+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compilation"/><title type='text'>error: pasting &quot;::&quot; and &quot;xyz&quot; does not give a valid preprocessing token</title><content type='html'>if u get the error like&lt;br /&gt;&lt;br /&gt;&quot;error: pasting &quot;::&quot; and &quot;xyz&quot; does not give a valid preprocessing token&quot;&lt;br /&gt;&lt;br /&gt;then &lt;br /&gt;&lt;br /&gt;Remove ## before scope resolution opeator. &lt;br /&gt;For e.g change &quot;ErrorId::##TypeId&quot; to &quot;ErrorId::TypeId&quot;</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/8226482813084898368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/01/error-pasting-and-xyz-does-not-give.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/8226482813084898368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/8226482813084898368'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2011/01/error-pasting-and-xyz-does-not-give.html' title='error: pasting &quot;::&quot; and &quot;xyz&quot; does not give a valid preprocessing token'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-2374087996021973047</id><published>2010-12-30T14:36:00.004+05:30</published><updated>2010-12-30T14:39:41.487+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compilation"/><title type='text'>unresolved overloaded function type</title><content type='html'>error: no matching function for call to class1::input(void*, unresolved overloaded function type)&lt;br /&gt;note: candidates are: int class1::input(void*, int (class1::*)(void*, int))&lt;br /&gt;&lt;br /&gt;if your function call is like&lt;br /&gt;&lt;span style=&quot;font-style:italic;&quot;&gt;input( (void*)&amp;cur_msg, class1::input);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;change it to&lt;br /&gt;&lt;span style=&quot;font-style:italic;&quot;&gt;input( (void*)&amp;cur_msg, &amp;class1::input);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Its basically a function pointer, so you need to pass address of that function</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/2374087996021973047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/unresolved-overloaded-function-type.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/2374087996021973047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/2374087996021973047'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/unresolved-overloaded-function-type.html' title='unresolved overloaded function type'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-721892465764818618</id><published>2010-12-28T21:26:00.000+05:30</published><updated>2010-12-28T21:29:41.989+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compilation"/><title type='text'>error: TIOCFLUSH was not declared in this scope</title><content type='html'>include &quot;sys/ioctl.h&quot; on Linux, change TIOCFLUSH to TCFLSH in ioctl call</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/721892465764818618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/error-tiocflush-was-not-declared-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/721892465764818618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/721892465764818618'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/error-tiocflush-was-not-declared-in.html' title='error: TIOCFLUSH was not declared in this scope'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-687261605278238373</id><published>2010-12-28T21:19:00.000+05:30</published><updated>2010-12-28T21:23:11.310+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compilation"/><title type='text'>error: expected constructor, destructor, or type conversion before &amp; token</title><content type='html'>If you get the following error&lt;br /&gt;&quot;error: expected constructor, destructor, or type conversion before &amp; token&quot;&lt;br /&gt;or&lt;br /&gt;&quot;error: expected initializer before &amp; token&quot;&lt;br /&gt;&lt;br /&gt;Add &quot;std::&quot; before the token, if token is part of std namespace.&lt;br /&gt;like std::ostream.&lt;br /&gt;You can also think of adding &quot;using namespace std;&quot; in your source file but Please don&#39;t add using line in your header file.</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/687261605278238373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/error-expected-constructor-destructor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/687261605278238373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/687261605278238373'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/error-expected-constructor-destructor.html' title='error: expected constructor, destructor, or type conversion before &amp; token'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-5194573522186274576</id><published>2010-12-23T16:53:00.000+05:30</published><updated>2010-12-23T16:55:02.859+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compilation"/><title type='text'>error: extra qualification on member</title><content type='html'>If you get the above error, just remove the extra scope resolution operator,:: and it should work fine.</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/5194573522186274576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/error-extra-qualification-on-member.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/5194573522186274576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/5194573522186274576'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/error-extra-qualification-on-member.html' title='error: extra qualification on member'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-4912290811560935900</id><published>2010-12-20T18:45:00.000+05:30</published><updated>2010-12-20T18:48:06.499+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compilation"/><title type='text'>error: ostrstream was not declared in this scope</title><content type='html'>If you get such errors&lt;br /&gt;&quot;error: ostrstream was not declared in this scope&quot;&lt;br /&gt;&lt;br /&gt;try to include its relevant header file and/or namespace.&lt;br /&gt;&lt;br /&gt;For this error, include &lt;strstream&gt; or &lt;strstream.h&gt; along with using namespace std;</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/4912290811560935900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/error-ostrstream-was-not-declared-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/4912290811560935900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/4912290811560935900'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/error-ostrstream-was-not-declared-in.html' title='error: ostrstream was not declared in this scope'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-7069289491432551043</id><published>2010-12-18T13:11:00.001+05:30</published><updated>2010-12-18T13:55:19.619+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Yacc/Lex"/><title type='text'>Yacc and Lex</title><content type='html'>In Linux, &lt;br /&gt;Yacc is a script which calls Bison (Yacc supported utility on Linux).&lt;br /&gt;Lex is a script which calls Flex (Lex supported utility on Linux).&lt;br /&gt;&lt;br /&gt;If you face linking issue for lex, please change &quot;-ll&quot; to &quot;-lfl&quot;. Yacc should work with &quot;-ly&quot; as usual.&lt;br /&gt;&lt;br /&gt;If you get following error,&lt;br /&gt;&quot;error: macro &quot;yywrap&quot; passed 1 arguments, but takes just 0&quot;&lt;br /&gt;&lt;br /&gt;Change &quot;#define yywrap() 1&quot; to &quot;%option noyywrap&quot;.&lt;br /&gt;Note put this option line outside of %{ ...}% section. This section is for the code which needs to get directly into the generated .c file.</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/7069289491432551043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/porting-isuues-for-yacc-and-lex-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/7069289491432551043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/7069289491432551043'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/porting-isuues-for-yacc-and-lex-to.html' title='Yacc and Lex'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-658216900889963978.post-17395092753084082</id><published>2010-12-15T11:12:00.000+05:30</published><updated>2010-12-15T11:22:35.766+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compiler Flags"/><title type='text'>Compiler Flags</title><content type='html'>cc/CC Flags on Solaris------&gt;gcc/g++ Flags on Linux&lt;br /&gt;===================================================&lt;br /&gt;&quot;-fast&quot;  ------&gt;  &quot;-O2&quot;&lt;br /&gt;&quot;-O5&quot;    ------&gt;  &quot;-O3&quot;&lt;br /&gt;&quot;-xarch&quot; ------&gt; &quot;-mcpu, -march&quot;&lt;br /&gt;&quot;-xchip&quot; ------&gt; No Equivalent in Linux (probably not required)&lt;br /&gt;&quot;-PIC/KPIC&quot; -----&gt; &quot;-fPIC&quot;&lt;br /&gt;&quot;-library&quot; --------&gt; &quot;-I Include Path -L Lib Path&quot;&lt;br /&gt;&quot;-compat=5&quot; -------&gt; &quot;-fabi-version=2&quot;&lt;br /&gt;&quot;-D__SUNPRO_C&quot; ------&gt; &quot;__VERSION__&quot;&lt;br /&gt;&quot;-ptr&quot; -------------&gt; No equivalent in Linux, not required.&lt;br /&gt;&quot;-ll&quot;  -------------&gt; &quot;-lfl&quot; - For linking lex, as Linux has Flex</content><link rel='replies' type='application/atom+xml' href='http://solaris2linuxport.blogspot.com/feeds/17395092753084082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/compiler-flags.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/17395092753084082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/658216900889963978/posts/default/17395092753084082'/><link rel='alternate' type='text/html' href='http://solaris2linuxport.blogspot.com/2010/12/compiler-flags.html' title='Compiler Flags'/><author><name>Anurag</name><uri>http://www.blogger.com/profile/03477378406369937602</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>