CM questions
brian <briand-/[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to understand how best to use CM when programs share files I have several projects , grouped into directories: A, B, C each of A, B and C share more than 1 file. So for example A,B and C will each have in there respective .cm files: Library structure A/B/C ... structure common1.sml is ... A/B/C.sml common1.sml So now the tricky part. It turns out that project A needs to use Project B. CM complains that file common1.sml appears in more than 1 group. NOTE: The problem with this error message is that I am using a "library" for these definitions but the error message specfically says that the file appears in more than 1 "group". A little confusing given that libraries _and_ groups can be defined. So I'm wondering what the best way to organize this is. From reading the CM docs it looks as though what I want to do is to take each of the individual files which are shared and wrap them in their own library. However it also appears that duplicate files are OK if you are using groups. Can someone exaplain the difference between groups and libraries ? What is the best way to organize these dependencies ? Thanks Brian So here is the way I think it should work using library. in A.cm: library structure A structure common1 is a.sml common1.sml in B.cm: library structure A structure B structure common1 is a.cm common1.sml b.sml So I am assuming that what I really want is: A.cm library structure A structure common1 is common1.cm a.sml B.cm library structure B strucuture common1 is b.sml common1.cm common1.cm library structure common1 is common1.sml ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV