Merging OpenTCP Project with main Project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Merging OpenTCP Project with main Project

2,822 Views
PurduePaul
Contributor I
I am working with a NE64 and have CodeWarrior 4.5.
 
I have developed my web server project using OpenTCP and also developed my main project.  Now all I want to do is combine the two, but I am a little concerned with the syncing of the files.  Is there any easy way to merge the two projects together?  Thanks!
 
Paul
Labels (1)
0 Kudos
Reply
3 Replies

935 Views
J2MEJediMaster
Specialist I
If each project functions independently without using the same symbols, you could make one of your projects a subproject of the other. To do that, drag the CodeWarrior project file (say, OpenTCP.mcp) into the IDE's Project window for the other project (say, Server.mcp). Make sure that the subproject is treated as part of the build for this project. (That is, in the Server Project window, the target column should have a little black dot for the OpenTCP.mcp file.) Now, when you revise a file in the subproject and do a build, CodeWarrior will automatically build the subproject along with the other project. If both projects use some of the same files, you'll have to sort out which project will own the only copy of the file. Use the target column and the dots to selectively "disable" the duplicate files until there is no conflict. Once you've done that, then you can safely remove the redundant files.

---Tom
0 Kudos
Reply

935 Views
PurduePaul
Contributor I
Thank you for your response....
 
I kept the "mother" project as the OpenTCP.mcp and dragged our "daughter" project into the project window.  The black dot underneath the target was checked, but the dot underneath the bug was not.  I compiled the "mother" project but I can confidently say that the "daughter" subproject did not compile.  I purposely did not sync the main.c files just so I could generate a list of errors.  Do you know why the subproject did not compile even though it was part of the build project?
 
I went down a second avenue to fix this problem.  I added all of the .c files from the "daughter" project into the "mother" project.  Then I checked for common files and had to modify the rti.c file, the vectors.c file, and of course the main.c file.  After careful updating, I compiled the code and went to the debugger.  The project ran but would consistently get caught in a software trap.  I was able to locate the software trap as the unitialized software trap (vector 62) of vectors.c in the provided OpenTCP Vectors.c.  I have no idea what would cause the program to get caught here and suspect it may have something to do with the timers. 
 
 I am at a point where I ran out of ideas and was hoping you may be able to provide some insight (on either issue).  Thanks in advance,
 
Paul
0 Kudos
Reply

935 Views
J2MEJediMaster
Specialist I
Is there a size value for the daughter project in the Project window? If so, the daughter project is part of the project. If nothing's changed in the daughter project, the IDE won't rebuild it. Also, if debugging wasn't enabled in the daughter project, the debugger's not going to be able to handle its code. Double-click on the daughter project, which should open another Project window. Allow debugging in the debug column. You might also change a comment in one of its source files to force to force the IDE to update (build) the daughter project.

I don't know anything about OpenTCP so I can't speak to that error. Why do you suspect the timers?

---Tom
0 Kudos
Reply