|
|
|
|
|
|
|
|
|
|
|
|
|
3206, 160/161 |
|
°¡¸é¼ÓÀÇ¹Ì¼Ò | |||||||
[C¾ð¾î] ¹«ÀÓ½ÂÂ÷ Áú¹®ÀÌ¿ä | |||||||
http://www.hackerschool.org/HS_Boards/zboard.php?id=QNA_programming&no=2766 [º¹»ç]
Hit : 12858 Date : 2010/11/18 04:21
|
|||||||
lMaxl04 | /tmp/cccGagnV.o(.text+0x25): In function `mian': : the `gets' function is dangerous and should not be used. /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0x18): In function `_start': ../sysdeps/i386/elf/start.S:77: undefined reference to `main' collect2: ld returned 1 exit status ¶§¹®À̳׿ä |
2010/11/18 | |
°¡¸é¼ÓÀÇ¹Ì¼Ò | ±×¶æÀ» ¸ô¶ó¼ ¹¯´Â°Ì´Ï´Ù ´©°¡ Á¦¹ß ÀÚ¼¼ÇÏ°Ô ÁöÀûÁ» ÇØÁÖ¼¼¿ä Á¦¹ß!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
2010/11/18 | |
blueh4g | ¸Æ½ºÇü ¸» À̾î¼.. /tmp/cccGagnV.o(.text+0x25): In function `mian' ... .text+0x25): In function `mian' ... In function `mian' ... `mian' ... |
2010/11/19 | |
blueh4g | ´ëÃæ ¼³¸íÇϸé À§¿¡¼ µÎÁÙÀº 'mian' À̶ó´Â ÇÔ¼ö ¾È¿¡¼ gets ¶ó´Â ÇÔ¼ö ÀÌ¿ëÀº º°·Î ¾ÈÀü¾ÈÇØ¿©. ¶ó´Â ¶æÀ̱¸¿ä; ¼¼¹ø°, ³×¹ø° ÁÙ¿¡¼´Â 'main' À̶ó´Â ÇÔ¼ö°¡ Á¤ÀǵÇÁö ¾Ê¾Ò´Ù´Â±º¿ä.. |
2010/11/19 | |
dawon15 | main ÇÔ¼ö°¡ Á¤ÀǵÇÁö ¾ÊÀº°Ô ¾Æ´Ï¶ó ¸®ÅÏ°ªÀ» ÁÖÁö ¾Ê´Â´Ù ¶ó´Â ¸» À̱¸¿ä ÇÔ¼öÀÇ ¸®ÅÏ ÇüÀ» Á¤ÇÏÁö ¾Ê´Â °Ç À§ÇèÇϱ⵵ ÇÕ´Ï´Ù int ȤÀº void ²À ½áÁÖ¼¼¿ä |
2010/11/19 | |
blueh4g | [sur3x5f@~/arena_html/page 15:06:31]$ cat t1.c #include <stdio.h> mian() // <---- mian { int auth = 0; char passwd[20]; printf("Æнº¿öµå¸¦ ÀÔ·ÂÇϼ¼¿ä : "); gets(passwd); if(strcmp(passwd, "[???????]") == 0) auth = 1; if(auth) printf("ÃàÇÏÇÕ´Ï´Ù. ÀÎÁõ¿¡ Åë°úÇÏ¿´½À´Ï´Ù!\n"); else printf("ÀÎÁõ¿¡ ½ÇÆÐÇÏ¿´½À´Ï´Ù.\n"); } [sur3x5f@~/arena_html/page 15:06:40]$ gcc -o t1 t1.c /tmp/ccG23Ncy.o: In function `mian': t1.c:(.text+0x22): warning: the `gets' function is dangerous and should not be used. /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status [sur3x5f@~/arena_html/page 15:06:42]$ |
2010/11/19 | |
blueh4g | [sur3x5f@~/arena_html/page 15:06:42]$ cat t2.c #include <stdio.h> main() // <---- main { int auth = 0; char passwd[20]; printf("Æнº¿öµå¸¦ ÀÔ·ÂÇϼ¼¿ä : "); gets(passwd); if(strcmp(passwd, "[???????]") == 0) auth = 1; if(auth) printf("ÃàÇÏÇÕ´Ï´Ù. ÀÎÁõ¿¡ Åë°úÇÏ¿´½À´Ï´Ù!\n"); else printf("ÀÎÁõ¿¡ ½ÇÆÐÇÏ¿´½À´Ï´Ù.\n"); } [sur3x5f@~/arena_html/page 15:07:07]$ gcc -o t2 t2.c /tmp/ccQVhB2e.o: In function `main': t2.c:(.text+0x2d): warning: the `gets' function is dangerous and should not be used. [sur3x5f@~/arena_html/page 15:07:09]$ |
2010/11/19 | |
blueh4g | ±×¸®°í ÄÚµùÇÒ¶§ dawon15´Ô ¸»¾¸Ã³·³ mainÀ» ¾²½Ç¶§¿¡µµ ¸®ÅÏŸÀÔÀ̶û ¸®ÅÏ°ª Á¤ÀÇÇØÁÖ½Ã´Â°Ô ÁÁ½À´Ï´Ù~ | 2010/11/19 | |
|
|