?
Solved

linking error

Posted on 2004-08-01
4
Medium Priority
?
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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.
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 …
Progress
Starting up a Project
Suggested Courses

770 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