public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "M Arshad Khan" <marshadkhan@gmail.com>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Problem in linking the program
Date: Thu, 25 May 2006 20:05:00 -0000	[thread overview]
Message-ID: <4690b0d10605251305g2ed90f2mfaa59eff0525abcc@mail.gmail.com> (raw)

hii
i am using ecos user guide as a reference and at chapter 13 while i am
compiling and linking the hello.cpp it shows me the following message
and not working, can any body tell me what is the problem.
and also the TARGET command not working.

$ gcc -g -Id:/ecos-work/ecos_install/include d:/hello.cpp
-Ld:/ecos-work/ecos_install/lib -Ttarget.ld -nostdlib
/ecos-c/DOCUME~1/ARSHAD~1/LOCALS~1/Temp/ccsafMl8.o: In function `main':
/home/arshadkhan/d:/hello.cpp:4: undefined reference to `__main'
/home/arshadkhan/d:/hello.cpp:5: undefined reference to `printf'
d:/ecos-work/ecos_install/lib/libtarget.a(infra_diag.o): In function `GLOBAL_.I.
10100.diag_write_char':
/ecos-d/ecos/packages/infra/current/src/diag.cxx:90: undefined reference to `_um
oddi3'
/ecos-d/ecos/packages/infra/current/src/diag.cxx:90: undefined reference to `_ud
ivdi3'
/ecos-d/ecos/packages/infra/current/src/diag.cxx:90: undefined reference to `_um
oddi3'
/ecos-d/ecos/packages/infra/current/src/diag.cxx:90: undefined reference to `_ud
ivdi3'
d:/ecos-work/ecos_install/lib/libtarget.a(kernel_clock.o): In function `GLOBAL_.
D.14000._9Cyg_Clock.real_time_clock':
/ecos-d/ecos/packages/kernel/current/src/common/clock.cxx:807: undefined referen
ce to `_udivdi3'
/ecos-d/ecos/packages/kernel/current/src/common/clock.cxx:807: undefined referen
ce to `_udivdi3'
/ecos-d/ecos/packages/kernel/current/src/common/clock.cxx:807: undefined referen
ce to `_udivdi3'
/ecos-d/ecos/packages/kernel/current/src/common/clock.cxx:807: undefined referen
ce to `_udivdi3'
d:/ecos-work/ecos_install/lib/libtarget.a(kernel_clock.o):/ecos-d/ecos/packages/
kernel/current/src/common/clock.cxx:807: more undefined references to `_udivdi3'
 follow
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: bfd
assertion fail /cygnus/netrel/src/binutils-20011002-1/bfd/stabs.c:603
collect2: ld returned 1 exit status

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

             reply	other threads:[~2006-05-25 20:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-25 20:05 M Arshad Khan [this message]
2006-05-31  7:42 ` paopaoer maillist

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4690b0d10605251305g2ed90f2mfaa59eff0525abcc@mail.gmail.com \
    --to=marshadkhan@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).