> Hi,
> 
> 
> >
> > Assuming you're not storing this struct into a database, this code
> > looks fine. What you're running into is that your program is just a
> > little too big to fit into a segment. If you can split it into more
> > than one segment, that should take care of the problem. (You're seeing
> > the error go away when you comment out the StrCopy because that line
> > of code is just enough to tip the program size over the limit.)
> >
> 
> well that?s the problem. The code is too much for the linker. When i comment 
> some code the linker works fine but if I use all code it strikes.
> 
> So one way to solve this problem is to use mutliple code sections but I 
> don?t know how.
> 
> When I insert a .def file with
> application { ... }
> multiple code { "code1" }
> 
> and a header with:
> 
> #if.....
> 
> #define EXTRA_CODE_SECTION_ONE__attribute__((section("code1")))
> ...
> 
> it doesn?t work.
> 
> In the code view i see a macro error for EXTRA_CODE_SECTION.
> 
> Has anybody worked with multiple code sections???
> FYI: I already created a managed 68k project and imported the whole code 
> because I have read something that you can use multiple code sections only 
> with managed projects.
> 
> Regards
> Arne 

You're missing some spaces in your #define statement. It should be:

#define EXTRA_CODE_SECTION_ONE __attribute__ ((section("code1")))

(with spaces before and after "__attribute__")

And wherever you heard that you can use multiple code sections only
with managed projects was wrong; you can use multiple code sections
with standard projects quite well.

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

Reply via email to