![]() |
|
#1
|
|||
|
|||
getting startedhi all
im using vc++ and im trying to learn mfc but i'm just not going anywhere at the moment. iv selected the use shared dill mfc option also turned precompiled headers option off. CPP / C++ / C Code:
<<<<<<<<<<<<<<<<< error >>>>>>>>>>>>>>>>>>>>>>>>> mfc002 error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup mfc002 fatal error LNK1120: 1 unresolved externals <<<<<<<<<<<<<<<<<<<<<<Liner log>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ------ Build started: Project: mfc002, Configuration: Debug Win32 ------ Linking... MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Debug/mfc002.exe : fatal error LNK1120: 1 unresolved externals Build log was saved at "file://c:\Documents and Settings\Leonardo\My Documents\Visual Studio Projects\mfc002\Debug\BuildLog.htm" mfc002 - 2 error(s), 0 warning(s) THANX Last edited by LuciWiz : 02-Feb-2005 at 06:15.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
|
#2
|
|||
|
|||
|
yea i head to change project settings for the Linker and change the Subsystem
from Console to Windows (/subsystem:console for /subsystem:windows). but im getting this naw ------------------------------------- mfc002.exe': Loaded 'C:\Documents and Settings\Leonardo\My Documents\Visual Studio Projects\mfc002\Debug\mfc002.exe', Symbols loaded. 'mfc002.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'mfc002.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded. 'mfc002.exe': Loaded 'C:\WINDOWS\system32\msvcr71d.dll', Symbols loaded. 'mfc002.exe': Loaded 'C:\WINDOWS\system32\mfc71d.dll', Symbols loaded. 'mfc002.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded. 'mfc002.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded. 'mfc002.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded. 'mfc002.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded. 'mfc002.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded. 'mfc002.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded. 'mfc002.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded. 'mfc002.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols ---------------------------------- ANY IDEAS |
|
#3
|
|||
|
|||
|
Are you sure you were using the proper development environment??
error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup This seems to me that you have created a console application rather than Windows application |
|
#4
|
|||
|
|||
|
Is stdafx.h included?
|
|
#5
|
|||
|
|||
hi need help regarding PCH directiveHow can I disable the option for Pre compiled Header directive ..??
when i am adding some source files to the existing MFC App wizard exe, its giving an error "unexpeected end of file while looking for pre compiled header directive" How can i avoid that ????? |
Recent GIDBlog
Halfway done! by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Athlon system locking up on start up. Is it MoBo, Processor, PSU or what? | ebolaosu | Computer Hardware Forum | 8 | 26-Feb-2004 11:19 |
| Our very special offers started!! | abc5net | Web Hosting Advertisements & Offers | 0 | 15-Jul-2003 11:24 |
| Googledance has started | jrobbio | Search Engine Optimization Forum | 10 | 25-Mar-2003 10:20 |
| SEO's read this! | jrobbio | Search Engine Optimization Forum | 3 | 02-Feb-2003 20:11 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The