From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30348 invoked by alias); 25 May 2006 20:05:31 -0000 Received: (qmail 30340 invoked by uid 22791); 25 May 2006 20:05:30 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.184) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 25 May 2006 20:05:27 +0000 Received: by nf-out-0910.google.com with SMTP id n15so286061nfc for ; Thu, 25 May 2006 13:05:25 -0700 (PDT) Received: by 10.48.163.3 with SMTP id l3mr6961961nfe; Thu, 25 May 2006 13:05:23 -0700 (PDT) Received: by 10.49.21.17 with HTTP; Thu, 25 May 2006 13:05:23 -0700 (PDT) Message-ID: <4690b0d10605251305g2ed90f2mfaa59eff0525abcc@mail.gmail.com> Date: Thu, 25 May 2006 20:05:00 -0000 From: "M Arshad Khan" To: ecos-discuss@ecos.sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Problem in linking the program X-SW-Source: 2006-05/txt/msg00214.txt.bz2 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 `GLOBA= L_.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 `GLO= BAL_. D.14000._9Cyg_Clock.real_time_clock': /ecos-d/ecos/packages/kernel/current/src/common/clock.cxx:807: undefined re= feren ce to `_udivdi3' /ecos-d/ecos/packages/kernel/current/src/common/clock.cxx:807: undefined re= feren ce to `_udivdi3' /ecos-d/ecos/packages/kernel/current/src/common/clock.cxx:807: undefined re= feren ce to `_udivdi3' /ecos-d/ecos/packages/kernel/current/src/common/clock.cxx:807: undefined re= feren ce to `_udivdi3' d:/ecos-work/ecos_install/lib/libtarget.a(kernel_clock.o):/ecos-d/ecos/pack= ages/ kernel/current/src/common/clock.cxx:807: more undefined references to `_udi= vdi3' 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