Note that there are some explanatory texts on larger screens.

plurals
  1. POinstalling objective c compiler
    primarykey
    data
    text
    <p>i wanted to install objective c compiler for ubuntu.<br> this site was used to install GNUstep on ubuntu. <a href="http://www.techotopia.com/index.php/Installing_and_Using_GNUstep_and_Objective-C_on_Linux" rel="nofollow">http://www.techotopia.com/index.php/Installing_and_Using_GNUstep_and_Objective-C_on_Linux</a> then commands were written in following order in terminal- </p> <hr> <pre><code>sudo apt-get install gnustep sudo apt-get install gnustep-devel </code></pre> <p>then,i wrote my sample code and saved it as hello.m </p> <hr> <pre><code>#import &lt;Foundation/Foundation.h&gt; int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSLog (@"hello world"); [pool drain]; return 0; } </code></pre> <p>then,i typed in terminal</p> <hr> <pre><code>. /usr/share/GNUstep/Makefiles/GNUstep. </code></pre> <hr> <pre><code>gcc `gnustep-config --objc-flags` -lgnustep-base hello.m -o hello </code></pre> <p>then,an error message appeared that </p> <hr> <pre><code>gcc: gnustep-config --objc-flags: No such file or directory hello.m:1:23: fatal error: Foundation.h: No such file or directory compilation terminated. </code></pre> <p>then,i wrote</p> <hr> <pre><code>sudo apt-get install gobjc </code></pre> <p>then,terminal showed</p> <hr> <pre><code>Reading package lists... Done Building dependency tree Reading state information... Done gobjc is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 205 not upgraded. </code></pre> <p>then,i again compiled but it showed again the same error. </p> <hr> <pre><code>hp@ubuntu:~$ gcc 'gnustep-config --objc-flags' -lgnustep-base hello.m -o hello gcc: gnustep-config --objc-flags: No such file or directory hello.m:1:23: fatal error: Foundation.h: No such file or directory compilation terminated. </code></pre> <p>so,need some help.. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload