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

CÈçºÎµ÷ÓÃC++º¯Êý£¿¼±~£¡£¡£¡£¡£¡£¡£¡

´ó¼ÒºÃ£¬ÎÒÏëÓÃcµ÷ÓÃc++д³ÉµÄÒ»¸öº¯Êý£¬ÔÚÍøÉϲéÁË°ëÌ죬ҲÓÃÁËextern ¡°C¡±ÁË£¬µ«ÊÇ»¹ÊDz»ÐУ¬¾ßÌåÎÒ¸ú´ó¼Ò˵һÏ£ºÎÒÓÐÒ»¸öselect_program.cµÄ³ÌÐòÏëµ÷ÓÃÒ»¸öMFcµÄc++³ÌÐò£¬Õâ¸ö³ÌÐòÔÚÒ»¸ömfsFile.cppÖУ¬ÊÇÒ»¸öÀàpublic³ÉÔ±º¯Êý£¬Õâ¸öc++º¯Êý»¹Óõ½ÁËÆäËûËĸö.cppº¯Êý£¬ËùÒÔÏÖÔÚÎÒÔõôҲÎÞ·¨µ÷Óã¬ÊDz»ÊDzÙ×÷ÓÐÎÊÌ⣿»¹ÊDz»Äܵ÷Óã¿Çë¸÷λ´óʦ°ï棡ллÀ²£¡
ÊDz»ÊÇÒòΪÊÇMFCµÄº¯ÊýÖ®¹Ê£¿ÒòΪÎÒ¸Õ½Ó´¥C++£¬ËùÒԱȽϲˣ¡Óò»ÓÃ×ö³É¿âº¯Êý£¿ÊÇ×ö³É¶¯Ì¬µÄ»¹ÊǾ²Ì¬µÄ£¿Çë´ó¼ÒÖ¸µã£¡
ÒªÔÚC++´úÂëÖÐÓÃextern "C"...

Òâ˼ÊÇ˵C++µÄ¶«Î÷¿ÉÄܻᱻC³ÌÐòµ÷ÓÃ,ÄÇô±àÒëµÄʱºòҪŪ³ÉC³ÌÐòÈϵÄ.

¶øC++µ÷ÓÃCÒ²ÊÇÔÚC++´úÂëÖÐÓÃextern "C"ÉùÃ÷,Òâ˼ÊÇ˵,ÎÒµ÷ÓõĶ«Î÷À´×ÔC³ÌÐò.

ÕâЩÎÒ¶¼ÖªµÀ£¬µ«ÊǾßÌå²Ù×÷ÆðÀ´¾ÍÊDz»ÐУ¬ÎÒÒ²ÔÚC++ÀïÃæµÄº¯ÊýÇ°¼ÓÁËextern ¡°C¡±ÁË£¬»¹ÊDz»ÐС£»¹ÓÃÁËÆäËûµÄһЩ°ì·¨Ò²²»³É¡£¼±°¡~

˵µÃÃ÷°×Ò»µã°É£¬ÎÒµÄmfsFile.cppÖÐÓÐÒ»¸öcreateMFrames()º¯Êý£¬ÎÒÏÖÔÚÒªÔÚselect_program.cÖÐÓ㬵«ÊÇËÀ»î¾ÍÊǵ÷Óò»ÁË£¬Ã¿´Î±àÒ붼ÓкöàµÄ´í£¡ÎÒµÄÕâ¸öcreateMFrames()º¯Êý»¹Óõ½ÁËÆäËûËĸö.cppÖеĺ¯Êý£¬¶¼ÊÇc++µÄÀ࣬ÀïÃ滹Éæ¼°ÁËһЩvectorµÄ¶«Î÷¡£ÎÒÓÃÁËextern ¡°C¡±ÔÚmfsFile.hÖÐÉùÃ÷£¬ÔÚselect_program.cÖÐÓÃextern createMFrames()£»½á¹û³öÏÖÁËÏÂÃæµÄ´íÎó£ºmfcs80d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)
1>  Creating library .\Debug/splitter.lib and object .\Debug/splitter.exp
1>../debug/splitter.plg : fatal error LNK1169: one or more multiply defined symbols found
°ÑexternÔÚselect_program.cÖÐÈ¥µôÒ²²»ÐÐ!


Ïà¹ØÎÊ´ð£º

ѧϰÌÖÂÛ C/C++ QQȺ - C/C++ / ·Ç¼¼ÊõÇø

QQȺ 29152388
ÓÑÇéUP

°ï¶¥

up

°ïup

up Ö§³Ö£¡

up jf

...ÄѵÀÓзÖ..?

up up up
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£

Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ

¼ÓÁË¡£

¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......

C ³ÌÐòÎÊÌâ (¶þ) - C/C++ / CÓïÑÔ

ÎÊһϣº
#include <stdio.h>
int main()
{
  char x, y, z;
  int i;
  int a[16];
  for(i=0; i<=16; i++)
  {
  a[i] = 0;
  ......

ÓÃC»òC++ÈçºÎ±àдÇó½â3Dħ·½³ÌÐò - C/C++ / C++ ÓïÑÔ

ÇëÎÊÓÃC»òC++ÈçºÎ±àдÇó½â3Dħ·½µÄ³ÌÐò£¬¸Ã´ÓºÎ¿ªÊ¼£¿
лл¸÷룬°ïæÌáµã½¨Òé°É¡£

http://www.mofang.net/code/176/182/6581.html

ÎÒÖ»ÄÜÍ»ÆÆ60Ã룡°¦¡£

ÎÒ¸Õ¹ý40Ãë

googleµÄandroidÖÐÓиöOpenGL ES + ......

[Çó¸Ö²ÄÇиîÎÊÌâµÄC/C++Ë㷨ʵÏÖ]

ÎÊÌâ:¹¤µØÉÏÐèÒª³¤¶ÈΪA1µÄ¸Ö½îX¸ù,³¤¶ÈΪA2µÄ¸Ö½îY¸ù,³¤¶ÈΪA3µÄ¸Ö½îZ¸ù......ÒÔ´ÎÀàÍÆ.
ÆäÖÐA1,A2,A3,...³¤¶ÈÈÎÒâÖ¸¶¨,X,Y,Z,...ÊýÁ¿Ò²ÈÎÒâÖ¸¶¨.

µ«²Ö¿âÖеĸֽîΪ±ê×¼³¤¶È,Ö»ÓÐ9Ã׺Í15Ã×Á½ÖÖ³¤¶È,ÊýÁ¿² ......

c,c++Á¬½Ómysql ÕÒ²»µ½Í·²¿Îļþ£¨ÐÂÊÖ£©

±àÒëÆ÷£ºC-Free4
mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓá£
×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£
Íü¸ßÊÖÖ¸µãÒ»¶ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ