Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers LCC > Re: OT - About ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 989 of 1070
Post > Topic >>

Re: OT - About lcc-linux32 (was - Re: Should we broaden the topicality of this group?)

by santosh <santosh.k83@[EMAIL PROTECTED] > Oct 7, 2007 at 02:38 AM

Keith Thompson wrote:

> santosh <santosh.k83@[EMAIL PROTECTED]
> writes:
>> jacob navia wrote:
> [...]
>>> I am changing the compiler now to use /usr/local/lcc, and added
>>> following paths to the include search path:
>>> 
>>> /usr/local/lcc/include
>>
>> This should almost certainly be /usr/local/include/lcc/
>>
>>> /usr/local/include
>>> /usr/include/lcc
>>> /usr/include
>>
>> In my opinion you should neatly encapsulate lcc's headers in it's
>> own 'lcc' sub-directory under the system include directories. That
>> way you don't need to bother with /usr/include/ and
>> /usr/local/include/
> 
> My own preference would be to put the entire installation under a
> single user-specifiable directory.  For example, if I install it with
> a prefix of "/usr/local/lcc", I'd have
> 
>     /usr/local/lcc
>     /usr/local/lcc/bin
>     /usr/local/lcc/lib
>     /usr/local/lcc/include
> 
> and so forth.

<snip>

Yes. Now that I think about it this might be a better scheme,
particularly during the early phases of the software.

Jacob should write his implementation in such a way that it searches for
it's headers and libraries in a user controllable manner, preferably
via a couple of environment variables like for example LCC_INCLUDE and
LCC_LIB, and of course, also via switches on the command-line.

Right now, he seems to have hardcoded the paths into his main
executable.

If the environment variables have not been set, the compiler should try
to look into the 'include' and 'lib' directories below the directory
it's placed in.

If that fails too, then the compiler could try to
read /usr/include/lcc/, /usr/lib/lcc/, /usr/local/include/lcc/
and /usr/local/lib/lcc/.
 




 5 Posts in Topic:
Re: OT - About lcc-linux32 (was - Re: Should we broaden the topi
santosh <santosh.k83@[  2007-10-07 00:16:16 
Re: OT - About lcc-linux32 (was - Re: Should we broaden the topi
santosh <santosh.k83@[  2007-10-07 00:23:36 
Re: OT - About lcc-linux32 (was - Re: Should we broaden the topi
Keith Thompson <kst-u@  2007-10-06 13:17:56 
Re: OT - About lcc-linux32 (was - Re: Should we broaden the topi
santosh <santosh.k83@[  2007-10-07 02:38:27 
Re: OT - About lcc-linux32 (was - Re: Should we broaden the topi
John J. Smith <jjs@[EM  2007-10-08 02:01:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 23:46:32 CDT 2008.