<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: compiling problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894036#M103633</link>
    <description>in (t)csh:&lt;BR /&gt;&lt;BR /&gt;setenv PATH $PATH:"/your/path/to/gcc/bin"&lt;BR /&gt;&lt;BR /&gt;in (k)sh:&lt;BR /&gt;&lt;BR /&gt;export PATH=$PATH:"/your/path/to/gcc/bin"&lt;BR /&gt;&lt;BR /&gt;best to do this in your ~/.profile (for (k)sh) or ~/.login (for (t)csh) or - even better - add the path in /etc/PATH, so all of you get it all the time.&lt;BR /&gt;&lt;BR /&gt;The sequence is important here. Commands will be found in the first path it resides.&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
    <pubDate>Fri, 31 Jan 2003 17:36:10 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2003-01-31T17:36:10Z</dc:date>
    <item>
      <title>compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894029#M103626</link>
      <description>Hello Dears&lt;BR /&gt;i have a problem when i install any software like imap or qpopper , i walk with the procedure &lt;BR /&gt;but when i do make for compiling &lt;BR /&gt;error occured attached with this message can any one help me step by step how can i finish compiling with no error codes &lt;BR /&gt;thank you all</description>
      <pubDate>Fri, 31 Jan 2003 16:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894029#M103626</guid>
      <dc:creator>mohammed arafat_2</dc:creator>
      <dc:date>2003-01-31T16:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894030#M103627</link>
      <description>Unfortunately there is no simple answer. Your source code is written in ANSI C but the bundled C compiler on;y 'speaks' the archaic K&amp;amp;R C dialect. You need to purchase an ANSI C compiler (or the aC++ compiler) from HP or download and install gcc from&lt;BR /&gt;&lt;A href="http://gatekeep.cs.utah.edu/hppd/hpux/." target="_blank"&gt;http://gatekeep.cs.utah.edu/hppd/hpux/.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jan 2003 17:02:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894030#M103627</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-31T17:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894031#M103628</link>
      <description>You will get this error using the standard cc which ships with HP-UX.  YOu need to get HP-ANSI C or... Gnu EGCS.&lt;BR /&gt;&lt;BR /&gt;If you get egcs, make sure to get the bin-utils with it, and any other pre-reqs you see!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Fri, 31 Jan 2003 17:02:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894031#M103628</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2003-01-31T17:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894032#M103629</link>
      <description>ok Stephenson ,&lt;BR /&gt;i did what u said , i've installed a depot for gcc 3.2 &lt;BR /&gt;same problem still on my terminal, &lt;BR /&gt;how can i check if gcc is working i've installed all the depndcies ( bison, flex, make ) so what do u suggest ???</description>
      <pubDate>Fri, 31 Jan 2003 17:15:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894032#M103629</guid>
      <dc:creator>mohammed arafat_2</dc:creator>
      <dc:date>2003-01-31T17:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894033#M103630</link>
      <description>gcc --version&lt;BR /&gt;&lt;BR /&gt;should give the version info. If it does not, gcc is not in your $PATH</description>
      <pubDate>Fri, 31 Jan 2003 17:21:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894033#M103630</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-01-31T17:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894034#M103631</link>
      <description>ok ,&lt;BR /&gt;sorry man , but how i can add gcc to my PATH , excuse me but can u give a step by step soluation &lt;BR /&gt;i'm going to be crazy &lt;BR /&gt;i'm nes in unix &lt;BR /&gt;thanx</description>
      <pubDate>Fri, 31 Jan 2003 17:25:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894034#M103631</guid>
      <dc:creator>mohammed arafat_2</dc:creator>
      <dc:date>2003-01-31T17:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894035#M103632</link>
      <description>If you get the same errors, it's because you are still using the bundled compiler (cc) rather than gcc.&lt;BR /&gt;&lt;BR /&gt;Do this:&lt;BR /&gt;&lt;BR /&gt;Create a text file hello.c&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;  (void) printf("Hello world. Argc = %d\n",argc);&lt;BR /&gt;  return(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;gcc hello.c&lt;BR /&gt;&lt;BR /&gt;You should get an executable file. If it executes you are all set.&lt;BR /&gt;&lt;BR /&gt;You then need to make sure that your application makefile calls gcc rather than cc. Most packages have a configure script that you can run toi create the makefiles.&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jan 2003 17:26:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894035#M103632</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-31T17:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894036#M103633</link>
      <description>in (t)csh:&lt;BR /&gt;&lt;BR /&gt;setenv PATH $PATH:"/your/path/to/gcc/bin"&lt;BR /&gt;&lt;BR /&gt;in (k)sh:&lt;BR /&gt;&lt;BR /&gt;export PATH=$PATH:"/your/path/to/gcc/bin"&lt;BR /&gt;&lt;BR /&gt;best to do this in your ~/.profile (for (k)sh) or ~/.login (for (t)csh) or - even better - add the path in /etc/PATH, so all of you get it all the time.&lt;BR /&gt;&lt;BR /&gt;The sequence is important here. Commands will be found in the first path it resides.&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Fri, 31 Jan 2003 17:36:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894036#M103633</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-01-31T17:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894037#M103634</link>
      <description>i created the file &lt;BR /&gt;hello.c &lt;BR /&gt;attached with this message &lt;BR /&gt;&lt;BR /&gt;it  said error in line 3 when i excute &lt;BR /&gt;./hello.c &lt;BR /&gt;&lt;BR /&gt;be patint at me</description>
      <pubDate>Fri, 31 Jan 2003 17:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894037#M103634</guid>
      <dc:creator>mohammed arafat_2</dc:creator>
      <dc:date>2003-01-31T17:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894038#M103635</link>
      <description>You can't exectute 'hello.c' that the source file but you should see a file (probably called a.out) which is executable.&lt;BR /&gt;&lt;BR /&gt;You can do this to specify an output file (with -o).&lt;BR /&gt;&lt;BR /&gt;gcc hello.c -o hello&lt;BR /&gt;&lt;BR /&gt;Now you should be able to execute 'hello' and get the expected output.&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jan 2003 17:40:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894038#M103635</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-31T17:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894039#M103636</link>
      <description>Stephenson ,,&lt;BR /&gt;still not working &lt;BR /&gt;any aother way&lt;BR /&gt;&lt;BR /&gt;and it is says gcc not found i've added to my PATH &lt;BR /&gt;&lt;BR /&gt;i think i did not follow u withe hello.c thing &lt;BR /&gt;can u please be more details &lt;BR /&gt;where should i put hello.c and how can i excute it &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jan 2003 18:07:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894039#M103636</guid>
      <dc:creator>mohammed arafat_2</dc:creator>
      <dc:date>2003-01-31T18:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894040#M103637</link>
      <description># cat hello.c&lt;BR /&gt;int main()&lt;BR /&gt;{ printf("Hello\n"; }&lt;BR /&gt;# gcc -o hello hello.c&lt;BR /&gt;# ./hello&lt;BR /&gt;&lt;BR /&gt;if you are using a (t)csh, you should use&lt;BR /&gt;&lt;BR /&gt;# rehash&lt;BR /&gt;&lt;BR /&gt;after you have changed your $PATH&lt;BR /&gt;&lt;BR /&gt;type&lt;BR /&gt;&lt;BR /&gt;# which gcc&lt;BR /&gt;&lt;BR /&gt;to check if it is in your path. If it cannot be found, you get an error message like&lt;BR /&gt;&lt;BR /&gt;gcc: command not found&lt;BR /&gt;&lt;BR /&gt;otherwise it will show the path to gcc, like&lt;BR /&gt;&lt;BR /&gt;/usr/local/bin/gcc&lt;BR /&gt;&lt;BR /&gt;the first part (/usr/local/bin) should be in your $PATH. You can check that with&lt;BR /&gt;&lt;BR /&gt;# echo $PATH&lt;BR /&gt;/bin:/usr/bin:/some/path:/usr/contrib/bin:/usr/local/bin:/opt/foo/bin&lt;BR /&gt;&lt;BR /&gt;if that first part is in there, you should be able to complete the compilation as I started this post.&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Fri, 31 Jan 2003 18:24:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894040#M103637</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-01-31T18:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894041#M103638</link>
      <description>If you updated your path properly in the .profile, you must start a new session to have that profile read.  &lt;BR /&gt;&lt;BR /&gt;You should have added the paths to this file like this...&lt;BR /&gt;&lt;BR /&gt;echo "PATH=/opt/egcs/bin:/opt/gnu-binutils/bin:$PATH" &amp;gt;&amp;gt;/.profile&lt;BR /&gt;echo "export PATH" &amp;gt;&amp;gt;/etc/profile&lt;BR /&gt;&lt;BR /&gt;NOTE:  MY DIRECTORIES ARE HYPOTHETICAL, MAKE SURE THEY EXIST.&lt;BR /&gt;&lt;BR /&gt;If you do this then log out then back in you will be able to check to see if it's correct.&lt;BR /&gt;&lt;BR /&gt;% which gcc&lt;BR /&gt;/opt/egcs/bin/gcc&lt;BR /&gt;&lt;BR /&gt;If you can not use the which command to find gcc, then your path's are still bad.  &lt;BR /&gt;&lt;BR /&gt;I'd suggest you look at "Unix in a Nutshell, published by O'Reilly and Associates".  It has some basic tips/trics for shells and basic unix commands.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Fri, 31 Jan 2003 18:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894041#M103638</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2003-01-31T18:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894042#M103639</link>
      <description>Dear procura &lt;BR /&gt;&lt;BR /&gt;i have made what u said , everything is fine except the hello.c &lt;BR /&gt;&lt;BR /&gt;gcc is running it is in my path when i run #which gcc it gives me the path &lt;BR /&gt;but when i excute &lt;BR /&gt;gcc -h hello hello.c &lt;BR /&gt;it is gives me &lt;BR /&gt;( # gcc -o hello hello.c&lt;BR /&gt;as: warning 2: Unknown option "--traditional-format" ignored.&lt;BR /&gt;as: "/var/tmp//ccVjkgzc.s", line 22: error 1052: Directive name not recognized - NSUBSPA&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;the hello.c is as the followig : &lt;BR /&gt;int main()&lt;BR /&gt;{ printf("hello\n"); }&lt;BR /&gt;&lt;BR /&gt;any ideas &lt;BR /&gt;thank you &lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jan 2003 21:45:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894042#M103639</guid>
      <dc:creator>mohammed arafat_2</dc:creator>
      <dc:date>2003-01-31T21:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894043#M103640</link>
      <description>gcc -h???? That must be a typo.&lt;BR /&gt;&lt;BR /&gt;l1:/u/usr/merijn 101 &amp;gt; cat &amp;gt;hello.c&lt;BR /&gt;int main() &lt;BR /&gt;{ printf("hello\n"); } &lt;BR /&gt;l1:/u/usr/merijn 102 &amp;gt; which gcc&lt;BR /&gt;/pro/local/bin/gcc&lt;BR /&gt;l1:/u/usr/merijn 103 &amp;gt; gcc --version&lt;BR /&gt;gcc (GCC) 3.3 20030120 (prerelease)&lt;BR /&gt;Copyright (C) 2002 Free Software Foundation, Inc.&lt;BR /&gt;This is free software; see the source for copying conditions.  There is NO&lt;BR /&gt;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;BR /&gt;&lt;BR /&gt;l1:/u/usr/merijn 104 &amp;gt; gcc -o hello hello.c&lt;BR /&gt;l1:/u/usr/merijn 105 &amp;gt; ./hello&lt;BR /&gt;hello&lt;BR /&gt;Exit 244&lt;BR /&gt;l1:/u/usr/merijn 106 &amp;gt; gcc -h hello hello.c&lt;BR /&gt;gcc: unrecognized option `-h'&lt;BR /&gt;/usr/ccs/bin/ld: hello: Not a valid object file (invalid magic number)&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;Exit 1&lt;BR /&gt;l1:/u/usr/merijn 107 &amp;gt; &lt;BR /&gt;&lt;BR /&gt;Note that this is gcc-3.3 prerelease, a version not (yet) available as prebuild binary.&lt;BR /&gt;&lt;BR /&gt;Do you have write rights on /var/tmp?&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Mon, 03 Feb 2003 18:16:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem/m-p/2894043#M103640</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-02-03T18:16:50Z</dc:date>
    </item>
  </channel>
</rss>

