Re: problem with libraries

Thanasis Petridis <[email protected]> Tue, 15 Nov 2011 00:02:37 +0200
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <CALOpJ4SKktQyKMOJZ8Ye9qrO2Kra9S6cfCiE30s88m96JGWxmw@mail.gmail.com>
--===============2080726581797812513==
Content-Type: multipart/alternative; boundary=14dae93410535cfaff04b1b907e1

--14dae93410535cfaff04b1b907e1
Content-Type: text/plain; charset=ISO-8859-1

Hello again

I have a new problem.

How can I compile in objective-C when I have the implementation code, the
class main and the interface code in different files ?

For example I would like to have the main class in the file "test.m", and
the interface in the file Fraction.h and the implementation in the file
Fraction.m .
What should I have to write inside the GNUmakefile file?

Thanks.

On Tue, Nov 8, 2011 at 12:21 AM, Thanasis Petridis <[email protected]>wrote:

> Thanks for the answers Adam and Richard!
>
>
> On Mon, Nov 7, 2011 at 4:54 PM, Richard Frith-Macdonald <
> [email protected]> wrote:
>
>>
>> On 6 Nov 2011, at 19:59, Thanasis Petridis wrote:
>>
>> > Hello. My name is Thanasis.
>> >
>> > First of all sorry for my poor english.
>> >
>> > Secondly, if this is the wrong mailing list or if there is a solution
>> for my problem, just tell me which is the correct mailing list or where is
>> the answer.
>> >
>> > I have a PC running on Windows 7 and I want to start programming apps
>> for iOS. So I figured out that I should start from learning the Objective-C
>> language.
>> > So I searched in the Internet and I found that I can program
>> Objective-C on windows 7 through GNUstep. I install in the directory
>> c:\GNUstep the following 3 setups
>> >
>> > -gnustep-msys-system-0.28.1-setup
>> > -gnustep-core-0.28.0-setup
>> > -gnustep-devel-1.3.0-setup
>> >
>> > I have created a file hello.m in the folder c:\new
>> > I started the shell application
>> > I wrote c:\new
>> > and then I wrote g++ hello.m
>>
>> This is where you went wrong ... you can't really build code trying to
>> use a compiler directly because there are various options, include
>> directories, and libraries which need to be used.
>> You should use gnustep-make to automate the build process and fill in all
>> those options for you.
>>
>> See http://www.gnustep.it/nicola/Tutorials/WritingMakefiles/index.htmlfor a good starting point.
>>
>>
>>
>

--14dae93410535cfaff04b1b907e1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>Hello again</div><div>=A0</div>I have a new problem.=A0<div><br></div>=
<div>How can I compile in objective-C when I have the implementation code, =
the class main and the interface code in different files ?</div><div><br></=
div>
<div>For example I would like to have the main class in the file &quot;test=
.m&quot;, and the interface in the file Fraction.h and the implementation i=
n the file Fraction.m .</div><div>What should I have to write inside the=A0=
GNUmakefile file?=A0</div>
<div><br></div><div>Thanks.</div><div><br><div class=3D"gmail_quote">On Tue=
, Nov 8, 2011 at 12:21 AM, Thanasis Petridis <span dir=3D"ltr">&lt;<a href=
=3D"mailto:[email protected]">[email protected]</a>&gt;</span> wrot=
e:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;">Thanks for the answers Adam and Richard!<di=
v class=3D"HOEnZb"><div class=3D"h5"><br><br><div class=3D"gmail_quote">On =
Mon, Nov 7, 2011 at 4:54 PM, Richard Frith-Macdonald <span dir=3D"ltr">&lt;=
<a href=3D"mailto:[email protected]" target=3D"_blank">richard@ti=
ptree.demon.co.uk</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div><br>
On 6 Nov 2011, at 19:59, Thanasis Petridis wrote:<br>
<br>
&gt; Hello. My name is Thanasis.<br>
&gt;<br>
&gt; First of all sorry for my poor english.<br>
&gt;<br>
&gt; Secondly, if this is the wrong mailing list or if there is a solution =
for my problem, just tell me which is the correct mailing list or where is =
the answer.<br>
&gt;<br>
&gt; I have a PC running on Windows 7 and I want to start programming apps =
for iOS. So I figured out that I should start from learning the Objective-C=
 language.<br>
&gt; So I searched in the Internet and I found that I can program Objective=
-C on windows 7 through GNUstep. I install in the directory c:\GNUstep the =
following 3 setups<br>
&gt;<br>
&gt; -gnustep-msys-system-0.28.1-setup<br>
&gt; -gnustep-core-0.28.0-setup<br>
&gt; -gnustep-devel-1.3.0-setup<br>
&gt;<br>
&gt; I have created a file hello.m in the folder c:\new<br>
&gt; I started the shell application<br>
&gt; I wrote c:\new<br>
&gt; and then I wrote g++ hello.m<br>
<br>
</div>This is where you went wrong ... you can&#39;t really build code tryi=
ng to use a compiler directly because there are various options, include di=
rectories, and libraries which need to be used.<br>
You should use gnustep-make to automate the build process and fill in all t=
hose options for you.<br>
<br>
See <a href=3D"http://www.gnustep.it/nicola/Tutorials/WritingMakefiles/inde=
x.html" target=3D"_blank">http://www.gnustep.it/nicola/Tutorials/WritingMak=
efiles/index.html</a> for a good starting point.<br>
<br>
<br>
</blockquote></div><br>
</div></div></blockquote></div><br></div>

--14dae93410535cfaff04b1b907e1--


--===============2080726581797812513==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Help-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-gnustep

--===============2080726581797812513==--