µÚ ´Ê°Ô ´ëÇÐÁøÇÐÈÄ °ú¸ñÁß C¾ð¾î¸¦ ¼ö°ÇÏ°Ô µÇ¾ú½À´Ï´Ù. ±×³É °Ç³Ê¶Û±î Çߴµ¥ ±×·¡µµ ÄÄÇ»ÅÍ ¸¸Áö´Â ³ðÀÌ ±âº»ÀûÀÎ ¾ð¾î Á¶±ÝÀº ¾Ë¾Æ¾ßÇÏÁö ¾Ê³ª Çؼ µµÀüÇß½À´Ï´Ù. ±×·±µ¥ ÷ºÎÅÍ ÁÂÀýÀ̳׿ä
Ã¥º¸°í µû¶ó ÄÚµùÇߴµ¥ ½ÇÇàÀÌ ¾ÈµÇ³×¿ä.
¾î¶² ¹®Á¦ÀÎÁö¿ä? ÄÚµùÀ» À߸øÇÑ°ÇÁö.. À©µµ¿ì 64ºñÆ®¿¡¼ win32·Î ÄÚµùÇؼÀÎÁö ¸ð¸£°Ú³×¿ä.
÷¿¡ ÀßÇØ°áÀÌ µÇ¾î¾ß ³¡±îÁö ¿ÏÁÖÇÒ ¼ö ÀÖÀ»µíÇѵ¥ °í¼ö´Ôµé µµ¿ò ºÎŹµå¸³´Ï´Ù.
´Ù¸¥ °÷ º¸´Ù ¿ì¸® 2cpu°¡ Á» ´õ Æ÷±ÙÇؼ ¿©±â¼ ¿©Âã´Ï´Ù.
Ã¥º¸°í µû¶ó ÄÚµùÇߴµ¥ ½ÇÇàÀÌ ¾ÈµÇ³×¿ä.
¾î¶² ¹®Á¦ÀÎÁö¿ä? ÄÚµùÀ» À߸øÇÑ°ÇÁö.. À©µµ¿ì 64ºñÆ®¿¡¼ win32·Î ÄÚµùÇؼÀÎÁö ¸ð¸£°Ú³×¿ä.
÷¿¡ ÀßÇØ°áÀÌ µÇ¾î¾ß ³¡±îÁö ¿ÏÁÖÇÒ ¼ö ÀÖÀ»µíÇѵ¥ °í¼ö´Ôµé µµ¿ò ºÎŹµå¸³´Ï´Ù.
´Ù¸¥ °÷ º¸´Ù ¿ì¸® 2cpu°¡ Á» ´õ Æ÷±ÙÇؼ ¿©±â¼ ¿©Âã´Ï´Ù.
mai() -> main()
rc.exe ¿¡·¯´Â ÀçºÎÆÃÇÏ¸é ¾È¶ã¶§µµ ÀÖ°í ¶ã¶§µµ ÀÖ°í Áß±¸³¹æÀÌ¶ó ¹¹¶ó ¸»¾¸µå¸®±â ¾î·Æ³×¿ä.
Á¤ ¾ÈµÇ¸é À缳ġ Çغ¸¼Å¾ß ÇÒ¼öµµ Àְڳ׿ä...
2.
Äڵ忡¼ mai() -> main() ÀÌ°Ç ¼öÁ¤ÇÏ¼Å¾ß ÇÒµí Çϳ׿ä.
#include <stdio.h>
void main()
{
int iAge;
iAge = 2;
printf ("Age: %d\n", iAge);
}
¸ÕÀú, void main()À» void main(void)·Î ¹Ù²Ù¾î º¸½Ã°í,
±×·¡µµ µÇÁö ¾ÊÀ¸¸é int main(void)·Î ¹Ù²Ù½Å µÚ, ¸Ç ¸¶Áö¸· ¶óÀÎ } ¾Õ¿¡ return 0; À» Ãß°¡ÇØ º¸½Ê½Ã¿À.
int main(void)
{
int iAge;
iAge = 2;
printf ("Age: %d\n", iAge);
return 0;
}
µµ¿ÍÁֽŠºÐµé °¨»çÇÕ´Ï´Ù. ±×·¯³ª ¿ª½Ã µÇÁö ¾Ê½À´Ï´Ù. 64ºñÆ® À©µµ¿ì¿Í´Â ¹«°üÇÑÁö¿ä?
¹°·Ð »ç¿ëÇÏ°í °è½Å ºñÁê¾ó½ºÆ©µð¿À¿Í´Â ´Ù¸¥ ¹öÀüÀ̾ú´Âµ¥¿ä.
Ȥ½Ã ÆÄÀÏÀÌ .c °¡ ¾Æ´Ï¶ó .cpp·Î ¼³Á¤µÈ °ÍÀÌ cÄÄÆÄÀÏ¿¡ ¹®Á¦°¡ ÀÖÀ»¼öµµ ÀÖÁö ¾ÊÀ»±î ÇÏ´Â »ý°¢ÀÌ µì´Ï´Ù.
±×·³ À缳ġ ¶Ç´Â ´Ù¸¥ ¹öÀüÀ» ±¸ÇØ ´Ù½Ã Çغ¸µµ·Ï ÇÏ°Ú½À´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
´À³¦»ó ¿ØÁö..
ÇÁ·ÎÁ§Æ® °°Àº°É·Î ¿¾î¼ ÄÚµùÇÏ½Å°Í °°Àºµ¥... .. (¾Æ´Ï¶ó¸é ;; Á˼ÛÇÕ´Ï´Ù. µµ¿òÀÌ µÇÁö ¸øÇؼ ..Äð·°)
ÇöÀç OCU °ÀǸ¦ µè°Åµç¿ä
ÇÁ·ÎÀèÆ®·Î ¿¾î¶ó°í ±×·¡¼....´Ù½Ã Çغ¸°º½À´Ï´Ù.
ÄÚµå °íÃĵµ ¼Ò¿ë¾ø½À´Ï´Ù. ºôµå¿¡¼ clean¼Ö·ù¼ÇÇÑ´ÙÀ½¿¡ ´Ù½ÃÇغ¸½Ã°Å³ª.. µð·ºÅ丮 ¼³Á¤À» ´Ù½Ã üũÇغ¸½Ã±â ¹Ù¶ø´Ï´Ù.
¾ÆÁÖ °¡²û ¹ÙÀÌ·¯½º ¶§¹®¿¡ ±×·¯´Â °æ¿ìµµ ÀÖ±äÇÕ´Ï´Ù¸¸.
#include <iostream>
int main(void)
{
int iAge;
iAge = 2;
printf ("Age: %d\n", iAge);
system("PAUSE");
return EXIT_SUCCESS;
}
Çѹø µ¹·Á ºÃ´Âµ¥... Ưº°ÇÑ ¿À·ù´Â ¾ø¾ú½À´Ï´Ù.
¿¹Àü¿¡ ºñÁê¾ó ½ºÆ©µð¿À 6.0 ½è´Âµ¥... ÀÚ»ç ÇÁ·Î±×·¥ÀÎ ÀͽºÇ÷ξî¶û Ãæµ¹µÇ´Â Èñ¾ÈÇÑ ¿À·ù¶§¹®¿¡ °í°³¸¦ ¼³·¹ ¼³·¡ ÀúÀ¸¸ç ½è´ø ±â¾ïÀÌ Àִµ¥¿ä.
¿°À̶ó¸é ºñÁê¾ó ½ºÆ©µð¿À 6.0À» ±âÁØÀ¸·Î Áö¾îÁø Ã¥ÀÔ´Ï´Ù.
ºñÁê¾ó ½ºÆ©µð¿À 6.0ÀÇ °æ¿ì À©µµ¿ì 98À» Áö¿øÇؼ ÀÚ·áÇü º¯È¯ÀÌ ÀÚÀ¯·Ó´Ù´Â ÀåÁ¡ÀÌ ÀÖ½À´Ï´Ù. ȣȯ¼ºµµ ÁÁÀº ÆíÀ̱¸¿ä. ¹®Á¦´Â ±×°Å ¶§¹®¿¡ Äڵ尡 ±æ¾îÁö¸é ¾Ë¼ö¾ø´Â ¹ö±×°¡ »ý±ä´Ù´Â°Ô ´ÜÁ¡ÀÔ´Ï´Ù.
±×·¡¼ Á¦°¡ µè±â·Ð ºñÁê¾ó ½ºÆ©µð¿À°¡ ¹öÁ¯¾÷µÇ¸é¼ ÀÚ·áÇü¿¡ ´ëÇØ ¾ö°ÝÇØ Á³´Ù´Â ¸»À» µéÀºÀûÀÌ ÀÖ½À´Ï´Ù.
¹¹ AVR ÄÄÆÄÀÏ ÇÏ´Â Àú·Î½á´Â 1¹ÙÀÌÆ® ¸Þ¸ð¸®µµ ¹ú¹ú ¶³¸é¼ ¾²±â ¶§¹®¿¡ ´ç±Ù ÀÚ·áÇüÀº 1¼øÀ§·Î ½Å°æ ¾²Áö¸¸¼µµ.. ÄÄÇ»ÅÍ´Â º°·Î ±×·²ÇÊ¿ä°¡ ¾øÁö¿ä.
óÀ½ ¹è¿ì½Ç¶§ Á¦´ë·Î ¾ÈµÆ´Ù¸é ÀÏ´Ü ÇÁ·Î±×·¥ Á¶ÀÛ ¹Ì¼÷ÀÌ ¾Æ´Ò±î »ý°¢µË´Ï´Ù.
ÇÁ·ÎÁ§Æ® »ý¼ºÀ» Á¦´ë·Î ¾ÈÇߴٰųª... »ý¼ºÀ» Çصµ ¾û¶×ÇÑ °÷¿¡ »ý¼ºÇߴٰųª ÄÄÆÄÀÏÀº Çߴµ¥ ½ÇÇàÀ» ¾ÈÇߴٰųª ¹¹ ÀÌ·± ¹®Á¦°¡ ¾Æ´Ò±î¿ä?
±×°Å¿Ü¿¡´Â Àß ¸ð¸£°Ú³×¿ä. ´Ù¸¥ ºÎºÐ¿¡¼ È®ÀÎÇÒ °ÍÀÌ ÀÖ´Ù¸é Á¶¾ðºÎŹµå¸³´Ï´Ù.
Build Log Build started: Project: MY1, Configuration: Debug|Win32
Command Lines Creating temporary file "c:\cpp\ch1\MY1\MY1\Debug\RSP0000132996936.rsp" with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /c /ZI /TP .\CONSOLE1.cpp
]
Creating command line "cl.exe @c:\cpp\ch1\MY1\MY1\Debug\RSP0000132996936.rsp /nologo /errorReport:prompt"
Creating temporary file "c:\cpp\ch1\MY1\MY1\Debug\TMP0000142996936.tmp" with contents
[
1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ ".\\Debug\\MY1.exe.embed.manifest"
]
Creating command line "rc.exe /fo".\Debug\MY1.exe.embed.manifest.res" c:\cpp\ch1\MY1\MY1\Debug\TMP0000142996936.tmp"
Creating temporary file "c:\cpp\ch1\MY1\MY1\Debug\RSP0000152996936.rsp" with contents
[
/OUT:"c:\cpp\ch1\MY1\Debug\MY1.exe" /INCREMENTAL /MANIFEST /MANIFESTFILE:"Debug\MY1.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"c:\cpp\ch1\MY1\Debug\MY1.pdb" /SUBSYSTEM:CONSOLE /DYNAMICBASE /NXCOMPAT /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
".\Debug\CONSOLE1.obj"
".\Debug\MY1.exe.embed.manifest.res"
]
Creating command line "link.exe @c:\cpp\ch1\MY1\MY1\Debug\RSP0000152996936.rsp /NOLOGO /ERRORREPORT:PROMPT"
Output Window Compiling...
CONSOLE1.cpp
Compiling manifest to resources...
Project : error PRJ0003 : Error spawning 'rc.exe'.
Results Build log was saved at "file://c:\cpp\ch1\MY1\MY1\Debug\BuildLog.htm"
MY1 - 1 error(s), 0 warning(s)
Ȥ ÀÌ»óÇÑ Á¡À» ãÀ» ¼ö ÀÖÀ» ·±Áö¿ä?
´äº¯ÁֽŠ¿©·¯ºÐµé²² °¨»çµå¸³´Ï´Ù.