In that case go to segments, create the new segment (project menu) and drag
the files you want there.  I have ~300k programs that use a shared library.
The shared library being one project file outputting two libs.  It IS one
large shared library, but if you're going to share 140K of code, you need to
break it up somehow.


-----Original Message-----
From: Petrus Wrangö [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2000 9:33 AM
To: Palm Developer Forum
Subject: RE: Multi segment shared libraries


hmm.. thanks, no, I need it to be ONE large shared library. BTW I estimate
the size to 140Kb

-----Original Message-----
From: Rick Gadbois [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2000 3:29 PM
To: Palm Developer Forum
Subject: RE: Multi segment shared libraries


As Eric stated before:

Say your library project has 12 .c files (f1 to  f12).
Create 2 new targets (project menu), so you now have 3 targets: lib1, lib2
and lib3
Using the project inspector (Window menu), assign files 1 to 4 to lib1 only,
files 5 to 8 to lib2 only etc...
Include the 3 libs in your app project.


-----Original Message-----
From: Petrus Wrangö [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2000 9:23 AM
To: Palm Developer Forum
Subject: Multi segment shared libraries


I've searched the archive, and there are some questions related to this, but
I can't figure it out.
My shared library has grown very large, and I can no longer compile it. I'm
getting all kinds of strange link errors.
I've tried to make it multi segment, And the closest I've got is by using
these settings:

68K Target:     Project type: Library
                PalmOS Library

The linker then complain it cant find a tmp file:
Link Error   : Could not open file:
D:\myprojectpath\RESOURCE.FRK\Starter.tmp


I'm not sure what settings I should have when building shared libraries, nor
what type it should be. Does it even matter?
I've managed to make shared libraries before (just not this big) using type
'libr', and not 'shlb'. What should it be?

I've also got some mighty strange messages while trying different settings. 
Suddenly the compiler run in to trouble in Pilot.h not being able to include
some files. 
Link error on this line for example: #include "Pilot.h.sim.mch"


Am I making ANY sense? :) I'm really not sure what to ask for, I just want
my large shared library compiled!

Please give me a hint!


Petrus

-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/

-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/

-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to