Re: problem with libraries

Adam Fedor <[email protected]> Mon, 7 Nov 2011 07:50:13 -0700
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <[email protected]>
--===============0201882993537488342==
Content-Type: multipart/alternative; boundary=Apple-Mail-2-920313671


--Apple-Mail-2-920313671
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


On Nov 6, 2011, at 12:59 PM, Thanasis Petridis wrote:
>=20
> I have created a file hello.m in the folder c:\new=20
> I started the shell application
> I wrote c:\new
> and then I wrote g++ hello.m and I get the error " Foundation.h: No =
such file or directory compilation terminated"
> I changed the path of Foundation in the source code of my program to =
the correct=20
>=20
> " #import =
<C:\GNUstep\GNUstep\System\Library\Headers\Foundation\Foundation.h> "
>=20
> and then I get the error : " =
C:\GNUstep\GNUstep\System\Library\Headers\Foundation\Foundation.h:30:40: =
fatal error: GNUstepBase/GSVersionMacros.h: No such file or directory "
>=20
> I changed the path of the GSVersionMacros.h inside the source code of =
the Foundation.h file and then I got a new error for another header file =
inside the GSVersionMacros.h file.
>=20
> How can I fix this? Should I have to do this for all the header files?=20=

>=20
> Thank you very much.
>=20

It would be easiest to use Makefiles to help set up and compile you =
program.  See the documentation here:

http://www.gnustep.it/nicola/Tutorials/WritingMakefiles/

and more documentation here:

http://www.gnustep.org/developers/documentation.html


--Apple-Mail-2-920313671
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=us-ascii

<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 6, 2011, at 12:59 PM, Thanasis Petridis wrote:</div><blockquote type="cite"><div><font style="background-color: rgb(255, 255, 255);" color="#000000"><br></font></div><div><font class="Apple-style-span" style="background-color: rgb(255, 255, 255);">I have created a file hello.m in the folder c:\new&nbsp;</font></div>
<div><font class="Apple-style-span" style="background-color: rgb(255, 255, 255);">I started the shell application</font></div><div><font class="Apple-style-span" style="background-color: rgb(255, 255, 255);">I wrote c:\new</font></div>
<div><font class="Apple-style-span" style="background-color: rgb(255, 255, 255);">and then I wrote g++ hello.m and I get the error " Foundation.h: No such file or directory compilation terminated"</font></div><div>
<font class="Apple-style-span" style="background-color: rgb(255, 255, 255);">I changed the path of Foundation in the source code of my program to the correct&nbsp;</font></div><div><font class="Apple-style-span" style="background-color: rgb(255, 255, 255);"><br>
</font></div><div><font class="Apple-style-span" style="background-color: rgb(255, 255, 255);">"&nbsp;#import &lt;C:\GNUstep\GNUstep\System\Library\Headers\Foundation\Foundation.h&gt; "</font></div><div><font class="Apple-style-span" style="background-color: rgb(255, 255, 255);"><br>
</font></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);">and then I get the error : "&nbsp;C:\GNUstep\GNUstep\System\Library\Headers\Foundation\Foundation.h:30:40: fatal error: GNUstepBase/GSVersionMacros.h: No such file or directory "</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);">I changed the path of the&nbsp;GSVe<span style=""></span>rsionMacros.h inside the source code of the Foundation.h file and then I got a new error for another header file inside the&nbsp;GSVersionMacros.h file.</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); ">How can I fix this? Should I have to do this for all the header files?&nbsp;</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); ">Thank you very much.</span></div><div>
<font class="Apple-style-span" style="background-color: rgb(255, 255, 255);" color="#006600"><br></font></div></blockquote><br></div><div>It would be easiest to use Makefiles to help set up and compile you program. &nbsp;See the documentation here:</div><div><br></div><div><a href="http://www.gnustep.it/nicola/Tutorials/WritingMakefiles/">http://www.gnustep.it/nicola/Tutorials/WritingMakefiles/</a></div><div><br></div><div>and more documentation here:</div><div><br></div><div><a href="http://www.gnustep.org/developers/documentation.html">http://www.gnustep.org/developers/documentation.html</a></div><br></body></html>
--Apple-Mail-2-920313671--


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

--===============0201882993537488342==--