[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

linking error

Posted on 2004-08-01
4
Medium Priority
?
179 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
2 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 2000 total points
ID: 11689903
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
ID: 11689925
Thanks!!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses
Course of the Month20 days, 5 hours left to enroll

873 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