public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: top_general <top_general@sina.com>
To: cygwin@cygwin.com
Subject: help...
Date: Mon, 13 Jan 2003 03:04:00 -0000	[thread overview]
Message-ID: <20030108032328.12287.qmail@sina.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2354 bytes --]

I have a question . 
Firstly: 
I make a "C library".The "C library" source code is below: 
http://www.uclinux.org/pub/uClinux/libraries/ 
uC-libc-310899.tar.gz. 
I build a "libc.a" using "make " in cygwin. 

secondly: 
I do an example "a.c".below: 
//a.c 
#include <stdio.h> 
void main() 
{ 
printf("success!"); 
return ; 
} 

I want to use "printf" function in libc.a, not in libcygwin.a. 
so I using a new libcygwin.a ,not original libcygwin.a. 

ar r libcygwin.a _cygwin_crt0_common.o _cygwin_S_IEXEC.o cygwin_attach_dll.o cygwin_crt0.o dll_entry.o dll_main.o libcmain.o premain0.o premain1.o premain2.o premain3.o regcomp.o regerror.o regexec.o regfree.o 

thirdly: 
complied the program: 
gcc -g -o a.exe a.c -lc -lcygwin 

there are some question below: 
/cygdrive/d/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccSmKP9B.o: In function `main': 
/cygdrive/e/develop/uc-libc_310899/1.c:4: undefined reference to `__main' 
/cygdrive/e/develop/uc-libc_310899/1.c:5: undefined reference to `printf' 
/usr/lib/libcygwin.a(cygwin_crt0.o)(.text+0x41): undefined reference to `import stub 
for dll_crt0(per_process *)' 
/usr/lib/libcygwin.a(_cygwin_crt0_common.o)(.text+0xca): undefined reference to `malloc' 
/usr/lib/libcygwin.a(d000582.o)(.idata$7+0x0): undefined reference to `_head_cygwin1_dll' 
/usr/lib/libcygwin.a(d001007.o)(.idata$7+0x0): undefined reference to `_head_cygwin1_dll' 
/usr/lib/libcygwin.a(d000723.o)(.idata$7+0x0): undefined reference to `_head_cygwin1_dll' 
/usr/lib/libcygwin.a(d000635.o)(.idata$7+0x0): undefined reference to `_head_cygwin1_dll' 
collect2: ld returned 1 exit status 

how can i do? who help me ? Thanks
______________________________________

===================================================================
Ãâ·ÑÊÔÓÃÐÂÀË15MÈÎÄãÓÊ »ñÊýÂëÏà»ú¡¢ÊÖ»ú´ó½± (http://vip.sina.com/sol_mail/promotion/pro_men.html)
ÐÂÀ˶þÊÖÊг¡£ºÒ»ÔªÍ¶È룬ʮ·Ö¾ªÏ²£¬°Ù·ÖÂúÒâ (http://classad.sina.com.cn/2shou/)
ÿÌì1²¿ÊÖ»ú£¡çÍ·×ÐÂÄê¶ÌÐÅרÌâ (http://sms.sina.com.cn/act/beautyxmas.html)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

             reply	other threads:[~2003-01-08  3:32 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-13  3:04 top_general [this message]
2003-01-13  3:04 ` help Christopher Faylor
  -- strict thread matches above, loose matches on Subject: below --
2023-03-10 17:59 help Scott Smith
2020-07-21 16:47 help Birane Koundoul
2020-07-21 17:55 ` help Csaba Raduly
2020-07-21 17:59 ` help Marco Atzeri
     [not found] <mailman.10707.1587224442.8982.cygwin@cygwin.com>
2020-04-18 17:26 ` Help William de la Vega
2003-08-17 20:21 FW: help Glen Zhang
2003-08-17 20:34 ` help Martin Gainty
2003-08-18  4:49   ` help Glen Zhang
2003-08-18  5:14     ` help Martin Gainty
     [not found] <00121217290105.05746@cygbert>
2000-12-12  8:40 ` help M@ikel Gloudemans
2000-12-12  9:23   ` help Christopher Faylor
1999-05-20 19:13 help ML
1999-05-31 21:10 ` help ML
1999-03-29 14:22 Help Nirmal Vuppuluri
1999-03-31 19:45 ` Help Nirmal Vuppuluri
1999-01-31 23:52 Help Fritz Schenk
1999-01-31 23:52 ` Help Jyrki O Saarinen
1999-01-31 23:52 Help Min Yao
1999-01-31 15:00 Help mendes
1999-01-31 23:52 ` Help mendes
1998-11-10  7:48 Help Jama Musse Jama
1998-07-24  5:20 help Joseph Sirucka
1997-10-19 13:17 Help BMullenber
1997-10-08  2:27 Help Earnie Boyd
     [not found] <199710062225.SAA20805@magnum.wpe.com.>
1997-10-07  6:18 ` Help Dominick Love

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=20030108032328.12287.qmail@sina.com \
    --to=top_general@sina.com \
    --cc=cygwin@cygwin.com \
    /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).