Re: problem with libraries

Ivan Vučica <[email protected]> Wed, 16 Nov 2011 10:42:34 +0100
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <CAGPLYoSmprVsWi0uxZCLFihZ1NOmfa88QcSyfhxTw7F6Qvw4+Q@mail.gmail.com>
--===============5386075684172660121==
Content-Type: multipart/alternative; boundary=f46d04426dd03fd3aa04b1d6eeac

--f46d04426dd03fd3aa04b1d6eeac
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Specifying header files is necessary for "make dist" to work.

On Mon, Nov 14, 2011 at 23:12, Eric Wasylishen <[email protected]>wrote=
:

> Hi,
>
> The .h files do not need to be included in the GNUmakefile; you just have
> to include them in your .m files with a line like: #import "MyHeader.h"
>
> typically I use the line:
> $(APP_NAME)_OBJC_FILES =3D $(wildcard *.m)
> in my GNUmakefile, which will compile all .m (implementation files) in th=
e
> current directory.
>
> It may help to check out these examples:
>
> ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-examples-1.3.0.tar.gz
>
> and the docs at
>
>
> http://www.gnustep.org/resources/documentation/Developer/Make/Manual/make=
_toc.html
>
> --Eric
>
> On 2011-11-14, at 3:02 PM, Thanasis Petridis wrote:
>
> 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 Objecti=
ve-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.htmlf=
or a good starting point.
>>>
>>>
>>>
>>
> _______________________________________________
> Help-gnustep mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/help-gnustep
>
>
>
> _______________________________________________
> Help-gnustep mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/help-gnustep
>
>


--=20
Ivan Vu=C4=8Dica - [email protected]

--f46d04426dd03fd3aa04b1d6eeac
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Specifying header files is necessary for &quot;make dist&quot; to work.<br>=
<br><div class=3D"gmail_quote">On Mon, Nov 14, 2011 at 23:12, Eric Wasylish=
en <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">ewasylish=
[email protected]</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 style=3D"word-wrap:break-word">Hi,<div=
><br></div><div>The .h files do not need to be included in the GNUmakefile;=
 you just have to include them in your .m files with a line like: #import &=
quot;MyHeader.h&quot;</div>

<div><br></div><div>typically I use the line:</div><div>$(APP_NAME)_OBJC_FI=
LES =3D $(wildcard *.m)</div><div>in my GNUmakefile,=C2=A0which will compil=
e all .m (implementation files) in the current directory.</div><div><br></d=
iv>

<div>It may help to check out these examples:</div><div><br></div><div><a h=
ref=3D"ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-examples-1.3.0.tar.gz=
" target=3D"_blank">ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-examples=
-1.3.0.tar.gz</a></div>

<div><br></div><div>and the docs at</div><div><br></div><div><a href=3D"htt=
p://www.gnustep.org/resources/documentation/Developer/Make/Manual/make_toc.=
html" target=3D"_blank">http://www.gnustep.org/resources/documentation/Deve=
loper/Make/Manual/make_toc.html</a></div>

<span class=3D"HOEnZb"><font color=3D"#888888"><div><br></div><div>--Eric</=
div></font></span><div><br><div><div><div class=3D"h5"><div>On 2011-11-14, =
at 3:02 PM, Thanasis Petridis wrote:</div><br></div></div><blockquote type=
=3D"cite">

<div><div class=3D"h5"><div>Hello again</div><div>=C2=A0</div>I have a new =
problem.=C2=A0<div><br></div><div>How can I compile in objective-C when I h=
ave the implementation code, the class main and the interface code in diffe=
rent 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=C2=
=A0GNUmakefile file?=C2=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]" target=3D"_blank">[email protected]</=
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">Thanks for the answers Adam and Richard!<div=
><div><br><br><div class=3D"gmail_quote">On Mon, Nov 7, 2011 at 4:54 PM, Ri=
chard Frith-Macdonald <span dir=3D"ltr">&lt;<a href=3D"mailto:richard@tiptr=
ee.demon.co.uk" target=3D"_blank">[email protected]</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></div></div><div class=3D"im">
_______________________________________________<br>Help-gnustep mailing lis=
t<br><a href=3D"mailto:[email protected]" target=3D"_blank">Help-gnustep=
@gnu.org</a><br><a href=3D"https://lists.gnu.org/mailman/listinfo/help-gnus=
tep" target=3D"_blank">https://lists.gnu.org/mailman/listinfo/help-gnustep<=
/a><br>

</div></blockquote></div><br></div></div><br>______________________________=
_________________<br>
Help-gnustep mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"https://lists.gnu.org/mailman/listinfo/help-gnustep" target=3D"_=
blank">https://lists.gnu.org/mailman/listinfo/help-gnustep</a><br>
<br></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>Ivan Vu=
=C4=8Dica -=C2=A0<a href=3D"mailto:[email protected]" target=3D"_blank">ivan@=
vucica.net</a><div><div><div><br></div></div></div><br>

--f46d04426dd03fd3aa04b1d6eeac--


--===============5386075684172660121==
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

--===============5386075684172660121==--