Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

gcc ¼ÓÉÏ -c Óë²»¼Ó -c ÓÐÉ¶Çø±ðÄØ£¿

¼ÓÁË-c±àÒëµÄÄ¿±êÎļþ±¨´í
./a: Exec format error. Binary file not executable.

¶ø²»¼Ó-c¾Í¿ÉÒÔ¡£
-cÖ»ÊDZàÒë³ÉÄ¿±êÎļþ£¨Ï൱ÓÚVCÖеÄ.objÎļþ£©£¬¶ø²¢²»½øÒ»²½Á¬½Ó³É¿ÉÖ´ÐÐÎļþ£¨Ï൱ÓÚVCÖеÄ.exeÎļþ£©¡£

lz »¹ÊÇ¿´¿´ gcc --help

-c ±íʾֻ±àÒë²»Á´½Ó

¼Óc¾ÍÊÇÖ»±àÒë²»Á´½Ó¡­¡­


gcc --help£º
¡­¡­
  -c          Compile and assemble, but do not link


GCC ³£ÓõÄÑ¡ÏîÒªÖªµÀ£º
Èç -e -s -c -o -g -wall µÈµÈ

ºÜÒÉ»óÂ¥Ö÷²»ÖªµÀ -c ÊÇʲôÒâ˼ҲÄܰÑËüÓÃÉÏ¡­¡­

ÒýÓÃ
-cÖ»ÊDZàÒë³ÉÄ¿±êÎļþ£¨Ï൱ÓÚVCÖеÄ.objÎļþ£©£¬¶ø²¢²»½øÒ»²½Á¬½Ó³É¿ÉÖ´ÐÐÎļþ£¨Ï൱ÓÚVCÖеÄ.exeÎļþ£©¡£

Éú³ÉµÄÄ¿±êÎļþΪ.oÎļþ,ÊDz»¿ÉÖ´ÐеÄ.

ÒýÓÃ
ÒýÓà 1 Â¥ steedhorse µÄ»Ø¸´:
-cÖ»ÊDZàÒë³ÉÄ¿±êÎļþ£¨Ï൱ÓÚVCÖеÄ.objÎļþ£©£¬¶ø²¢²»½øÒ»²½Á¬½Ó³É¿ÉÖ´ÐÐÎļþ£¨Ï൱ÓÚVCÖеÄ.exeÎļþ£©¡£

Éú³ÉµÄÄ¿±êÎļþΪ.oÎļþ,ÊDz»¿ÉÖ´ÐеÄ.

ºÇºÇºÇºÇºÇºÇ£¡

-c
Compile or assemble the source files, but do not link.  The linking
stage simply is not done.  The ultimate output is in the form of an
object file for each source file.

By default, the object file name for a source file is made by
replacing the suffix .c, .i, .s, etc., with .o.

Unrecognized input files, not requiring compilation or assem


Ïà¹ØÎÊ´ð£º

ΪʲôCдDLLÎļþC¡¢PBÄܵ÷ÓÃVB²»Äܵ÷ÓÃ

ΪʲôCдµÄDLLÎļþC¡¢PBÄܵ÷ÓÃVB²»Äܵ÷Óã¿
VBÀïΪʲôÓеÄDLLÖ±½Óͨ¹ýÒýÓÿÉÒÔʹÓã¿ÓеÄÐèҪͨ¹ýdeclareÉêÃ÷Íⲿº¯Êý£¿ÕâЩDLLÓÐʲô²î±ð£¿

1¡¢ÎªÊ²Ã´PBÄÜͨ¹ýDECLAREÉùÃ÷¶øVB²»ÐУ¿
2¡¢Èç¹ûÕâ¸ödllÖÐµÄ ......

²ËÄñÇó½â:cͼÐÎÎÊÌâ

#include <stdio.h>
#include <graphics.h>
void main()
{
  int x0,y0,x1,y1,driver,mode,i;
  driver=VGA;
  mode=VGAHI;
  initgraph(&driver,&mode,&qu ......

PHPÀ©Õ¹CʱµÄÎÊÌâ

ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel
×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬
ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏÂ

²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿

ÔËÐÐÁË/ext_skel --extname=Ä ......

ÄÜÓÃC/C++¼òµ¥ÊµÏÖÎå×ÓÆå³ÌÐòÂð?

×î½üͻȻÏë×Ô¼ºÀ´ÊµÏÖÒ»¸öÎå×ÓÆå³ÌÐò,µ«²»ÖªµÀÔõô¿ªÊ¼,×Ô¼ºÒ²Ã»Ñ§»­Í¼Ðκ¯Êý,ÄÜÔÚ¿ØÖÆÌ¨ÏÂÖ±½ÓдÂð>>>?????
¿ØÖÆÌ¨£¿±ÈͼÐνçÃæ¸üÂé·³¡£
http://search.download.csdn.net/search/%E4%BA%94%E5%AD%90% ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ