[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

    Search the Q&A Archives

sir, when i tried to create a dll in c using vc++...

<< Back to: C++ FAQ (part 1 of 10)

Question by prasad
Submitted on 11/27/2003
Related FAQ: C++ FAQ (part 1 of 10)
Rating: Rate this question: Vote
when i tried to create a dll in c using vc++ compiler i received these errors, can u plz tell me what is the  cause  of the error?
thanks in advance!!

LNK2001: unresolved external symbol _main
Debug/windll.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Answer by santhosh_57
Submitted on 7/12/2004
Rating:  Rate this answer: Vote
The problem is ur creating a executable file
hence the compiler is looking for ur main method..

Inorder to create a DLL file u have to some manipulation in the project properties.
i.e open ur project properties window and select the link tab.
change the output file from exe to DLL and the "Project Options" text box change the "subsytem console"  to "dll"


Answer by anand
Submitted on 4/13/2007
Rating: Not yet rated Rate this answer: Vote
include header file stdio.h


Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.

Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.


FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.


<< Back to: C++ FAQ (part 1 of 10)

[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.