Solved

linking error

Posted on 2004-08-01
4
168 Views
Last Modified: 2013-11-08
I'm trying to compile a fortran program in Microsoft Developer Studio.  The code compiles, but I get the following error messages when I try to "build" the project:

--------------------Configuration: TCEbiofilm - Win32 Debug--------------------
Linking...
libcd.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/TCEbiofilm.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

TCEbiofilm.exe - 2 error(s), 0 warning(s)
------------------------------------------------------------------------------------------

Any help in solving this problem will be much appreciated
0
Comment
Question by:LeeClapp
4 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
Comment Utility
This occurs generally when you try to create a Win32 console application but, you define main() function instead of WinMain().
Try to generate an empty console project:

File -> New -> Project -> Win32 Console Application, and the AppWizard will generate the proper main function. Cut and paste all your code and that's all!
0
 

Author Comment

by:LeeClapp
Comment Utility
Thanks!!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This video teaches viewers about errors in exception handling.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now