<?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: C compiler error in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675571#M102816</link>
    <description>Mark,&lt;BR /&gt;&lt;BR /&gt;Initially the name of the source file supplied was incorrect "test.cc" instead of "test.c" and hence the reason why cc couldn't find it. Afterwards a correct source file was supplied and the C compiler did create an executable "a.out" which is the name of the default executable created when no output file is supplied explicitly with the "-o" switch as:&lt;BR /&gt;&lt;BR /&gt;# cc -o test test.cc&lt;BR /&gt;&lt;BR /&gt;The compiler warned about the PA-RISC architecture version since the created executable wouldn't run on anything less than a PA-RISC2.0 machine, however you need not concern yourself with it. IMHO...your command for generating the executable should be...&lt;BR /&gt;&lt;BR /&gt;HP[/c]# cc -Wl,+vnocompatwarnings test.c -o test&lt;BR /&gt;&lt;BR /&gt;...or run the default executable in your working directory "a.out" as follows:&lt;BR /&gt;&lt;BR /&gt;HP[/c]# ./a.out&lt;BR /&gt;&lt;BR /&gt;hope it helps!!!&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 21 Nov 2005 13:31:55 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2005-11-21T13:31:55Z</dc:date>
    <item>
      <title>C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675565#M102810</link>
      <description>HP[/c]# cat test.c&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;main(int argc, char **argv)&lt;BR /&gt;{&lt;BR /&gt;        printf("Hello World\n");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;HP[/c]#&lt;BR /&gt;HP[/c]# cc -o test test.cc&lt;BR /&gt;/usr/ccs/bin/ld: Can't open test.cc&lt;BR /&gt;/usr/ccs/bin/ld: Not found Directory and file&lt;BR /&gt;HP[/c]# ll&lt;BR /&gt;Total 80 Block&lt;BR /&gt;-rwxrwxrwx   1 root       sys          20480 11 21 15:06 a.out&lt;BR /&gt;-rwxrwxrwx   1 root       sys             85 11 21 12:39 test.c&lt;BR /&gt;HP[/c]# cc test.c&lt;BR /&gt;/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (test.o) was detected. The linked output may not run on a PA&lt;BR /&gt;1.x system.&lt;BR /&gt;HP[/c]#&lt;BR /&gt;HP[/c]# cc -Wl,+vnocompatwarnings test.c&lt;BR /&gt;HP[/c]# ll&lt;BR /&gt;Total 80 Block.&lt;BR /&gt;-rwxrwxrwx   1 root       sys          20480 11 21 15:08 a.out&lt;BR /&gt;-rwxrwxrwx   1 root       sys             85 11 21 12:39 test.c&lt;BR /&gt;HP[/c]#&lt;BR /&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Mon, 21 Nov 2005 04:09:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675565#M102810</guid>
      <dc:creator>mark.M</dc:creator>
      <dc:date>2005-11-21T04:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675566#M102811</link>
      <description>Not into coding. But going by the warning message it seems that you are compiling onto 64 bit platform and cc is telling that thise code will not run on PA1.0-32 bits platforms.&lt;BR /&gt;&lt;BR /&gt;May be you need +PORTABLE or some similar option.</description>
      <pubDate>Mon, 21 Nov 2005 04:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675566#M102811</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-11-21T04:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675567#M102812</link>
      <description>i'm used 64bit(rp4440,11v1) machine.&lt;BR /&gt;aC++ installed.&lt;BR /&gt;no create object file. why???</description>
      <pubDate>Mon, 21 Nov 2005 04:26:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675567#M102812</guid>
      <dc:creator>mark.M</dc:creator>
      <dc:date>2005-11-21T04:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675568#M102813</link>
      <description>I think you need to understand the message. If you plan to run code on this machine only, then go ahead. If you plan to run code on 32 and 64 bit, then you need to resolve this.</description>
      <pubDate>Mon, 21 Nov 2005 04:32:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675568#M102813</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-11-21T04:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675569#M102814</link>
      <description>It seems to be looking for a file called test.cc and your file is called test.c&lt;BR /&gt;&lt;BR /&gt;I've never used cc so I don't know if it differs from gcc, but what I do is this:&lt;BR /&gt;&lt;BR /&gt;gcc test.c -o test.cc&lt;BR /&gt;&lt;BR /&gt;where test.c is the existing file and test.cc is the output (compiled) file.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Mon, 21 Nov 2005 04:32:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675569#M102814</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-11-21T04:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675570#M102815</link>
      <description>Hi,&lt;BR /&gt;  this command will help U&lt;BR /&gt;&lt;BR /&gt;#cc -o test test.c</description>
      <pubDate>Mon, 21 Nov 2005 05:02:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675570#M102815</guid>
      <dc:creator>Senthil Prabu.S_1</dc:creator>
      <dc:date>2005-11-21T05:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675571#M102816</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;Initially the name of the source file supplied was incorrect "test.cc" instead of "test.c" and hence the reason why cc couldn't find it. Afterwards a correct source file was supplied and the C compiler did create an executable "a.out" which is the name of the default executable created when no output file is supplied explicitly with the "-o" switch as:&lt;BR /&gt;&lt;BR /&gt;# cc -o test test.cc&lt;BR /&gt;&lt;BR /&gt;The compiler warned about the PA-RISC architecture version since the created executable wouldn't run on anything less than a PA-RISC2.0 machine, however you need not concern yourself with it. IMHO...your command for generating the executable should be...&lt;BR /&gt;&lt;BR /&gt;HP[/c]# cc -Wl,+vnocompatwarnings test.c -o test&lt;BR /&gt;&lt;BR /&gt;...or run the default executable in your working directory "a.out" as follows:&lt;BR /&gt;&lt;BR /&gt;HP[/c]# ./a.out&lt;BR /&gt;&lt;BR /&gt;hope it helps!!!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Nov 2005 13:31:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-error/m-p/3675571#M102816</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-11-21T13:31:55Z</dc:date>
    </item>
  </channel>
</rss>

