Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ctors/dtors

47 views
Skip to first unread message

DMC

unread,
Mar 8, 2002, 4:52:25 AM3/8/02
to
Hi there,

I'm trying to link together two output files into one large file for blowing
into flash. when I do the link I get warnings about _ctors and _dtors. Has
anyone come across this problem and solved it?

Thanks.

David.


Christian Delez

unread,
Mar 8, 2002, 9:06:26 AM3/8/02
to
> I'm trying to link together two output files into one large file for blowing
> into flash. when I do the link I get warnings about _ctors and _dtors. Has
> anyone come across this problem and solved it?
>
I'm doing this for PowerPC target from NT host and it works fine.
Could you tell us your configuration:
- host (NT, Unix)
- target CPU type
- Tornado and VxWorks version
- a copy of the error message.

@+, christian.

ilyas G

unread,
Mar 8, 2002, 1:59:13 PM3/8/02
to
this is constructors(ctor) and destructors(dtor).
you have to include a certain file, unfortunatly i am at home now, I
will check on monday, if no response.

Werner Schiendl

unread,
Mar 8, 2002, 3:07:22 PM3/8/02
to
Hi,

you need to link the .o files, not the .out files.

If there are many .o files, you can make a library out of one project (.a
file) and link this to the other.

In the process of merging all the .o files to a big .out file, the build
mechanism creates tables with static constructors and destructors.
Therefore, you cannot link .out files (at least with the default build
setup).

hth
Werner


"DMC" <david.mcc...@nospam.com> wrote in message
news:3c8889b5$1...@pull.gecm.com...

0 new messages