Advertisement

Linking error!!!

Started by February 10, 2002 10:51 AM
6 comments, last by pramook 23 years ago
I tried to compile lesson2.cpp with VC++ 6. And I got these error messages. Build Log --------------------Configuration: Lesson2 - Win32 Debug-------------------- Command Lines Creating temporary file "C:\WINDOWS\TEMP\RSP6304.TMP" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib OpenGL32.lib GLu32.lib GLaux.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/Lesson2.pdb" /debug /machine:I386 /out:"Debug/Lesson2.exe" /pdbtype:sept .\Debug\Lesson2.obj ] Creating command line "link.exe @C:\WINDOWS\TEMP\RSP6304.TMP" Output Window Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Lesson2.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Results Lesson2.exe - 2 error(s), 0 warning(s) I don''t know what happened. Can you help me please? Sincerely, Pramook Khungurn
Sincerely,Pramook Khungurn
You must create a Win32 Application instead of a Win32 Console Application.
Advertisement
maybe someone should do a tutorial on what "unresolved external" means.

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
Thank you very much!
Sincerely,Pramook Khungurn
We very seriously need a "Start Here" 2, containing answers to such questions that get posted 10 times a day... It''s obvious that the forum FAQs are either incomplete or just don''t get read.


I''d be glad to help out with it.

Later,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

[twitter]warrenm[/twitter]

The more simple if you have a console application.

Press "Alt-F7"

Choose the "Link" tab

Change the line "/subsystem:console" by "/subsystem:windows"



========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
Advertisement
I also think it would be a good idea to have a ''Common Errors'' section, or maybe a locked post at the top of the forum that could be updated. It could have a set of answers to the most common errors, as well as, a tutorial on how to use the search for this forum and common Internet search engines. For me, at least, just a simple search, most of the time, gives me more of an answerer than I need. I know everyone here is still learning, and everyone here has asked most, if not all of these same questions before, but when the same question is posted two, three, or five times or more in the first 25 posts, it makes you wonder.

Like ZE said, I would be glad to help out, or maybe a few of us could collaborate and put ''Common Error/FAQ'' together.
It is definitely needed.

Take Care,
Nyko
I''ll start on it right now. I''ll be collecting common errors and questions and posting them to a page on my website (not linked yet from the main page), and maybe we''ll get them hosted someday. Either way, something needs to happen.

If you have any suggestions, feel free (no, feel OBLIGATED) to drop me a line at the address indicated in my signature. Thanks.

Later,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

[twitter]warrenm[/twitter]

This topic is closed to new replies.

Advertisement