Adding a subproject to solution
Hello,
I created a Rowley project for the ARM7 LPC2368 from NXP and have written drivers that I intend to use in different projects, sort of like a library... so I was wondering whether there's a way for me to create an independent project which I can just add to other LPC2368 projects so that I don't have to add files one-by-one.
Basically the idea would be to mimic MS Visual Studio projects were one can add existing projects (properly configured i.e. include, output folders, preprocessor flags, etc) to a solution an it just works.
When I was trying to achieve this in Rowley first I created a new library project in the solution I've been working on (a LPC23xx executable project) and it seemed to work but since I realized that it didn't create a different project file I went ahead and created a new project from scratch as a Library ARM project but after adding that solution to my original project seemed like some of the compiler options didn't like to Rowley since I got some warnings/errors that I didn't have when I added all the files manually to the original project:
#pragma pack(push[, id], <n>) is not supported on this target
Anyway... can somebody guide me a little bit on what's the best way to achieve what I want? Perhaps some details about inheriting the build properties from the parent solutions? Something?
PS: Using Rowley Crossworks 1.7 btw.
Thanks in advance,
Chalo
-
Update:
I was able to get the external solution ok, I just changed the pragmas for packing structures with the attributes used in GCC.
Even though it builds now I don't think Rowley is treating the additional solution/project the way I want since it looks like is considered a different application e.g. the memory usage only reflects the main project files, I'm having troubles including files from the other projects, etc.
At this point I think I'll just live with the idea of manually adding all the files from libraries subprojects to my projects.
Anyone with a clue on how to do this, please advice.
Please sign in to leave a comment.
Comments
1 comment